TreeRadial3tulip
Treeradial.cpp - an implementation of a radial drawing of trees.
Usage
Public Member Functions
void dfsComputeNodeRadii (node n, unsigned depth, SizeProperty *sizes)
void bfsComputeLayerRadii (float lSpacing, float nSpacing, SizeProperty *sizes)
double dfsComputeAngularSpread (node n, unsigned int depth, SizeProperty *sizes, DoubleProperty *angles)
void doLayout (node n, unsigned int depth, double startAngle, double endAngle, DoubleProperty *angles, bool checkAngle=false)
TreeRadial (const PropertyContext &context)
bool run ()
Public Attributes
Graph * tree
vector< float > nRadii
vector< float > lRadii
vector< vector< node > > bfs
Detailed Description
TreeRadial.cpp - An implementation of a radial drawing of trees.
This algorithm is inspired from MoireGraphs: Radial Focus+Context Visualization and Interaction for Graphs with Visual Nodes from T. J. Jankun-Kelly, Kwan-Liu Ma published in IEEE Symposium on Information Visualization (2003)