Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

MultilevelLayoutModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
37 #include <ogdf/basic/basic.h>
38 #include <ogdf/basic/memory.h>
40 
41 namespace ogdf {
42 
49 public:
52 
54 
62  virtual void call(GraphAttributes& GA) override = 0;
63 
86  virtual void call(MultilevelGraph& MLG) {
87  GraphAttributes GA(MLG.getGraph());
88  MLG.exportAttributesSimple(GA);
89  call(GA);
90  MLG.importAttributesSimple(GA);
91  };
92 
94 };
95 
96 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
GraphAttributes.h
Declaration of class GraphAttributes which extends a Graph by additional attributes.
ogdf::MultilevelLayoutModule::call
virtual void call(MultilevelGraph &MLG)
Computes a layout of graph MLG.
Definition: MultilevelLayoutModule.h:86
ogdf::MultilevelGraph::getGraph
Graph & getGraph()
Definition: MultilevelGraph.h:140
ogdf::MultilevelGraph::exportAttributesSimple
void exportAttributesSimple(GraphAttributes &GA) const
LayoutModule.h
Declaration of interface for layout algorithms (class LayoutModule)
ogdf::MultilevelGraph
Definition: MultilevelGraph.h:69
ogdf::MultilevelLayoutModule::~MultilevelLayoutModule
virtual ~MultilevelLayoutModule()
Definition: MultilevelLayoutModule.h:53
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
ogdf::MultilevelLayoutModule
Interface of general layout algorithms that also allow a MultilevelGraph as call parameter,...
Definition: MultilevelLayoutModule.h:48
MultilevelGraph.h
MLG is the main data structure for ModularMultilevelMixer.
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::MultilevelLayoutModule::MultilevelLayoutModule
MultilevelLayoutModule()
Initializes a multilevel layout module.
Definition: MultilevelLayoutModule.h:51
ogdf::MultilevelGraph::importAttributesSimple
void importAttributesSimple(const GraphAttributes &GA)
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::LayoutModule
Interface of general layout algorithms.
Definition: LayoutModule.h:45