98 double nodeDistance()
const {
100 return m_nodeDistance;
111 return m_layerDistance;
126 return m_fixedLayerDistance;
131 m_fixedLayerDistance = b;
136 return m_weightSegments;
141 if(w > 0.0 && w <= 100.0)
142 m_weightSegments = w;
147 return m_weightBalancing;
152 if(w >= 0.0 && w <= 100.0)
153 m_weightBalancing = w;
163 void computeXCoordinates(
166 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.
void weightBalancing(double w)
Sets the weight for balancing successors below a node to w; 0.0 means no balancing.
Stores additional attributes of a graph (like layout information).
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.