CIvfSpline3d Class Reference

#include <ivfmath/IvfSpline3d.h>

Inheritance diagram for CIvfSpline3d:

CIvfMathBase List of all members.

Public Member Functions

 CIvfSpline3d ()
virtual ~CIvfSpline3d ()
 IvfClassInfo ("CIvfSpline3d", CIvfMathBase)
void clear ()
int getSize ()
void setSize (int size)
CIvfVec3d * getPoint (int idx)
CIvfVec3d & getPosition (double t)
void update ()
void setTangentWeight (int idx, double value)
void setContinuity (int idx, double value)
void setTension (int idx, double value)
double getSpeed (double t)
CIvfVec3d & getTangent (double t)

Detailed Description

3d spline class

Implements a 3d spline class consisting of a number of CIvfSplineSegment3d segments.

Author:
Jonas Lindemann
Examples:

actionctl.cpp, and controllers.cpp.

Definition at line 43 of file IvfSpline3d.h.


Constructor & Destructor Documentation

CIvfSpline3d::CIvfSpline3d (   ) 
 

CIvfSpline3d constructor

virtual CIvfSpline3d::~CIvfSpline3d (   )  [virtual]
 

CIvfSpline3d destructor


Member Function Documentation

void CIvfSpline3d::clear (   ) 
 

Removes all spline points.

CIvfVec3d* CIvfSpline3d::getPoint (  int  idx  ) 
 

Get specified point on spline.

CIvfVec3d& CIvfSpline3d::getPosition (  double  t  ) 
 

Get position on curve

Parameters:
t distance from curve start 0 <= t <= getSize()-1

int CIvfSpline3d::getSize (   ) 
 

Returns the number of points in the spline

double CIvfSpline3d::getSpeed (  double  t  ) 
 

Get curve speed

Parameters:
t distance from curve start 0 <= t <= getSize()-1

CIvfVec3d& CIvfSpline3d::getTangent (  double  t  ) 
 

Get curve tangent

Parameters:
t distance from curve start 0 <= t <= getSize()-1

void CIvfSpline3d::setContinuity (  int  idx,
double  value
) 
 

Set tangent continuity of specified point

void CIvfSpline3d::setSize (  int  size  ) 
 

Set number of points in spline

This will effectively remove all previous points.

void CIvfSpline3d::setTangentWeight (  int  idx,
double  value
) 
 

Set tangent weight of specified point

void CIvfSpline3d::setTension (  int  idx,
double  value
) 
 

Set tangen tension of specified point

void CIvfSpline3d::update (   ) 
 

Updates the spline if any points are changed


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:58 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO