Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
VertexMovement.h
Go to the documentation of this file.
1
44#pragma once
45
46#include <ogdf/basic/Graph.h>
48#include <ogdf/basic/basic.h>
49#include <ogdf/basic/memory.h>
50
51namespace ogdf {
52class GraphAttributes;
53class VertexPositionModule;
54template<class E>
55class List;
56
58public:
62
64 virtual void call(GraphAttributes& GA) override;
65
66 void setVertexPosition(VertexPositionModule* opt_pos) { m_pos = opt_pos; }
67
68 void setVertexOrder(List<node>* vertex_order) { m_vertex_order = vertex_order; }
69
70
71protected:
72private:
73 VertexPositionModule* m_pos = nullptr;
74 List<node>* m_vertex_order = nullptr;
75
77};
78
79}
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Basic declarations, included by all source files.
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition List.h:1451
VertexMovement()
Constructor, sets options to default values.
virtual void call(GraphAttributes &GA) override
The main call to the algorithm. GA should have nodeGraphics attributes enabled.
void setVertexOrder(List< node > *vertex_order)
void setVertexPosition(VertexPositionModule *opt_pos)
Interface for computing a good / optimal vertex position.
#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_NEW_DELETE
Makes the class use OGDF's memory allocator.
Definition memory.h:85
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.