Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
51 namespace ogdf {
52 class GraphAttributes;
53 class VertexPositionModule;
54 template<class E>
55 class List;
56 
58 public:
61  ~VertexMovement();
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 
71 protected:
72 private:
73  VertexPositionModule* m_pos = nullptr;
74  List<node>* m_vertex_order = nullptr;
75 
77 };
78 
79 }
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
Graph.h
Includes declaration of graph class.
ogdf::VertexMovement::setVertexOrder
void setVertexOrder(List< node > *vertex_order)
Definition: VertexMovement.h:68
ogdf::VertexMovement::setVertexPosition
void setVertexPosition(VertexPositionModule *opt_pos)
Definition: VertexMovement.h:66
LayoutModule.h
Declaration of interface for layout algorithms (class LayoutModule)
OGDF_NEW_DELETE
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Definition: memory.h:85
ogdf::VertexMovement
Definition: VertexMovement.h:57
ogdf::VertexPositionModule
Interface for computing a good / optimal vertex position.
Definition: VertexPositionModule.h:44
ogdf::List
Doubly linked lists (maintaining the length of the list).
Definition: DfsMakeBiconnected.h:40
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
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::LayoutModule
Interface of general layout algorithms.
Definition: LayoutModule.h:45