Hierarchical Edge Bundle 1.0
Public Types | Public Member Functions
MapVertex Class Reference

#include <TreeMap.h>

List of all members.

Public Types

typedef boost::shared_ptr< StripStripPtr
typedef boost::shared_ptr
< MapVertex
MapVertexPtr

Public Member Functions

 MapVertex (VertexPtr owner, double width, double height)
double GetWidth ()
double GetHeight ()
void SetWidth (double width)
void SetHeight (double height)
double CalculateAvarangeAspectRatio ()
double CalculateLastAspectRatio ()
double CalculateAspectRatioOfStrip (int at)
double GetWidthOfItemsAtStrip (unsigned int at)
double GetWidthOfItemsAtLastStrip ()
double GetHeightOfItems ()
unsigned int GetNumberOfStrips ()
void AddStrip (StripPtr strip)
void SetStripAt (StripPtr strip, unsigned int at)
StripPtr GetStripAt (unsigned int at)
StripPtr GetLastStrip ()
void RemoveStripAt (int at)
VertexPtr GetOwner ()
void SetOwner (VertexPtr owner)

Detailed Description

This class defines the Map of the Treemap

Author:
Michael Beham
Date:
3.6.2011

Member Typedef Documentation

typedef boost::shared_ptr<MapVertex> MapVertex::MapVertexPtr
typedef boost::shared_ptr<Strip> MapVertex::StripPtr

Constructor & Destructor Documentation

MapVertex::MapVertex ( VertexPtr  owner,
double  width,
double  height 
)

standard constructor

Here is the call graph for this function:


Member Function Documentation

void MapVertex::AddStrip ( MapVertex::StripPtr  strip)

This method add a strip

Parameters:
[StringPtr]strip which should be added

Here is the caller graph for this function:

double MapVertex::CalculateAspectRatioOfStrip ( int  at)

This method calculates the aspect radio of the specified strip.

Returns:
[double] average aspect ratio.

Here is the call graph for this function:

double MapVertex::CalculateAvarangeAspectRatio ( )

This method calculates the average aspect radio of the strip

Returns:
[double] average aspect ratio.
double MapVertex::CalculateLastAspectRatio ( )

This method calculates the last aspect radio of the strip

Returns:
[double] average aspect ratio.

Here is the call graph for this function:

double MapVertex::GetHeight ( )

Returns the height of this strip

Returns:
[double] height of the strip
double MapVertex::GetHeightOfItems ( )

This method returns the height of the strips.

Returns:
[double] height of the strip

Here is the caller graph for this function:

MapVertex::StripPtr MapVertex::GetLastStrip ( )

Returns the last strip element

Returns:
[StripPtr] return the last strip
unsigned int MapVertex::GetNumberOfStrips ( )

This method returns the number of strips

Returns:
[unsigned int] number of strips
VertexPtr MapVertex::GetOwner ( )

Returns the Owner of this element

Returns:
[VertexPtr] returns the owner
MapVertex::StripPtr MapVertex::GetStripAt ( unsigned int  at)

Returns the strip at a specfied position

Parameters:
at[unsigned int] position at
Returns:
[StripPtr] Stripvertex
double MapVertex::GetWidth ( )

Returns the width of this strip

Returns:
[double] width of the strip
double MapVertex::GetWidthOfItemsAtLastStrip ( )

This method returns the width of the last strip

Returns:
[double] width of the strip

Here is the caller graph for this function:

double MapVertex::GetWidthOfItemsAtStrip ( unsigned int  at)

This method returns the width of a specfied strip

Parameters:
at[unsigned int] selected strip
Returns:
[double] width of the strip

Here is the caller graph for this function:

void MapVertex::RemoveStripAt ( int  at)

Remove the strip at a specified position

Parameters:
at[int] specififed position.
void MapVertex::SetHeight ( double  height)

This method sets the height of the strip

Parameters:
height[double] height of the strip
void MapVertex::SetOwner ( VertexPtr  owner)

This method sets the owner

Parameters:
[VertexPtr]owner of the owner
void MapVertex::SetStripAt ( MapVertex::StripPtr  strip,
unsigned int  at 
)

This method sets at a specified position the strip

Parameters:
strip[StripPtr] strip vertex which should be added.
at[unsigned int] position
void MapVertex::SetWidth ( double  width)

This method sets the width of the strip

Parameters:
width[double] width of the strip

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines