BSplineSet Class Reference

#include <BSplineSet.h>

List of all members.

Public Member Functions

 BSplineSet (int _hierarchyDepth)
 ~BSplineSet ()
void addBSpline (Node **controlPolygon, int size, int lcaIndex)
void setBundlingStrength (float _bundlingStrength)
void setLcaRemoval (bool _removeLca)
void useTransparency (bool _transparency)
void renderRooted ()
void renderRadial ()
void renderBalloon ()
void sortBSplinesByLength ()

Private Member Functions

void quickSort (int left, int right, std::vector< BSpline * > *splineVector)
int split (int left, int right, std::vector< BSpline * > *splineVector)

Private Attributes

std::vector< BSpline * > * rootedBSplineVector
std::vector< BSpline * > * radialBSplineVector
std::vector< BSpline * > * balloonBSplineVector
std::vector< BSpline * > * rootedBSplineWithLcaVector
std::vector< BSpline * > * radialBSplineWithLcaVector
std::vector< BSpline * > * balloonBSplineWithLcaVector
float bundlingStrength
int hierarchyDepth
int pointsPerSpline
bool removeLca
bool transparency
BasisFunction ** basisFunctionArray

Static Private Attributes

static log4cxx::LoggerPtr logger


Detailed Description

A set of B-Spline curves

Constructor & Destructor Documentation

BSplineSet::BSplineSet ( int  _hierarchyDepth  ) 

Constructs a new BSplineSet object

Parameters:
_hierarchyDepth Number of layers of the underlying tree

BSplineSet::~BSplineSet (  ) 

Destroys the object


Member Function Documentation

void BSplineSet::addBSpline ( Node **  controlPolygon,
int  size,
int  lcaIndex 
)

Adds a new B-Spline to the B-Spline set

Parameters:
controlPolygon array with pointers to Node-objects representing the control points
size number of control points inside the array
lcaIndex index of the least common ancestor inside the array

void BSplineSet::quickSort ( int  left,
int  right,
std::vector< BSpline * > *  splineVector 
) [private]

Implementation of the QuickSort Algorithm from Tony Hoare to sort the B-Splines by length The Splines are sorted from the longest to the shortest

Parameters:
left Left index, usually 0
right Right index, usually splineVector->size() - 1
splineVector Pointer to the splineVector with the pointers to the B-Spline objects

void BSplineSet::renderBalloon (  ) 

Renders the set of B-Splines for the Balloon Tree

void BSplineSet::renderRadial (  ) 

Renders the set of B-Splines for the Radial Tree

void BSplineSet::renderRooted (  ) 

Renders the set of B-Splines for the Rooted Tree

void BSplineSet::setBundlingStrength ( float  _bundlingStrength  ) 

Sets the value of the bundling strength which modifies the control polygons of the B-Splines

Parameters:
_bundlingStrength the new bundling strength

void BSplineSet::setLcaRemoval ( bool  _removeLca  ) 

Sets a boolean value indicating whether the lca should be removed or not

Parameters:
_removeLca boolean value indicating whether the lca should be removed or not

void BSplineSet::sortBSplinesByLength (  ) 

Sorts the B-Splines by length so that they are rendered from the longest to the shortest

int BSplineSet::split ( int  left,
int  right,
std::vector< BSpline * > *  splineVector 
) [private]

Finds a pivot element, brings the other elements to the correct side and returns its index

Parameters:
left Left index
right Right index
splineVector Pointer to the splineVector with the pointers to the B-Spline objects

void BSplineSet::useTransparency ( bool  _transparency  ) 

Sets a boolean value indicating whether transparency is used for rendering the splines or not

Parameters:
_transparency boolean value indicating whether transparency is used for rendering the splines or not


Member Data Documentation

std::vector<BSpline*>* BSplineSet::balloonBSplineVector [private]

Pointer to a vector with pointers to BSpline curves for the balloon tree without lca

Pointer to a vector with pointers to BSpline curves for the balloon tree with lca

Array of pointers to the Basis Function Sets to calculate the B-Spline curves

Parameter which modifies the initial control polygon, must be inside [0, 1]

Number of layers of the underlying tree

LoggerPtr BSplineSet::logger [static, private]

Number of points used to draw the line strips representing the B-Splines

std::vector<BSpline*>* BSplineSet::radialBSplineVector [private]

Pointer to a vector with pointers to BSpline curves for the radial tree without lca

Pointer to a vector with pointers to BSpline curves for the radial tree with lca

bool BSplineSet::removeLca [private]

Boolean value indicating whether the least common ancestor should be removed or not

std::vector<BSpline*>* BSplineSet::rootedBSplineVector [private]

Pointer to a vector with pointers to BSpline curves for the rooted tree without lca

Pointer to a vector with pointers to BSpline curves for the rooted tree with lca

bool BSplineSet::transparency [private]

Boolean value indicating whether transparency is used for rendering the splines 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