Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
LayoutPlanRepUMLModule.h
Go to the documentation of this file.
1
33#pragma once
34
35#include <ogdf/basic/Layout.h>
36#include <ogdf/uml/PlanRepUML.h>
37
38namespace ogdf {
39
40
47public:
50
52
61
66
68 const DPoint& getBoundingBox() const { return m_boundingBox; }
69
71 virtual void setOptions(int /* optionField */) { }
72
73 // don't make it abstract!
74
76 virtual int getOptions() { return 0; }
77
78 // don't make it abstract!
79
81 virtual double separation() const = 0;
82
84 virtual void separation(double sep) = 0;
85
86protected:
92
99 m_boundingBox = drawing.computeBoundingBox(PG);
100 }
101
103};
104
105}
Declaration of class Layout.
Declaration of class PlanRepUML.
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 UML layout algorithms.
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.
virtual void separation(double sep)=0
Sets the minimal allowed distance between edges and vertices to sep.
virtual void setOptions(int)
Sets the (generic) options; derived classes have to cope with the interpretation)
void operator()(PlanRepUML &PG, adjEntry adjExternal, Layout &drawing)
Computes a planar layout of PG in drawing.
LayoutPlanRepUMLModule()
Initializes a UML planar layout module.
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 int getOptions()
Returns the (generic) options.
virtual void call(PlanRepUML &PG, adjEntry adjExternal, Layout &drawing)=0
Computes a planar layout of PG in drawing.
Planarized representations (of a connected component) of a graph.
Definition PlanRep.h:57
Planarized representation (of a connected component) of a UMLGraph; allows special handling of hierar...
Definition PlanRepUML.h:48
#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.