68 double separation()
const override {
return m_separation; }
86 double margin()
const {
return m_margin; }
89 void margin(
double m) { m_margin = m; }
101 bool scaling()
const {
return m_useScalingCompaction; }
104 void scaling(
bool b) { m_useScalingCompaction = b; }
Declaration of interface for planar layout algorithms (used in planarization approach).
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 layout algorithms (used in the planarization approach).
The Orthogonal layout algorithm for planar graphs.
void progressive(bool b)
Selects if the progressive (true) or traditional (false) orthogonalization model is used.
void computeBoundingBox(const PlanRep &PG, Layout &drawing)
bool scaling() const
Returns whether scaling is used in the compaction phase.
double separation() const override
Returns the minimum distance between edges and vertices.
bool progressive() const
Returns whether the currently selected orthogonaliaztion model is progressive.
double m_margin
margin around drawing
void margin(double m)
Sets the desired margin around the drawing.
double margin() const
Returns the desired margin around the drawing.
void bendBound(int i)
Set bound on the number of bends.
virtual void call(PlanRep &PG, adjEntry adjExternal, Layout &drawing) override
Calls the layout algorithm for planarized representation PG.
int m_bendBound
bounds the number of bends per edge in ortho shaper
double m_separation
minimum distance between obkects
double cOverhang() const
Returns the option m_cOverhang, which specifies the minimal distance of incident edges to the corner ...
void cOverhang(double c)
Sets the option m_cOverhang, which specifies the minimal distance of incident edges to the corner of ...
int m_scalingSteps
number of scaling steps (NOT REALLY USED!)
bool m_progressive
use progressive ortho style (prefer 180 degree angles on deg-2 vertices).
void scaling(bool b)
Selects if scaling is used in the compaction phase.
bool m_useScalingCompaction
use scaling for compaction
OrthoLayout()
Creates an instance of Orthogonal layout and sets options to default values.
void separation(double sep) override
Sets the minimum distance between vertices.
double m_cOverhang
distance to corner (relative to node size)
Planarized representations (of a connected component) of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.