62 virtual double separation()
const override {
return m_separation; }
64 virtual void separation(
double sep)
override { m_separation = sep; }
73 double margin()
const {
return m_margin; }
75 void margin(
double m) { m_margin = m; }
96 void align(
bool b) { m_align = b; }
99 void scaling(
bool b) { m_useScalingCompaction = b; }
114 if (optionField & UMLOpt::OpAlign) {
119 if (optionField & UMLOpt::OpScale) {
120 m_useScalingCompaction =
true;
122 m_useScalingCompaction =
false;
124 if (optionField & UMLOpt::OpProg) {
134 result =
static_cast<int>(UMLOpt::OpAlign);
136 if (m_useScalingCompaction) {
137 result += UMLOpt::OpScale;
139 if (m_orthoStyle == 1) {
140 result += UMLOpt::OpProg;
Includes declaration of graph class.
Declaration of interface for planar layout algorithms for UML diagrams (used in planarization approac...
Declaration of orthogonal representation of planar graphs.
Basic declarations, included by all source files.
Class for adjacency list elements.
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Interface for planar UML layout algorithms.
Represents planar orthogonal drawing algorithm for mixed-upward planar embedded graphs (UML-diagrams)
virtual void call(PlanRepUML &PG, adjEntry adjExternal, Layout &drawing) override
Computes a planar layout of PG in drawing.
virtual double separation() const override
Returns the minimal allowed distance between edges and vertices.
void classifyEdges(PlanRepUML &PG, adjEntry &adjExternal)
void computeBoundingBox(const PlanRepUML &PG, Layout &drawing)
virtual void setOptions(int optionField) override
Sets the (generic) options; derived classes have to cope with the interpretation)
void align(bool b)
Set alignment option.
OrthoDir preferedDir() const
virtual void separation(double sep) override
Sets the minimal allowed distance between edges and vertices to sep.
void optionProfile(int i)
Set the option profile, thereby fixing a set of drawing options.
void setBendBound(int i)
Set bound on the number of bends.
int m_bendBound
bounds number of bends per edge in ortho shaper
bool m_useScalingCompaction
virtual int getOptions() override
Returns the (generic) options.
void scaling(bool b)
Set scaling compaction.
void preferedDir(OrthoDir dir)
Planarized representation (of a connected component) of a UMLGraph; allows special handling of hierar...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
The namespace for all OGDF objects.