Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
VertexPositionModule.h
Go to the documentation of this file.
1
32#pragma once
33
35#include <ogdf/basic/Graph_d.h>
36#include <ogdf/basic/geometry.h>
37
38namespace ogdf {
39
44public:
45 // ~Initialize vertex position module
47
49
56 void setBoundingBox(double x_min, double y_min, double x_max, double y_max) {
57 m_x_min = x_min;
58 m_y_min = y_min;
59 m_x_max = x_max;
60 m_y_max = y_max;
61 }
62
64 virtual DPoint call(GraphAttributes& GA, node v) = 0;
65
67 DPoint operator()(GraphAttributes& GA, node v) { return call(GA, v); }
68
69protected:
70 double m_x_min = 0;
71 double m_y_min = 0;
72 double m_x_max = 1;
73 double m_y_max = 1;
74};
75
76}
Pure declaration header, find template implementation in Graph.h.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Stores additional attributes of a graph (like layout information).
Class for the representation of nodes.
Definition Graph_d.h:177
Interface for computing a good / optimal vertex position.
virtual DPoint call(GraphAttributes &GA, node v)=0
computes a good position for the vertex v with respect to GA
void setBoundingBox(double x_min, double y_min, double x_max, double y_max)
Vertex has to be moved within the given bound.
DPoint operator()(GraphAttributes &GA, node v)
computes a good position for the vertex v with respect to GA
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.