Eidolon
Public Member Functions | Protected Attributes | List of all members
ControlCurve< T > Class Template Reference

#include <RenderTypes.h>

Collaboration diagram for ControlCurve< T >:
Collaboration graph

Public Member Functions

 ControlCurve ()
 
virtual ~ControlCurve ()
 
void copyFrom (const ControlCurve< T > *con)
 
void clear ()
 
virtual void addCtrlPoint (const T &t)
 
virtual void setCtrlPoint (const T &t, indexval index) throw (IndexException)
 
virtual void removeCtrlPoint (indexval index) throw (IndexException)
 
virtual sval numPoints () const
 
virtual T getCtrlPoint (indexval index) const throw (IndexException)
 
virtual void setCtrlPoints (const Matrix< T > *pts)
 
virtual void calculateDerivs ()
 
virtual T at (real tt) const
 

Protected Attributes

Matrix< T > ctrls
 
Matrix< T > derivs
 

Detailed Description

template<typename T>
class RenderTypes::ControlCurve< T >

Defines a curve which passes through all of the control points given. This works by break the curve into piecewise cubic bezier splines and calculating derivatives that maintain a smooth slope between segments. (http://www.codeproject.com/Articles/36375/Cubic-Bezier-Spline-Curves-and-Image-Curve-Adjustm)

Constructor & Destructor Documentation

◆ ControlCurve()

ControlCurve ( )
inline

◆ ~ControlCurve()

virtual ~ControlCurve ( )
inlinevirtual

Member Function Documentation

◆ addCtrlPoint()

virtual void addCtrlPoint ( const T &  t)
inlinevirtual

Reimplemented in Vec3Curve.

Here is the caller graph for this function:

◆ at()

virtual T at ( real  tt) const
inlinevirtual

◆ calculateDerivs()

virtual void calculateDerivs ( )
inlinevirtual

Reimplemented in Vec3Curve.

Here is the caller graph for this function:

◆ clear()

void clear ( )
inline
Here is the caller graph for this function:

◆ copyFrom()

void copyFrom ( const ControlCurve< T > *  con)
inline
Here is the caller graph for this function:

◆ getCtrlPoint()

virtual T getCtrlPoint ( indexval  index) const
throw (IndexException
)
inlinevirtual
Here is the caller graph for this function:

◆ numPoints()

virtual sval numPoints ( ) const
inlinevirtual
Here is the caller graph for this function:

◆ removeCtrlPoint()

virtual void removeCtrlPoint ( indexval  index)
throw (IndexException
)
inlinevirtual
Here is the caller graph for this function:

◆ setCtrlPoint()

virtual void setCtrlPoint ( const T &  t,
indexval  index 
)
throw (IndexException
)
inlinevirtual

Reimplemented in Vec3Curve.

◆ setCtrlPoints()

virtual void setCtrlPoints ( const Matrix< T > *  pts)
inlinevirtual
Here is the caller graph for this function:

Member Data Documentation

◆ ctrls

Matrix<T> ctrls
protected

◆ derivs

Matrix<T> derivs
protected

The documentation for this class was generated from the following file: