Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

ForceLayoutModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
38 
39 namespace ogdf {
40 
46 {
47  // holds index of the current level in multilevel hierarchy
49 
50 public:
53 
54  virtual ~ForceLayoutModule() { }
55 
56  virtual void call(GraphAttributes &GA) override = 0;
57 
80  virtual void call(MultilevelGraph &MLG) {
81  m_currentLevel = MLG.getLevel();
82  GraphAttributes GA(MLG.getGraph());
83  MLG.exportAttributesSimple(GA);
84  call(GA);
85  MLG.importAttributesSimple(GA);
86  };
87 
89 };
90 
91 }
virtual void call(MultilevelGraph &MLG)
Computes a layout of graph MLG.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
ForceLayoutModule()
Initializes a force layout module.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
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)
Interface of general layout algorithms.
Definition: LayoutModule.h:44
Interface of general layout algorithms.
The namespace for all OGDF objects.
void exportAttributesSimple(GraphAttributes &GA) const