#include <RadialTreeLayout.h>

Public Types | |
| enum | RootSelectionType { rootIsSource, rootIsSink, rootIsCenter } |
| Selection strategies for root of the tree. More... | |
Public Member Functions | |
| RadialTreeLayout () | |
| Creates an instance of radial tree layout and sets options to default values. | |
| RadialTreeLayout (const RadialTreeLayout &tl) | |
| Copy constructor. | |
| ~RadialTreeLayout () | |
| RadialTreeLayout & | operator= (const RadialTreeLayout &tl) |
| Assignment operator. | |
| void | call (GraphAttributes &GA) |
| Calls the algorithm for graph attributes GA. | |
| double | levelDistance () const |
| Returns the option levelDistance. | |
| void | levelDistance (double x) |
| Sets the option levelDistance to x. | |
| double | connectedComponentDistance () const |
| Returns the option connectedComponentDistance. | |
| void | connectedComponentDistance (double x) |
| Sets the option connectedComponentDistance to x. | |
| RootSelectionType | rootSelection () const |
| Returns the option rootSelection. | |
| void | rootSelection (RootSelectionType sel) |
| Sets the option rootSelection to sel. | |
| const NodeArray< double > & | diameter () const |
| const NodeArray< double > & | leaves () const |
| void * | operator new (size_t nBytes) |
| void * | operator new (size_t, void *p) |
| void | operator delete (void *p, size_t nBytes) |
Private Member Functions | |
| void | FindRoot (const Graph &G) |
| void | ComputeLevels (const Graph &G) |
| void | ComputeDiameters (GraphAttributes &AG) |
| void | ComputeAngles (const Graph &G) |
| void | ComputeCoordinates (GraphAttributes &AG) |
| void | ComputeGrouping (int i) |
Private Attributes | |
| double | m_levelDistance |
| The minimal distance between levels. | |
| double | m_connectedComponentDistance |
| The minimal distance between trees. | |
| RootSelectionType | m_selectRoot |
| Specifies how to determine the root. | |
| node | m_root |
| The root of the tree. | |
| int | m_numLevels |
| The number of levels (root is on level 0). | |
| NodeArray< int > | m_level |
| The level of a node. | |
| NodeArray< node > | m_parent |
| The parent of a node (0 if root). | |
| NodeArray< double > | m_leaves |
| The weighted number of leaves in subtree. | |
| Array< SListPure< node > > | m_nodes |
| The nodes at a level. | |
| NodeArray< double > | m_angle |
| The angle of node center (for placement). | |
| NodeArray< double > | m_wedge |
| The wedge reserved for subtree. | |
| NodeArray< double > | m_diameter |
| The diameter of a circle bounding a node. | |
| Array< double > | m_width |
| The width of a circle. | |
| Array< double > | m_radius |
| The width of a level. | |
| double | m_outerRadius |
| The radius of circle bounding the drawing. | |
| NodeArray< Grouping > | m_grouping |
Classes | |
| struct | Group |
| class | Grouping |
Radial tree layout provides the following optional parameters.
| Option | Type | Default | Description |
|---|---|---|---|
| levelDistance | double | 50.0 | The minimal vertical distance required between levels. |
| connectedComponentDistance | double | 50.0 | The minimal horizontal distance required between trees in the forest. |
| rootSelection | RootSelectionType | rootIsCenter | Specifies how to select the root of the tree. |
Definition at line 89 of file RadialTreeLayout.h.
Selection strategies for root of the tree.
| rootIsSource | Select a source in the graph. |
| rootIsSink | Select a sink in the graph. |
| rootIsCenter | Select the center of the tree. |
Definition at line 93 of file RadialTreeLayout.h.
| ogdf::RadialTreeLayout::RadialTreeLayout | ( | ) |
Creates an instance of radial tree layout and sets options to default values.
| ogdf::RadialTreeLayout::RadialTreeLayout | ( | const RadialTreeLayout & | tl | ) |
Copy constructor.
| ogdf::RadialTreeLayout::~RadialTreeLayout | ( | ) |
| RadialTreeLayout& ogdf::RadialTreeLayout::operator= | ( | const RadialTreeLayout & | tl | ) |
Assignment operator.
| void ogdf::RadialTreeLayout::call | ( | GraphAttributes & | GA | ) | [virtual] |
Calls the algorithm for graph attributes GA.
The algorithm preserve the order of children which is given by the adjacency lists.
| GA | represents the input graph and is assigned the computed layout. |
Implements ogdf::LayoutModule.
| double ogdf::RadialTreeLayout::levelDistance | ( | ) | const [inline] |
| void ogdf::RadialTreeLayout::levelDistance | ( | double | x | ) | [inline] |
| double ogdf::RadialTreeLayout::connectedComponentDistance | ( | ) | const [inline] |
| void ogdf::RadialTreeLayout::connectedComponentDistance | ( | double | x | ) | [inline] |
| RootSelectionType ogdf::RadialTreeLayout::rootSelection | ( | ) | const [inline] |
| void ogdf::RadialTreeLayout::rootSelection | ( | RootSelectionType | sel | ) | [inline] |
| const NodeArray<double>& ogdf::RadialTreeLayout::diameter | ( | ) | const [inline] |
Definition at line 215 of file RadialTreeLayout.h.
| const NodeArray<double>& ogdf::RadialTreeLayout::leaves | ( | ) | const [inline] |
Definition at line 216 of file RadialTreeLayout.h.
| void ogdf::RadialTreeLayout::FindRoot | ( | const Graph & | G | ) | [private] |
| void ogdf::RadialTreeLayout::ComputeLevels | ( | const Graph & | G | ) | [private] |
| void ogdf::RadialTreeLayout::ComputeDiameters | ( | GraphAttributes & | AG | ) | [private] |
| void ogdf::RadialTreeLayout::ComputeAngles | ( | const Graph & | G | ) | [private] |
| void ogdf::RadialTreeLayout::ComputeCoordinates | ( | GraphAttributes & | AG | ) | [private] |
| void ogdf::RadialTreeLayout::ComputeGrouping | ( | int | i | ) | [private] |
| void* ogdf::RadialTreeLayout::operator new | ( | size_t | nBytes | ) | [inline] |
| void* ogdf::RadialTreeLayout::operator new | ( | size_t | , | |
| void * | p | |||
| ) | [inline] |
| void ogdf::RadialTreeLayout::operator delete | ( | void * | p, | |
| size_t | nBytes | |||
| ) | [inline] |
Definition at line 226 of file RadialTreeLayout.h.
double ogdf::RadialTreeLayout::m_levelDistance [private] |
double ogdf::RadialTreeLayout::m_connectedComponentDistance [private] |
node ogdf::RadialTreeLayout::m_root [private] |
int ogdf::RadialTreeLayout::m_numLevels [private] |
NodeArray<int> ogdf::RadialTreeLayout::m_level [private] |
NodeArray<node> ogdf::RadialTreeLayout::m_parent [private] |
NodeArray<double> ogdf::RadialTreeLayout::m_leaves [private] |
Array<SListPure<node> > ogdf::RadialTreeLayout::m_nodes [private] |
NodeArray<double> ogdf::RadialTreeLayout::m_angle [private] |
NodeArray<double> ogdf::RadialTreeLayout::m_wedge [private] |
NodeArray<double> ogdf::RadialTreeLayout::m_diameter [private] |
Array<double> ogdf::RadialTreeLayout::m_width [private] |
Array<double> ogdf::RadialTreeLayout::m_radius [private] |
double ogdf::RadialTreeLayout::m_outerRadius [private] |
NodeArray<Grouping> ogdf::RadialTreeLayout::m_grouping [private] |
Definition at line 163 of file RadialTreeLayout.h.