#include <TreeMap.h>

Public Member Functions | |
| void | UpdateLayout (TreeMapItem *item, LayoutRectangle rc) |
| Updates layout of given node. | |
| void | UpdateSquaredLayout (CSimpleValArray< TreeMapItem * > &items, int startIdx, int endIdx, LayoutRectangle rc) |
| Updates squared layout of given node. | |
| float | GetNormAspect (float big, float smal, float a, float b) const |
| Calculate normalized aspect ratio. | |
| float TreeMapSquaredLayout::GetNormAspect | ( | float | big, | |
| float | smal, | |||
| float | a, | |||
| float | b | |||
| ) | const |
Calculate normalized aspect ratio.
| big | Bigger side of the node rectangle. | |
| small | Smaller side of the node rectangle. | |
| a | Weight calculated from the size of the node. | |
| b | Weight calculated from the size of the node. |
| void TreeMapSquaredLayout::UpdateLayout | ( | TreeMapItem * | item, | |
| LayoutRectangle | rc | |||
| ) | [virtual] |
Updates layout of given node.
| item | TreeMap node. | |
| rc | Bounds of the layout. |
Reimplemented from TreeMapSliceLayout.
| void TreeMapSquaredLayout::UpdateSquaredLayout | ( | CSimpleValArray< TreeMapItem * > & | items, | |
| int | startIdx, | |||
| int | endIdx, | |||
| LayoutRectangle | rc | |||
| ) |
Updates squared layout of given node.
| items | Child nodes. | |
| startIdx | Start index. | |
| endIdx | End index. | |
| rc | Bounds of the layout. |
1.5.9