Interface of hierarchy layout algorithms. More...
#include <ogdf/layered/HierarchyLayoutModule.h>
Public Member Functions | |
HierarchyLayoutModule () | |
Initializes a hierarchy layout module. | |
virtual | ~HierarchyLayoutModule () |
void | call (const HierarchyLevelsBase &levels, GraphAttributes &GA) |
Computes a hierarchy layout of levels in GA . | |
Static Public Member Functions | |
static void | dynLayerDistance (GraphAttributes &AGC, HierarchyLevelsBase &levels) |
Protected Member Functions | |
virtual void | doCall (const HierarchyLevelsBase &levels, GraphAttributes &AGC)=0 |
Implements the actual algorithm call. | |
Static Protected Member Functions | |
static double | getHeight (const GraphAttributes &GA, const HierarchyLevelsBase &levels, node v) |
Returns the GA height of node v or 0 if it is a dummy node in the hierarchy of levels . | |
static double | getWidth (const GraphAttributes &GA, const HierarchyLevelsBase &levels, node v) |
Returns the GA width of node v or 0 if it is a dummy node in the hierarchy of levels . | |
Static Private Member Functions | |
static void | overlap (GraphAttributes &AGC, HierarchyLevelsBase &levels, node s, node t, int i, int &ci, int &cj) |
after calling, ci (cj) contains the number of nodes of level i (j=i-1) which overlap the edge (s,t) | |
Interface of hierarchy layout algorithms.
Definition at line 47 of file HierarchyLayoutModule.h.
|
inline |
Initializes a hierarchy layout module.
Definition at line 50 of file HierarchyLayoutModule.h.
|
inlinevirtual |
Definition at line 52 of file HierarchyLayoutModule.h.
|
inline |
Computes a hierarchy layout of levels
in GA
.
levels | is the input hierarchy. |
GA | is assigned the hierarchy layout. |
Definition at line 59 of file HierarchyLayoutModule.h.
|
protectedpure virtual |
Implements the actual algorithm call.
Must be implemented by derived classes.
levels | is the input hierarchy. |
AGC | has to be assigned the hierarchy layout. |
Implemented in ogdf::FastHierarchyLayout, ogdf::FastSimpleHierarchyLayout, and ogdf::OptimalHierarchyLayout.
|
static |
|
inlinestaticprotected |
Returns the GA
height of node v
or 0 if it is a dummy node in the hierarchy of levels
.
Definition at line 125 of file HierarchyLayoutModule.h.
|
inlinestaticprotected |
Returns the GA
width of node v
or 0 if it is a dummy node in the hierarchy of levels
.
Definition at line 118 of file HierarchyLayoutModule.h.
|
staticprivate |
after calling, ci (cj) contains the number of nodes of level i (j=i-1) which overlap the edge (s,t)