70 if (GA.
has(GraphAttributes::nodeGraphics)) {
95 HierarchyLayoutModule::dynLayerDistance(AGC, H);
96 HierarchyLayoutModule::addBends(AGC, H);
97 AGC.transferToOriginal(AG);
106 void call(
const Hierarchy& H, GraphAttributes &, GraphAttributes &AGC) {
111 static void addBends(GraphAttributes &AGC, HierarchyLevels &levels);
Declaration of interfaces used in Sugiyama framework.
Includes declaration of graph class.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of graph copy classes.
Decralation of GraphElement and GraphList classes.
Declaration of Hierarchy class.
Basic declarations, included by all source files.
Stores additional attributes of a graph (like layout information).
double height(node v) const
Returns the height of the bounding box of node v.
const Graph & constGraph() const
Returns a reference to the associated graph.
double width(node v) const
Returns the width of the bounding box of node v.
void transferToOriginal(GraphAttributes &origAttr) const
Copies attributes of this to origAttr.
Shape shape(node v) const
Returns the shape type of node v.
bool has(long attr) const
Returns true iff all attributes in attr are available.
bool isDummy(node v) const
Returns true iff v has no corresponding node in the original graph.
Copies of graphs supporting edge splitting.
edge copy(edge e) const override
Returns the first edge in the list of edges corresponding to edge e.
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
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 dynamic library (shared object / DLL),...
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.