#include <ogdf/misclayout/BalloonLayout.h>
|
void | computeAngles (const Graph &G) |
| Computes the angle distribution: assigns m_angle each node. More...
|
|
void | computeBFSTree (const Graph &G, node v) |
| Computes tree by BFS, fills m_parent and m_childCount. More...
|
|
void | computeCoordinates (GraphAttributes &AG) |
| Computes coordinates from angles and radii. More...
|
|
void | computeRadii (GraphAttributes &AG) |
| Computes a radius for each of the vertices in G. fractal model: same radius on same level, such that r(m) = gamma* r(m-1) where gamma is predefined SNS model: different radii possible Optimal: unordered tree, order of children is optimized. More...
|
|
void | computeTree (const Graph &G) |
| Computes the spanning tree that is used for the layout computation, the non-tree edges are simply added into the layout. More...
|
|
void | selectRoot (const Graph &G) |
| Selects the root of the spanning tree that is placed in the layout center. More...
|
|
Definition at line 63 of file BalloonLayout.h.
◆ ChildOrder
◆ RootSelection
◆ TreeComputation
◆ BalloonLayout()
ogdf::BalloonLayout::BalloonLayout |
( |
| ) |
|
Constructor, sets options to default values.
◆ call()
◆ callFractal()
virtual void ogdf::BalloonLayout::callFractal |
( |
GraphAttributes & |
AG, |
|
|
double |
ratio = 0.3 |
|
) |
| |
|
inlinevirtual |
Call using special parameter settings for fractal model takes radius ratio < 0.5 as parameter.
Definition at line 84 of file BalloonLayout.h.
◆ check()
void ogdf::BalloonLayout::check |
( |
Graph & |
G | ) |
|
|
private |
Use even angles independent of subtree size.
◆ checkTree()
void ogdf::BalloonLayout::checkTree |
( |
const Graph & |
G, |
|
|
bool |
treeRoot = true |
|
) |
| |
|
private |
Consistency check for the tree.
◆ computeAngles()
void ogdf::BalloonLayout::computeAngles |
( |
const Graph & |
G | ) |
|
|
protected |
Computes the angle distribution: assigns m_angle each node.
◆ computeBFSTree()
void ogdf::BalloonLayout::computeBFSTree |
( |
const Graph & |
G, |
|
|
node |
v |
|
) |
| |
|
protected |
Computes tree by BFS, fills m_parent and m_childCount.
◆ computeCoordinates()
Computes coordinates from angles and radii.
◆ computeRadii()
Computes a radius for each of the vertices in G. fractal model: same radius on same level, such that r(m) = gamma* r(m-1) where gamma is predefined SNS model: different radii possible Optimal: unordered tree, order of children is optimized.
◆ computeTree()
void ogdf::BalloonLayout::computeTree |
( |
const Graph & |
G | ) |
|
|
protected |
Computes the spanning tree that is used for the layout computation, the non-tree edges are simply added into the layout.
◆ getEvenAngles()
bool ogdf::BalloonLayout::getEvenAngles |
( |
| ) |
|
|
inline |
returns how the angles are assigned to subtrees.
Definition at line 95 of file BalloonLayout.h.
◆ operator=()
◆ selectRoot()
void ogdf::BalloonLayout::selectRoot |
( |
const Graph & |
G | ) |
|
|
protected |
Selects the root of the spanning tree that is placed in the layout center.
◆ setEvenAngles()
void ogdf::BalloonLayout::setEvenAngles |
( |
bool |
b | ) |
|
|
inline |
Subtrees may be assigned even angles or angles depending on their size.
Definition at line 92 of file BalloonLayout.h.
◆ m_angle
NodeArray<double> ogdf::BalloonLayout::m_angle |
|
private |
◆ m_childCount
NodeArray<int> ogdf::BalloonLayout::m_childCount |
|
private |
◆ m_childList
◆ m_childOrder
◆ m_estimate
NodeArray<double> ogdf::BalloonLayout::m_estimate |
|
private |
Rough estimate of circumference of subtrees.
Definition at line 134 of file BalloonLayout.h.
◆ m_estimateFactor
double ogdf::BalloonLayout::m_estimateFactor |
|
private |
Weight of value (largestchild / number of children) added to estimate to compute radius.
Definition at line 148 of file BalloonLayout.h.
◆ m_evenAngles
bool ogdf::BalloonLayout::m_evenAngles |
|
private |
◆ m_maxChildRadius
NodeArray<double> ogdf::BalloonLayout::m_maxChildRadius |
|
private |
◆ m_oRadius
NodeArray<double> ogdf::BalloonLayout::m_oRadius |
|
private |
Radius at node center.
Outer radius enclosing all children.
Definition at line 129 of file BalloonLayout.h.
◆ m_parent
◆ m_radius
NodeArray<double> ogdf::BalloonLayout::m_radius |
|
private |
◆ m_root
node ogdf::BalloonLayout::m_root |
|
private |
◆ m_rootSelection
◆ m_size
NodeArray<double> ogdf::BalloonLayout::m_size |
|
private |
◆ m_treeComputation
◆ m_treeEdge
EdgeArray<bool> ogdf::BalloonLayout::m_treeEdge |
|
private |
◆ m_treeRoot
node ogdf::BalloonLayout::m_treeRoot |
|
private |
The documentation for this class was generated from the following file: