Documentation for vtkKochanekSpline

vtkKochanekSpline - computes an interpolating spline using a Kochanek basis.

Super Class: vtkSpline

Description:

Implements the Kochenek interpolating spline described in: Kochanek, D., Bartels, R., "Interpolating Splines with Local Tension, Continuity, and Bias Control," Computer Graphics, vol. 18, no. 3, pp. 33-41, July 1984. These splines give the user more control over the shape of the curve than the cardinal splines implemented in vtkCardinalSpline. Three parameters can be specified. All have a range from -1 to 1. Tension controls how sharply the curve bends at an input point. A value of -1 produices more slack in the curve. A value of 1 tightens the curve. Continuity controls the continuity of the first derivative at input points. Bias controls the direction os the curve at it passes through an input point. A value of -1 undershoots the point while a value of 1 overshoots the point. These three parameters give the user broad control over the shape of the interpolating spline. The original Kochanek paper describes the effects nicely and is recommended reading.

 

See Also:

vtkSpline vtkCardinalSpline

 

Methods:

void vtkKochanekSpline ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkKochanekSpline *New ()
void Compute ()
float Evaluate (float )
void SetDefaultBias (float )
float GetDefaultBias ()
void SetDefaultTension (float )
float GetDefaultTension ()
void SetDefaultContinuity (float )
float GetDefaultContinuity ()
void Fit1D (int ,float * ,float * ,float ,float ,float ,float ,int ,float ,int ,float )

 

Detailed Method Descriptions:

Construct a KochanekSpline wth the following defaults: DefaultBias = 0, DefaultTension = 0, DefaultContinuity = 0.

static vtkKochanekSpline *New ()

Compute Kochanek Spline coefficients.

void Compute ()

Evaluate a 1D Kochanek spline.

float Evaluate (float )

Set the bias for all points. Default is 0.

void SetDefaultBias (float )
float GetDefaultBias ()

Set the tension for all points. Default is 0.

void SetDefaultTension (float )
float GetDefaultTension ()

Set the continuity for all points. Default is 0.

void SetDefaultContinuity (float )
float GetDefaultContinuity ()