65 if (
GA.has(GraphAttributes::nodeGraphics)) {
78 AGC.transferToOriginal(
GA);
90 HierarchyLayoutModule::dynLayerDistance(
AGC, H);
91 HierarchyLayoutModule::addBends(
AGC, H);
92 AGC.transferToOriginal(
AG);
101 void call(
const Hierarchy& H, GraphAttributes &, GraphAttributes &
AGC) {
106 static void addBends(GraphAttributes &
AGC, HierarchyLevels &levels);
121 return GC.isDummy(v) ? 0.0 :
GA.width(v);
128 return GC.isDummy(v) ? 0.0 :
GA.height(v);
Declaration of interfaces used in Sugiyama framework.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of Hierarchy class.
Stores additional attributes of a graph (like layout information).
Copies of graphs supporting edge splitting.
Representation of proper hierarchies used by Sugiyama-layout.
Interface of hierarchy layout algorithms.
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,...
static void dynLayerDistance(GraphAttributes &AGC, HierarchyLevelsBase &levels)
virtual void doCall(const HierarchyLevelsBase &levels, GraphAttributes &AGC)=0
Implements the actual algorithm call.
void call(const HierarchyLevelsBase &levels, GraphAttributes &GA)
Computes a hierarchy layout of levels in GA.
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.
HierarchyLayoutModule()
Initializes a hierarchy layout module.
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.
virtual ~HierarchyLayoutModule()
virtual const Hierarchy & hierarchy() const =0
Class for the representation of nodes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.