Tulip Plugins
Public Member Functions
TreeReingoldAndTilfordExtended Class Reference

#include <TreeReingoldAndTilfordExtended.h>

List of all members.

Public Member Functions

 TreeReingoldAndTilfordExtended (const tlp::PropertyContext &)
 ~TreeReingoldAndTilfordExtended ()
bool run ()

Detailed Description

This plugin is an implementation of the hierarchical tree layout algorithm first published as:

E.M. Reingold and J.S. Tilford,
"Tidier Drawings of Trees",
"IEEE Transactions on Software Engineering"
pages "223--228"
1981

Note:
This algorithm only works on trees; so if the graph is not a tree it will be applied on a spanning tree.
Let n be the number of nodes, the algorithm complexity is in O(n).
It extends the original Reingold and Tilford by providing managment of different node size and different edge length.

The algorithm use the (Size)"viewSize" property for element size and the (int)"treeEdgeLength" for the edge length.

Constructor & Destructor Documentation

TreeReingoldAndTilfordExtended::TreeReingoldAndTilfordExtended ( const tlp::PropertyContext &  context)
TreeReingoldAndTilfordExtended::~TreeReingoldAndTilfordExtended ( )

Member Function Documentation

bool TreeReingoldAndTilfordExtended::run ( )