#include <TreeMap.h>

Public Member Functions | |
| void | UpdateLayout (TreeMapItem *item, LayoutRectangle rc) |
| Updates layout of given node. | |
| void | UpdateStripLayout (CSimpleValArray< TreeMapItem * > &items, int startIdx, int endIdx, LayoutRectangle rc) |
| Updates strip layout of given node. | |
| int | UpdateOneLayoutStrip (CSimpleValArray< TreeMapItem * > &items, LayoutRectangle rcBox, int startIdx, int endIdx) |
| Updates one strip int the layout (Strip is extended if avg aspect ratio increases). | |
| float | ComputeHorizontalBoxLayout (CSimpleValArray< TreeMapItem * > &items, LayoutRectangle rcBox, int startIdx, int nItems) |
| Compute horizontal box layout for given strip. | |
| float | ComputeAverageAspectRatio (CSimpleValArray< TreeMapItem * > &items, int startIdx, int nItems) |
| Calculate average aspect ratio. | |
| float TreeMapStripLayout::ComputeAverageAspectRatio | ( | CSimpleValArray< TreeMapItem * > & | items, | |
| int | startIdx, | |||
| int | nItems | |||
| ) |
Calculate average aspect ratio.
| items | Child nodes. | |
| startIdx | Start index. | |
| nItems | Number of items. |
| float TreeMapStripLayout::ComputeHorizontalBoxLayout | ( | CSimpleValArray< TreeMapItem * > & | items, | |
| LayoutRectangle | rcBox, | |||
| int | startIdx, | |||
| int | nItems | |||
| ) |
Compute horizontal box layout for given strip.
| items | Child nodes. | |
| rc | Bounds of the strip. | |
| startIdx | Start index. | |
| nItems | Number of items. |
| void TreeMapStripLayout::UpdateLayout | ( | TreeMapItem * | item, | |
| LayoutRectangle | rc | |||
| ) | [virtual] |
Updates layout of given node.
| item | TreeMap node. | |
| rc | Bounds of the layout. |
Reimplemented from TreeMapSliceLayout.
| int TreeMapStripLayout::UpdateOneLayoutStrip | ( | CSimpleValArray< TreeMapItem * > & | items, | |
| LayoutRectangle | rcBox, | |||
| int | startIdx, | |||
| int | endIdx | |||
| ) |
Updates one strip int the layout (Strip is extended if avg aspect ratio increases).
| items | Child nodes. | |
| rc | Bounds of the strip. | |
| startIdx | Start index. | |
| endIdx | End index. |
| void TreeMapStripLayout::UpdateStripLayout | ( | CSimpleValArray< TreeMapItem * > & | items, | |
| int | startIdx, | |||
| int | endIdx, | |||
| LayoutRectangle | rc | |||
| ) |
Updates strip layout of given node.
| items | Child nodes. | |
| startIdx | Start index. | |
| endIdx | End index. | |
| rc | Bounds of the layout. |
1.5.9