Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
53namespace ogdf {
54class GraphAttributes;
55class VertexPositionModule;
56template<class E>
57class List;
58
63public:
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
81private:
83 VertexPositionModule* m_pos = nullptr;
84 List<node>* m_vertex_order = nullptr;
85 LayoutModule* m_initial_layout_module = nullptr;
86
88};
89
90}
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Basic declarations, included by all source files.
virtual void call(GraphAttributes &GA) override
The main call to the algorithm. GA should have nodeGraphics attributes enabled.
void setVertexOrder(List< node > *vertex_order)
GeometricVertexInsertion(Graph &_g)
Constructor, sets options to default values.
void setVertexPosition(VertexPositionModule *opt_pos)
void setInitialLayouter(ogdf::LayoutModule *initial_layout_module)
sets the method to compute the initial layout of the computed (planar) subgraph
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:866
Interface of general layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition List.h:1451
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.