Interface of hierarchy layout algorithms. More...
#include <ogdf/layered/HierarchyLayoutModule.h>
Public Member Functions | |
HierarchyLayoutModule () | |
Initializes a hierarchy layout module. More... | |
virtual | ~HierarchyLayoutModule () |
void | call (const HierarchyLevelsBase &levels, GraphAttributes &GA) |
Computes a hierarchy layout of levels in GA . More... | |
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. More... | |
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 . More... | |
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 . More... | |
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) More... | |
Interface of hierarchy layout algorithms.
Definition at line 52 of file HierarchyLayoutModule.h.
|
inline |
Initializes a hierarchy layout module.
Definition at line 55 of file HierarchyLayoutModule.h.
|
inlinevirtual |
Definition at line 57 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 64 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::OptimalHierarchyLayout, ogdf::FastSimpleHierarchyLayout, and ogdf::FastHierarchyLayout.
|
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 130 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 123 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)