TreeLayoutGenerator::ExtremeInfo Class Reference

List of all members.

Public Member Functions

 ExtremeInfo (DisplayTreeNode *node_, double offset_, int layer_)
 ExtremeInfo (int layer_, DisplayTreeNode *leaf)
 ExtremeInfo (const ExtremeInfo &o)
void incrOffset (double incr)
void decrOffset (double decr)
double getOffset () const
DisplayTreeNodegetNode () const
void merge (const ExtremeInfo &other, bool left)
 Compares this and other, the result is stored in this.

Protected Member Functions

 ExtremeInfo ()

Protected Attributes

DisplayTreeNodenode
 Link to the "extreme" node.
double offset
 Offset of the node in current subtree.
int layer

Detailed Description

Structure is used to keep track of "extreme" nodes on lowest level of subtrees extreme means left or rightmost in current subtree

Definition at line 27 of file TreeLayoutGenerator.cpp.


Constructor & Destructor Documentation

TreeLayoutGenerator::ExtremeInfo::ExtremeInfo ( DisplayTreeNode node_,
double  offset_,
int  layer_ 
) [inline]

Definition at line 30 of file TreeLayoutGenerator.cpp.

TreeLayoutGenerator::ExtremeInfo::ExtremeInfo ( int  layer_,
DisplayTreeNode leaf 
) [inline]

Definition at line 38 of file TreeLayoutGenerator.cpp.

TreeLayoutGenerator::ExtremeInfo::ExtremeInfo ( const ExtremeInfo o  )  [inline]

Definition at line 45 of file TreeLayoutGenerator.cpp.

TreeLayoutGenerator::ExtremeInfo::ExtremeInfo (  )  [inline, protected]

Definition at line 79 of file TreeLayoutGenerator.cpp.


Member Function Documentation

void TreeLayoutGenerator::ExtremeInfo::decrOffset ( double  decr  )  [inline]

Definition at line 53 of file TreeLayoutGenerator.cpp.

DisplayTreeNode* TreeLayoutGenerator::ExtremeInfo::getNode (  )  const [inline]

Definition at line 56 of file TreeLayoutGenerator.cpp.

Referenced by TreeLayoutGenerator::calcSubtreeDistance().

Here is the caller graph for this function:

double TreeLayoutGenerator::ExtremeInfo::getOffset (  )  const [inline]

Definition at line 55 of file TreeLayoutGenerator.cpp.

Referenced by TreeLayoutGenerator::calcSubtreeDistance().

Here is the caller graph for this function:

void TreeLayoutGenerator::ExtremeInfo::incrOffset ( double  incr  )  [inline]

Definition at line 52 of file TreeLayoutGenerator.cpp.

void TreeLayoutGenerator::ExtremeInfo::merge ( const ExtremeInfo other,
bool  left 
) [inline]

Compares this and other, the result is stored in this.

Definition at line 59 of file TreeLayoutGenerator.cpp.

Here is the call graph for this function:


Member Data Documentation

int TreeLayoutGenerator::ExtremeInfo::layer [protected]

Layer of this node, needed for merging ExtremeInfos because the Node has to be on the lowest subtree (i.e. where layer is maximal)

Definition at line 93 of file TreeLayoutGenerator.cpp.

Referenced by merge().

DisplayTreeNode* TreeLayoutGenerator::ExtremeInfo::node [protected]

Link to the "extreme" node.

Definition at line 86 of file TreeLayoutGenerator.cpp.

Referenced by merge().

double TreeLayoutGenerator::ExtremeInfo::offset [protected]

Offset of the node in current subtree.

Definition at line 89 of file TreeLayoutGenerator.cpp.

Referenced by merge().


The documentation for this class was generated from the following file:
Generated on Tue Sep 15 14:48:50 2009 for RoseQtWidgets by  doxygen 1.4.7