85 bool even = getEvenAngles();
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Basic declarations, included by all source files.
void computeAngles(const Graph &G)
Computes the angle distribution: assigns m_angle each node.
NodeArray< double > m_maxChildRadius
Outer radius of largest child.
NodeArray< double > m_estimate
Rough estimate of circumference of subtrees.
NodeArray< double > m_angle
Angle assigned to nodes.
NodeArray< double > m_size
Radius of circle around node box.
NodeArray< node > m_parent
Parent in spanning tree.
EdgeArray< bool > m_treeEdge
Holds info about tree edges.
bool getEvenAngles()
returns how the angles are assigned to subtrees.
void setEvenAngles(bool b)
Subtrees may be assigned even angles or angles depending on their size.
node m_treeRoot
Root of tree after computation.
NodeArray< int > m_childCount
Number of children in spanning tree.
TreeComputation m_treeComputation
How to derive the spanning tree.
void check(Graph &G)
Use even angles independent of subtree size.
ChildOrder m_childOrder
How to arrange the children.
void checkTree(const Graph &G, bool treeRoot=true)
Consistency check for the tree.
NodeArray< double > m_oRadius
Radius at node center.
BalloonLayout()
Constructor, sets options to default values.
virtual void call(GraphAttributes &AG) override
Standard call using the stored parameter settings.
NodeArray< List< node > > m_childList
BalloonLayout & operator=(const BalloonLayout &bl)
Assignmentoperator.
virtual void callFractal(GraphAttributes &AG, double ratio=0.3)
Call using special parameter settings for fractal model takes radius ratio < 0.5 as parameter.
node m_root
Root of tree by selection method.
NodeArray< double > m_radius
void computeBFSTree(const Graph &G, node v)
Computes tree by BFS, fills m_parent and m_childCount.
void computeTree(const Graph &G)
Computes the spanning tree that is used for the layout computation, the non-tree edges are simply add...
void computeRadii(GraphAttributes &AG)
Computes a radius for each of the vertices in G. fractal model: same radius on same level,...
void computeCoordinates(GraphAttributes &AG)
Computes coordinates from angles and radii.
RootSelection m_rootSelection
Defines how the tree root is selected.
double m_estimateFactor
Weight of value (largestchild / number of children) added to estimate to compute radius.
void selectRoot(const Graph &G)
Selects the root of the spanning tree that is placed in the layout center.
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Interface of general layout algorithms.
Class for the representation of nodes.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.