Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
LayoutPlanRepModule.h
Go to the documentation of this file.
1
33#pragma once
34
35#include <ogdf/basic/Layout.h>
37
38namespace ogdf {
39
40
42
46public:
49
52
54
63
68
70 const DPoint& getBoundingBox() const { return m_boundingBox; }
71
73 virtual double separation() const = 0;
74
76 virtual void separation(double sep) = 0;
77
78protected:
80
84
86
91 m_boundingBox = drawing.computeBoundingBox(PG);
92 }
93
95};
96
97}
Declaration of class Layout.
Declaration of a base class for planar representations of graphs and cluster graphs.
Class for adjacency list elements.
Definition Graph_d.h:79
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Definition Layout.h:46
Interface for planar layout algorithms (used in the planarization approach).
virtual double separation() const =0
Returns the minimal allowed distance between edges and vertices.
DPoint m_boundingBox
Stores the bounding box of the computed layout.
const DPoint & getBoundingBox() const
Returns the bounding box of the computed layout.
void setBoundingBox(PlanRep &PG, Layout &drawing)
Computes and sets the bounding box variable m_boundingBox.
virtual ~LayoutPlanRepModule()
Destructor.
virtual void separation(double sep)=0
Sets the minimal allowed distance between edges and vertices to sep.
virtual void call(PlanRep &PG, adjEntry adjExternal, Layout &drawing)=0
Computes a planar layout of PG in drawing.
LayoutPlanRepModule()
Initializes a planar layout module.
void operator()(PlanRep &PG, adjEntry adjExternal, Layout &drawing)
Computes a planar layout of PG in drawing.
Planarized representations (of a connected component) of a graph.
Definition PlanRep.h:57
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition memory.h:91
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.