Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
53 namespace ogdf {
54 class GraphAttributes;
55 class VertexPositionModule;
56 template<class E>
57 class List;
58 
60 public:
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 
83 protected:
84 private:
85  Graph& g;
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 }
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::GeometricEdgeInsertion::setInitialLayouter
void setInitialLayouter(ogdf::LayoutModule *initial_layout_module)
sets the method to compute the initial layout of the computed (planar) subgraph
Definition: GeometricEdgeInsertion.h:79
ogdf::GeometricEdgeInsertion
Definition: GeometricEdgeInsertion.h:59
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::VertexPositionModule
Interface for computing a good / optimal vertex position.
Definition: VertexPositionModule.h:44
ogdf::GeometricEdgeInsertion::GeometricEdgeInsertion
GeometricEdgeInsertion(Graph &_g)
Constructor, sets options to default values.
Definition: GeometricEdgeInsertion.h:62
ogdf::GeometricEdgeInsertion::g
Graph & g
Definition: GeometricEdgeInsertion.h:85
ogdf::List< edge >
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
ogdf::GeometricEdgeInsertion::setVertexPosition
void setVertexPosition(VertexPositionModule *opt_pos)
sets the routine the compute the new position of a vertex
Definition: GeometricEdgeInsertion.h:70
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
ogdf::GeometricEdgeInsertion::~GeometricEdgeInsertion
~GeometricEdgeInsertion()
Definition: GeometricEdgeInsertion.h:64
ogdf::GeometricEdgeInsertion::setHiddenEdgeSet
void setHiddenEdgeSet(List< edge > *edge_set)
sets the set of edges that have to reinserted
Definition: GeometricEdgeInsertion.h:73
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::LayoutModule
Interface of general layout algorithms.
Definition: LayoutModule.h:45