Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

MultilevelLayoutModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
37 
38 namespace ogdf {
39 
46 public:
49 
51 
59  virtual void call(GraphAttributes &GA) override = 0;
60 
61 
84  virtual void call(MultilevelGraph &MLG) {
85  GraphAttributes GA(MLG.getGraph());
86  MLG.exportAttributesSimple(GA);
87  call(GA);
88  MLG.importAttributesSimple(GA);
89  };
90 
91 
93 };
94 
95 
96 } // end namespace ogdf
#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
MultilevelLayoutModule()
Initializes a multilevel layout module.
Stores additional attributes of a graph (like layout information).
MLG is the main data structure for ModularMultilevelMixer.
void importAttributesSimple(const GraphAttributes &GA)
Declaration of interface for layout algorithms (class LayoutModule)
virtual void call(MultilevelGraph &MLG)
Computes a layout of graph MLG.
Interface of general layout algorithms.
Definition: LayoutModule.h:44
Interface of general layout algorithms that also allow a MultilevelGraph as call parameter, extending the interface of a simple LayoutModule.
The namespace for all OGDF objects.
void exportAttributesSimple(GraphAttributes &GA) const