Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
GeometricEdgeInsertion.h
Go to the documentation of this file.
1
46#pragma once
47
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
60public:
62 GeometricEdgeInsertion(Graph& _g) : g(_g) { (void)g; }
63
65
67 virtual void call(GraphAttributes& GA) override;
68
70 void setVertexPosition(VertexPositionModule* opt_pos) { m_pos = opt_pos; }
71
73 void setHiddenEdgeSet(List<edge>* edge_set) {
74 m_edge_set = edge_set;
75 //m_hidden_edges = hidden_edge_set;
76 }
77
79 void setInitialLayouter(ogdf::LayoutModule* initial_layout_module) {
80 m_initial_layout_module = initial_layout_module;
81 }
82
83protected:
84private:
86 VertexPositionModule* m_pos = nullptr;
87 LayoutModule* m_initial_layout_module = nullptr;
88
89 List<edge>* m_edge_set = nullptr;
90
91
93};
94
95}
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Basic declarations, included by all source files.
void setHiddenEdgeSet(List< edge > *edge_set)
sets the set of edges that have to reinserted
void setVertexPosition(VertexPositionModule *opt_pos)
sets the routine the compute the new position of a vertex
void setInitialLayouter(ogdf::LayoutModule *initial_layout_module)
sets the method to compute the initial layout of the computed (planar) subgraph
GeometricEdgeInsertion(Graph &_g)
Constructor, sets options to default values.
virtual void call(GraphAttributes &GA) override
The main call to the algorithm. GA should have nodeGraphics attributes enabled.
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.