Hierarchical Edge Bundle 1.0
Public Member Functions
BSpline Class Reference

#include <BSpline.h>

Collaboration diagram for BSpline:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

This class creates/calculates/recalculates B-Splines


Constructor & Destructor Documentation

BSpline::BSpline ( BasisFunktion basisFunktion,
float *  controlPolygonX,
float *  controlPolygonY,
float *  controlPolygonZ,
int  controlPolygonSize,
float  id 
)

Constructor to create an BSpline object

Parameters:
basisFunktionto get the weights for the B-Spline calculation
controlPolygonXthe x-values of the control points from the B-Spline
controlPolygonYthe y-values of the control points from the B-Spline
controlPolygonZthe z-values of the control points from the B-Spline
controlPolygonSizethe number of control points
idthe id of the adjacency edge

Here is the call graph for this function:

BSpline::~BSpline ( void  )

Destructor


Member Function Documentation

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

Returns:
a float containing the length

Here is the caller graph for this function:

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

Returns:
pointer to array containing the xyz-positions of the calculated Values
int BSpline::GetVectorPos ( )
void BSpline::recalculate ( float  beta)

Method to recalculate the B-Spline with a given beta (bundling strength)

Parameters:
betabundling strength

Here is the call graph for this function:

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 ( )

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines