TreeMapSliceLayout Class Reference

Slice and Dice layout. Area of parent node is split up into parts of the same size. More...

#include <TreeMap.h>

Inheritance diagram for TreeMapSliceLayout:

TreeMapLayout TreeMapSquaredLayout TreeMapStripLayout

List of all members.

Public Member Functions

void UpdateLayout (TreeMapItem *item, LayoutRectangle rc)
 Updates layout of given node.
void UpdateSliceLayout (CSimpleValArray< TreeMapItem * > &items, int startIdx, int endIdx, LayoutRectangle rc)
 Updates slice layout of given node.
float GetChildrenSum (const CSimpleValArray< TreeMapItem * > &items, int startIdx, int endIdx) const
 Sums the size of the children nodes.


Detailed Description

Slice and Dice layout. Area of parent node is split up into parts of the same size.

Member Function Documentation

float TreeMapSliceLayout::GetChildrenSum ( const CSimpleValArray< TreeMapItem * > &  items,
int  startIdx,
int  endIdx 
) const

Sums the size of the children nodes.

Parameters:
items Child nodes.
startIdx Start index.
endIdx End index.

void TreeMapSliceLayout::UpdateLayout ( TreeMapItem item,
LayoutRectangle  rc 
) [virtual]

Updates layout of given node.

Parameters:
item TreeMap node.
rc Bounds of the layout.

Implements TreeMapLayout.

Reimplemented in TreeMapSquaredLayout, and TreeMapStripLayout.

void TreeMapSliceLayout::UpdateSliceLayout ( CSimpleValArray< TreeMapItem * > &  items,
int  startIdx,
int  endIdx,
LayoutRectangle  rc 
)

Updates slice layout of given node.

Parameters:
items Child nodes.
startIdx Start index.
endIdx End index.
rc Bounds of the layout.


The documentation for this class was generated from the following files:

Generated on Thu May 28 08:24:23 2009 for Hierarchical Edge Bundles by  doxygen 1.5.9