The radial tree layout algorithm.
More...
#include <ogdf/tree/RadialTreeLayout.h>
The radial tree layout algorithm.
Optional parameters
Radial tree layout provides the following optional parameters.
Option | Type | Default | Description |
levelDistance | double | 30.0 | The minimal vertical distance required between levels. |
rootSelection | RootSelectionType | RootSelectionType::Center | Specifies how to select the root of the tree. |
Definition at line 65 of file RadialTreeLayout.h.
◆ RootSelectionType
Selection strategies for root of the tree.
Enumerator |
---|
Source | Select a source in the graph.
|
Sink | Select a sink in the graph.
|
Center | Select the center of the tree.
|
Definition at line 68 of file RadialTreeLayout.h.
◆ RadialTreeLayout() [1/2]
ogdf::RadialTreeLayout::RadialTreeLayout |
( |
| ) |
|
Creates an instance of radial tree layout and sets options to default values.
◆ RadialTreeLayout() [2/2]
◆ ~RadialTreeLayout()
ogdf::RadialTreeLayout::~RadialTreeLayout |
( |
| ) |
|
|
default |
◆ call()
Calls the algorithm for graph attributes GA
.
The algorithm preserve the order of children which is given by the adjacency lists.
- Precondition
- The graph is a tree.
- Parameters
-
GA | represents the input graph and is assigned the computed layout. |
Implements ogdf::LayoutModule.
◆ ComputeAngles()
void ogdf::RadialTreeLayout::ComputeAngles |
( |
const Graph & |
G | ) |
|
|
private |
◆ ComputeCoordinates()
◆ ComputeDiameters()
◆ ComputeGroupings()
void ogdf::RadialTreeLayout::ComputeGroupings |
( |
const Graph & |
G | ) |
|
|
private |
◆ ComputeLevels()
void ogdf::RadialTreeLayout::ComputeLevels |
( |
const Graph & |
G | ) |
|
|
private |
◆ diameter()
const NodeArray< double > & ogdf::RadialTreeLayout::diameter |
( |
| ) |
const |
|
inline |
◆ FindRoot()
void ogdf::RadialTreeLayout::FindRoot |
( |
const Graph & |
G | ) |
|
|
private |
◆ levelDistance() [1/2]
double ogdf::RadialTreeLayout::levelDistance |
( |
| ) |
const |
|
inline |
◆ levelDistance() [2/2]
void ogdf::RadialTreeLayout::levelDistance |
( |
double |
x | ) |
|
|
inline |
◆ operator=()
◆ rootSelection() [1/2]
◆ rootSelection() [2/2]
◆ m_absWidth
NodeArray<double> ogdf::RadialTreeLayout::m_absWidth |
|
private |
◆ m_angle
NodeArray<double> ogdf::RadialTreeLayout::m_angle |
|
private |
◆ m_children
◆ m_diameter
NodeArray<double> ogdf::RadialTreeLayout::m_diameter |
|
private |
◆ m_level
NodeArray<int> ogdf::RadialTreeLayout::m_level |
|
private |
◆ m_levelDistance
double ogdf::RadialTreeLayout::m_levelDistance |
|
private |
◆ m_maxDiameter
Array<double> ogdf::RadialTreeLayout::m_maxDiameter |
|
private |
◆ m_nodes
◆ m_numLevels
int ogdf::RadialTreeLayout::m_numLevels |
|
private |
◆ m_parent
◆ m_radius
Array<double> ogdf::RadialTreeLayout::m_radius |
|
private |
◆ m_relWidth
NodeArray<double> ogdf::RadialTreeLayout::m_relWidth |
|
private |
The relative width of the subtree.
A nodes relative width is the greater of the sum of its childrens widths and its diameter divided by its childrens level.
Definition at line 87 of file RadialTreeLayout.h.
◆ m_root
node ogdf::RadialTreeLayout::m_root |
|
private |
◆ m_selectRoot
◆ m_wedge
NodeArray<double> ogdf::RadialTreeLayout::m_wedge |
|
private |
The documentation for this class was generated from the following file: