99 double nodeDistance()
const {
101 return m_nodeDistance;
112 return m_layerDistance;
127 return m_fixedLayerDistance;
132 m_fixedLayerDistance = b;
137 return m_weightSegments;
142 if(w > 0.0 && w <= 100.0)
143 m_weightSegments = w;
148 return m_weightBalancing;
153 if(w >= 0.0 && w <= 100.0)
154 m_weightBalancing = w;
164 void computeXCoordinates(
167 void computeYCoordinates(
void weightSegments(double w)
Sets the weight of edge segments connecting to vertical segments to w.
bool m_fixedLayerDistance
Use fixed layer distances?
void nodeDistance(double x)
Sets the minimal allowed x-distance between nodes on a layer to x.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
double m_nodeDistance
The minimal distance between nodes.
double m_weightSegments
The weight of edge segments.
Declaration of interface hierarchy layout algorithms (3.
double layerDistance() const
Returns the minimal allowed y-distance between layers.
double weightSegments() const
Returns the weight of edge segments connecting to vertical segments.
double m_layerDistance
The minimal distance between layers.
void fixedLayerDistance(bool b)
Sets the option fixedLayerDistance to b.
Helper class for accessing graph attributes from a copy of the graph.
void weightBalancing(double w)
Sets the weight for balancing successors below a node to w; 0.0 means no balancing.
Interface of hierarchy layout algorithms.
double weightBalancing() const
Returns the weight for balancing successors below a node; 0.0 means no balancing. ...
void layerDistance(double x)
Sets the minimal allowed y-distance between layers to x.
bool fixedLayerDistance() const
Returns the current setting of option fixedLayerDistance.
~OptimalHierarchyLayout()
The namespace for all OGDF objects.
double m_weightBalancing
The weight for balancing.
The LP-based hierarchy layout algorithm.