Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

GeometricVertexInsertion.h
Go to the documentation of this file.
1 
47 #pragma once
48 #include <ogdf/basic/Graph.h>
50 #include <ogdf/basic/basic.h>
51 #include <ogdf/basic/memory.h>
52 
53 namespace ogdf {
54 class GraphAttributes;
55 class VertexPositionModule;
56 template<class E>
57 class List;
58 
63 public:
65  GeometricVertexInsertion(Graph& _g) : g(_g) { (void)g; }
66 
68 
70  virtual void call(GraphAttributes& GA) override;
71 
72  void setVertexPosition(VertexPositionModule* opt_pos) { m_pos = opt_pos; }
73 
74  void setVertexOrder(List<node>* vertex_order) { m_vertex_order = vertex_order; }
75 
77  void setInitialLayouter(ogdf::LayoutModule* initial_layout_module) {
78  m_initial_layout_module = initial_layout_module;
79  }
80 
81 private:
82  Graph& g;
83  VertexPositionModule* m_pos = nullptr;
84  List<node>* m_vertex_order = nullptr;
85  LayoutModule* m_initial_layout_module = nullptr;
86 
88 };
89 
90 }
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
ogdf::GeometricVertexInsertion::g
Graph & g
Definition: GeometricVertexInsertion.h:82
Graph.h
Includes declaration of graph class.
ogdf::GeometricVertexInsertion::setInitialLayouter
void setInitialLayouter(ogdf::LayoutModule *initial_layout_module)
sets the method to compute the initial layout of the computed (planar) subgraph
Definition: GeometricVertexInsertion.h:77
ogdf::GeometricVertexInsertion::GeometricVertexInsertion
GeometricVertexInsertion(Graph &_g)
Constructor, sets options to default values.
Definition: GeometricVertexInsertion.h:65
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::GeometricVertexInsertion::setVertexPosition
void setVertexPosition(VertexPositionModule *opt_pos)
Definition: GeometricVertexInsertion.h:72
ogdf::GeometricVertexInsertion
Definition: GeometricVertexInsertion.h:62
ogdf::GeometricVertexInsertion::~GeometricVertexInsertion
~GeometricVertexInsertion()
Definition: GeometricVertexInsertion.h:67
ogdf::GeometricVertexInsertion::setVertexOrder
void setVertexOrder(List< node > *vertex_order)
Definition: GeometricVertexInsertion.h:74
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
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
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