BSpline Class Reference

#include <BSpline.h>

List of all members.

Public Member Functions

 BSpline (BasisFunction *_basisFunction, float *_controlPolygonXValues, float *_controlPolygonYValues, int _controlPolygonSize)
 ~BSpline ()
void rebuild (float beta)
float getSquaredLength ()
void render (float alpha)

Private Member Functions

void init ()
void computeLength ()

Private Attributes

BasisFunctionbasisFunction
int controlPolygonSize
int splinePoints
float * initialControlPolygonXValues
float * initialControlPolygonYValues
float * bundlingControlPolygonXValues
float * bundlingControlPolygonYValues
float * xValues
float * yValues
float lengthSquared

Static Private Attributes

static log4cxx::LoggerPtr logger


Detailed Description

A B-Spline curve controlled by some control points

Constructor & Destructor Documentation

BSpline::BSpline ( BasisFunction _basisFunction,
float *  _controlPolygonXValues,
float *  _controlPolygonYValues,
int  _controlPolygonSize 
)

Constructs a new BSpline object

Parameters:
_basisFunction Pointer to the Basis Function Set to calculate the B-Spline curve
_controlPolygonXValues Array with x-Values of the initial control points
_controlPolygonYValues Array with y-Values of the initial control points
_controlPolygonSize Number of control points

BSpline::~BSpline (  ) 

Destroys the object


Member Function Documentation

void BSpline::computeLength (  )  [private]

Computes the length of the B-Spline

float BSpline::getSquaredLength (  ) 

Returns the squared length of the B-Spline

Returns:
the squared length of the B-Spline

void BSpline::init (  )  [private]

Initializes the B-Spline by filling the arrays with the x- and y-values of the underlying spline points

void BSpline::rebuild ( float  beta  ) 

Rebuilds the B-Spline when the bundling strength changes

Parameters:
beta the new bundling strength which modifies the initial control polygon

void BSpline::render ( float  alpha  ) 

Renders the B-Spline curve

Parameters:
alpha The alpha value of the spline


Member Data Documentation

Pointer to the Basis Function Set to calculate the B-Spline curve

Array with X-Values of the control points with bundling strength of beta, beta inside [0, 1]

Array with Y-Values of the control points with bundling strength of beta, beta inside [0, 1]

Number of control points

Array with X-Values of the control points with bundling strength of 1

Array with Y-Values of the control points with bundling strength of 1

float BSpline::lengthSquared [private]

The squared length of the B-Spline

LoggerPtr BSpline::logger [static, private]

int BSpline::splinePoints [private]

Number of points along the line strip to draw the B-Spline curve

float* BSpline::xValues [private]

Array with X-Values of the spline points

float* BSpline::yValues [private]

Array with Y-Values of the spline points


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