Declaration of interface for layout algorithms (class LayoutModule)
Declaration of singly linked lists and iterators.
The parameterized class Array implements dynamic arrays of type E.
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Interface of general layout algorithms.
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
The radial tree layout algorithm.
RootSelectionType rootSelection() const
Returns the option rootSelection.
double levelDistance() const
Returns the option levelDistance.
int m_numLevels
The number of levels (root is on level 0).
const NodeArray< double > & diameter() const
void ComputeAngles(const Graph &G)
void ComputeCoordinates(GraphAttributes &AG)
virtual void call(GraphAttributes &GA) override
Calls the algorithm for graph attributes GA.
RootSelectionType m_selectRoot
Specifies how to determine the root.
void ComputeDiameters(GraphAttributes &AG)
void FindRoot(const Graph &G)
NodeArray< double > m_angle
The angle of node center (for placement).
Array< double > m_maxDiameter
The maximal diameter on a level.
void rootSelection(RootSelectionType sel)
Sets the option rootSelection to sel.
NodeArray< SListPure< node > > m_children
The children of a node.
NodeArray< double > m_absWidth
the absolute width of the subtree.
void ComputeLevels(const Graph &G)
RadialTreeLayout(const RadialTreeLayout &tl)
Copy constructor.
NodeArray< double > m_relWidth
The relative width of the subtree.
Array< SListPure< node > > m_nodes
The nodes at a level.
RadialTreeLayout & operator=(const RadialTreeLayout &tl)
Assignment operator.
void ComputeGroupings(const Graph &G)
Array< double > m_radius
The width of a level.
NodeArray< node > m_parent
The parent of a node (nullptr if root).
double m_levelDistance
The minimal distance between levels.
RadialTreeLayout()
Creates an instance of radial tree layout and sets options to default values.
~RadialTreeLayout()=default
Destructor.
NodeArray< double > m_diameter
The diameter of a circle bounding a node.
NodeArray< int > m_level
The level of a node.
NodeArray< double > m_wedge
The wedge reserved for subtree.
void levelDistance(double x)
Sets the option levelDistance to x.
node m_root
The root of the tree.
RootSelectionType
Selection strategies for root of the tree.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.