TreeMapSquaredLayout Class Reference

Squared layout. The algorithm tries to get aspect ratios close to 1 for all child rectangles. More...

#include <TreeMap.h>

Inheritance diagram for TreeMapSquaredLayout:

TreeMapSliceLayout TreeMapLayout

List of all members.

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.


Detailed Description

Squared layout. The algorithm tries to get aspect ratios close to 1 for all child rectangles.

Member Function Documentation

float TreeMapSquaredLayout::GetNormAspect ( float  big,
float  smal,
float  a,
float  b 
) const

Calculate normalized aspect ratio.

Parameters:
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.

Parameters:
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.

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