BSplineSet Class Reference
#include <BSplineSet.h>
List of all members.
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 |
( |
|
) |
|
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
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
Number of points used to draw the line strips representing the B-Splines
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
Boolean value indicating whether the least common ancestor should be removed or not
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
Boolean value indicating whether transparency is used for rendering the splines or not
The documentation for this class was generated from the following files:
- Hierarchical_Edge_Bundles/Hierarchical_Edge_Bundles/header/BSplineSet.h
- Hierarchical_Edge_Bundles/Hierarchical_Edge_Bundles/src/BSplineSet.cpp