DataSet Class Reference

#include <DataSet.h>

List of all members.

Public Member Functions

 DataSet (Node *_root, Node **_nodes, int _hierarchyElements)
 ~DataSet ()
NodegetNode (int index)
Node ** getNodes ()
void initRelationArrays (int _relationCount)
void addRelation (int index, int originIndex, int destinationIndex)
NodegetRoot ()
void setHierarchyDepth (int _hierarchyDepth)
void setMaxFanOut ()
void renderRooted ()
void renderRadial ()
void renderBalloon ()
void setBundlingStrength (float bundlingStrength)
void setRelationVisability (bool visable)
void setLcaRemoval (bool remove)
void useTransparency (bool useTransparency)
void init ()
float * getRootedTreeBoundaries ()
float * getRadialTreeBoundaries ()
float * getBalloonTreeBoundaries ()
void buildRootedTree ()
void buildRadialTree ()
void buildBalloonTree ()

Private Member Functions

void findControlPolygons ()
void setTreeBoundaries ()

Private Attributes

bool rootedTreeBuilt
bool radialTreeBuilt
bool balloonTreeBuilt
bool showRelations
Noderoot
Node ** nodes
BSplineSetbSplineSet
int hierarchyElements
int relationCount
int relationInsertionIndex
int hierarchyDepth
int maxFanOut
int * originNodeIndices
int * destinationNodeIndices
float * rootedTreeBoundaries
float * radialTreeBoundaries
float * balloonTreeBoundaries
GLuint rootedTreeDisplayListID
GLuint radialTreeDisplayListID
GLuint balloonTreeDisplayListID
unsigned int * nodesPerLevel

Static Private Attributes

static log4cxx::LoggerPtr logger


Detailed Description

Data set holding the tree and the B-Splines

Constructor & Destructor Documentation

DataSet::DataSet ( Node _root,
Node **  _nodes,
int  _hierarchyElements 
)

Constructs a new DataSet object

Parameters:
_root pointer to the root node of the tree
_nodes array of pointers to the nodes of the tree
_hierarchyElements number of nodes in the tree

DataSet::~DataSet (  ) 

Destroys the object


Member Function Documentation

void DataSet::addRelation ( int  index,
int  originIndex,
int  destinationIndex 
)

Adds a relation

Parameters:
index index of the relation starting at 0
originIndex index of the origin node
destinationIndex index of the destination node

void DataSet::buildBalloonTree (  ) 

Builds the Balloon Tree

void DataSet::buildRadialTree (  ) 

Builds the Radial Tree

void DataSet::buildRootedTree (  ) 

Builds the Rooted Tree

void DataSet::findControlPolygons (  )  [private]

Finds the control polygons for all pairs of nodes which have a relation

float * DataSet::getBalloonTreeBoundaries (  ) 

Returns the pointer to the array with the boundaries of the Balloon Tree

Returns:
pointer to the array with the boundaries of the Balloon Tree in the form xMin, yMin, xMax, yMax

Node * DataSet::getNode ( int  index  ) 

Returns the pointer to a specific Node object

Parameters:
index index of the node
Returns:
pointer to the considered Node object

Node ** DataSet::getNodes (  ) 

Returns the pointer to the array with the pointers to the nodes of the tree

Returns:
pointer to the array with the pointers to the nodes of the tree

float * DataSet::getRadialTreeBoundaries (  ) 

Returns the pointer to the array with the boundaries of the Radial Tree

Returns:
pointer to the array with the boundaries of the Radial Tree in the form xMin, yMin, xMax, yMax

Node * DataSet::getRoot (  ) 

Returns the root of the tree

Returns:
pointer to the Node object representing the root of the tree

float * DataSet::getRootedTreeBoundaries (  ) 

Returns the pointer to the array with the boundaries of the Rooted Tree

Returns:
pointer to the array with the boundaries of the Rooted Tree in the form xMin, yMin, xMax, yMax

void DataSet::init (  ) 

Initializes the dataset (sets the levels of every node, sets the max. fanout, builds the trees and finds the control polygons)

void DataSet::initRelationArrays ( int  _relationCount  ) 

Initializes the arrays for the relation information

Parameters:
_relationCount number of relations

void DataSet::renderBalloon (  ) 

Renders the Balloon Tree

void DataSet::renderRadial (  ) 

Renders the Radial Tree

void DataSet::renderRooted (  ) 

Renders the Rooted Tree

void DataSet::setBundlingStrength ( float  bundlingStrength  ) 

Sets the bundling strength which modifies the control polygon

Parameters:
bundlingStrength the bundling strength which modifies the control polygon

void DataSet::setHierarchyDepth ( int  _hierarchyDepth  ) 

Sets the number of layers the tree has and makes a new BSplineSet object

Parameters:
_hierarchyDepth number of layers the tree has

void DataSet::setLcaRemoval ( bool  remove  ) 

Sets a boolean value indicating whether the LCA is removed or not

Parameters:
remove boolean value indicating whether the LCA is removed or not

void DataSet::setMaxFanOut (  ) 

Sets the maximum fanout of the tree, which is the maximum number of childs of every node

void DataSet::setRelationVisability ( bool  visable  ) 

Sets a boolean value indicating whether the relations (B-Splines) are rendered or not

Parameters:
visable boolean value indicating whether the relations (B-Splines) are rendered or not

void DataSet::setTreeBoundaries (  )  [private]

Sets the boundaries of the trees

void DataSet::useTransparency ( bool  useTransparency  ) 

Sets a boolean value indicating whether transparency is used or not

Parameters:
useTransparency boolean value indicating whether transparency is used or not


Member Data Documentation

Array with the boundaries of the Balloon Tree in the form xMin, yMin, xMax, yMax

bool DataSet::balloonTreeBuilt [private]

Boolean value indicating whether the Balloon Tree is built or not

ID of the Displaylist to draw the Balloon Tree

Pointer to the BSpline set

Array with the IDs of nodes which are the destination of directed relationships to other nodes

int DataSet::hierarchyDepth [private]

Number of layers of the tree

Number of nodes in the tree

LoggerPtr DataSet::logger [static, private]

int DataSet::maxFanOut [private]

Maximum of childs of every node

Node** DataSet::nodes [private]

Array of pointers to the nodes of the tree

unsigned int* DataSet::nodesPerLevel [private]

Count of Nodes per level of the tree

Array with the IDs of nodes which are the origin of directed relationships to other nodes

Array with the boundaries of the Radial Tree in the form xMin, yMin, xMax, yMax

bool DataSet::radialTreeBuilt [private]

Boolean value indicating whether the Radial Tree is built or not

ID of the Displaylist to draw the Radial Tree

int DataSet::relationCount [private]

Number of relations (B-Splines) in the tree

Index to insert a new relation into the corresponding arrays

Node* DataSet::root [private]

Pointer to the Node-object which is the root of the tree

Array with the boundaries of the Rooted Tree in the form xMin, yMin, xMax, yMax

bool DataSet::rootedTreeBuilt [private]

Boolean value indicating whether the Rooted Tree is built or not

ID of the Displaylist to draw the Rooted Tree

bool DataSet::showRelations [private]

Boolean value indicating whether the relations (B-Splines) are rendered or not


The documentation for this class was generated from the following files:

Generated on Tue Jun 2 19:53:44 2009 for Hierarchical Edge Bundles by  doxygen 1.5.7.1