58 virtual double separation()
const override {
return m_separation; }
69 double margin()
const {
return m_margin; }
71 void margin(
double m) { m_margin = m; }
92 void align(
bool b) { m_align = b; }
95 void scaling(
bool b) { m_useScalingCompaction = b; }
116 m_useScalingCompaction =
true;
118 m_useScalingCompaction =
false;
130 result =
static_cast<int>(UMLOpt::OpAlign);
132 if (m_useScalingCompaction) {
133 result += UMLOpt::OpScale;
135 if (m_orthoStyle == 1) {
136 result += UMLOpt::OpProg;
Declaration of interface for planar layout algorithms for UML diagrams (used in planarization approac...
Declaration of orthogonal representation of planar graphs.
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 DLL.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.