Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

HierarchyLayoutModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/layered/Hierarchy.h>
38 
39 namespace ogdf {
40 
41 
48 public:
51 
52  virtual ~HierarchyLayoutModule() { }
53 
59  void call(const HierarchyLevelsBase &levels, GraphAttributes &GA) {
60  GraphCopyAttributes AGC(levels.hierarchy(),GA);
61  doCall(levels,AGC);
62  AGC.transform();
63  }
64 
65 #if 0
66 
71  void call(Hierarchy& H, GraphAttributes &AG) {
72  GraphCopyAttributes AGC(H,AG);
73  doCall(H,AGC);
75  HierarchyLayoutModule::addBends(AGC, H);
76  AGC.transform();
77  }
78 
85  void call(const Hierarchy& H, GraphAttributes &, GraphCopyAttributes &AGC) {
86  doCall(H,AGC);
87  }
88 
90  static void addBends(GraphCopyAttributes &AGC, HierarchyLevels &levels);
91 #endif
92 
93  static void dynLayerDistance(GraphCopyAttributes &AGC, HierarchyLevelsBase &levels);
94 
95 private:
96 
98  static void overlap(GraphCopyAttributes &AGC, HierarchyLevelsBase &levels, node s, node t, int i, int &ci, int &cj);
99 
100 protected:
109  virtual void doCall(const HierarchyLevelsBase &levels, GraphCopyAttributes &AGC) = 0;
110 
112 
113 };
114 
115 
116 } // end namespace ogdf
Representation of proper hierarchies used by Sugiyama-layout.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
Declaration of interfaces used in Sugiyama framework.
Declaration of Hierarchy class.
Declaration of class GraphCopy Attributes which manages access on a copy of an attributed graph...
Helper class for accessing graph attributes from a copy of the graph.
Stores additional attributes of a graph (like layout information).
Interface of hierarchy layout algorithms.
static void dynLayerDistance(GraphCopyAttributes &AGC, HierarchyLevelsBase &levels)
Class for the representation of nodes.
Definition: Graph_d.h:167
HierarchyLayoutModule()
Initializes a hierarchy layout module.
virtual const Hierarchy & hierarchy() const =0
The namespace for all OGDF objects.
Representation of proper hierarchies used by Sugiyama-layout.
Definition: Hierarchy.h:44
void call(const HierarchyLevelsBase &levels, GraphAttributes &GA)
Computes a hierarchy layout of levels in GA.