Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ForceLayoutModule.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
41namespace ogdf {
42
48 // holds index of the current level in multilevel hierarchy
50
51public:
54
55 virtual ~ForceLayoutModule() { }
56
57 virtual void call(GraphAttributes& GA) override = 0;
58
81 virtual void call(MultilevelGraph& MLG) {
82 m_currentLevel = MLG.getLevel();
83 GraphAttributes GA(MLG.getGraph());
85 call(GA);
87 };
88
90};
91
92}
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.
Basic declarations, included by all source files.
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.
void exportAttributesSimple(GraphAttributes &GA) const
void importAttributesSimple(const GraphAttributes &GA)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition memory.h:92
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.