Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
ForceLayoutModule.h
Go to the documentation of this file.
1
33#pragma once
34
38
39namespace ogdf {
40
46 // holds index of the current level in multilevel hierarchy
48
49public:
52
53 virtual ~ForceLayoutModule() { }
54
55 virtual void call(GraphAttributes& GA) override = 0;
56
79 virtual void call(MultilevelGraph& MLG) {
80 m_currentLevel = MLG.getLevel();
81 GraphAttributes GA(MLG.getGraph());
82 MLG.exportAttributesSimple(GA);
83 call(GA);
84 MLG.importAttributesSimple(GA);
85 };
86
88};
89
90}
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of interface for layout algorithms (class LayoutModule)
MLG is the main data structure for ModularMultilevelMixer.
Interface of general layout algorithms.
virtual void call(MultilevelGraph &MLG)
Computes a layout of graph MLG.
virtual void call(GraphAttributes &GA) override=0
Computes a layout of graph GA.
ForceLayoutModule()
Initializes a force layout module.
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition memory.h:91
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.