|
Hierarchical Edge Bundle 1.0
|
#include <BSpline.h>

Public Member Functions | |
| BSpline (BasisFunktion *basisFunktion, float *controlPolygonX, float *controlPolygonY, float *controlPolygonZ, int controlPolygonSize, float id) | |
| ~BSpline (void) | |
| void | recalculate (float beta) |
| vec3 * | getValues () |
| float | getLength () const |
| void | draw () |
| int | GetID () |
| int | GetVectorPos () |
| void | SetID (int id) |
| void | SetVectorPos (int id) |
| void | UpdatePosition () |
| void | UpdateIDs (float id) |
| void | UpdateColor (vec4 startcolor, vec4 endcolor) |
This class creates/calculates/recalculates B-Splines
| BSpline::BSpline | ( | BasisFunktion * | basisFunktion, |
| float * | controlPolygonX, | ||
| float * | controlPolygonY, | ||
| float * | controlPolygonZ, | ||
| int | controlPolygonSize, | ||
| float | id | ||
| ) |
Constructor to create an BSpline object
| basisFunktion | to get the weights for the B-Spline calculation |
| controlPolygonX | the x-values of the control points from the B-Spline |
| controlPolygonY | the y-values of the control points from the B-Spline |
| controlPolygonZ | the z-values of the control points from the B-Spline |
| controlPolygonSize | the number of control points |
| id | the id of the adjacency edge |

| BSpline::~BSpline | ( | void | ) |
Destructor
| void BSpline::draw | ( | ) |
this method is called to draw the B-Spline
| int BSpline::GetID | ( | ) |
| float BSpline::getLength | ( | ) | const |
return the squared length of the B-Spline

| vec3 * BSpline::getValues | ( | ) |
return a pointer to the first element of a array containing vec3 of the calculated B-Spline points for the line-strip
| int BSpline::GetVectorPos | ( | ) |
| void BSpline::recalculate | ( | float | beta | ) |
Method to recalculate the B-Spline with a given beta (bundling strength)
| beta | bundling strength |

| void BSpline::SetID | ( | int | id | ) |
| void BSpline::SetVectorPos | ( | int | id | ) |
| void BSpline::UpdateColor | ( | vec4 | startcolor, |
| vec4 | endcolor | ||
| ) |
| void BSpline::UpdateIDs | ( | float | id | ) |
| void BSpline::UpdatePosition | ( | ) |

1.7.4