A template class to create a Cubic Hermite spline interpolation (aka as Cardinal Spline / Catmull-Rom spline) object.
More...
template<class DataType>
class Murl::Math::SplineHermite< DataType >
A template class to create a Cubic Hermite spline interpolation (aka as Cardinal Spline / Catmull-Rom spline) object.
|
| SplineHermite () |
| The default constructor (Catmull-Rom spline interpolation).
|
|
| SplineHermite (WrapMode wrapMode, CurveType curveType, Real Tk=0.5) |
| Constructor taking the wrap mode, the curve type and the Tk value. More...
|
|
| ~SplineHermite () override |
| The destructor.
|
|
Array< ControlPoint > & | GetControlPoints () |
| Get the control points for each key. More...
|
|
Bool | CalculateControlPoint (SInt32 index) |
| Calculate the control point for a specified index. More...
|
|
| SplineBase () |
| The default constructor. More...
|
|
| SplineBase (WrapMode wrapMode, CurveType curveType) |
| Constructor taking the wrap mode and the curve type. More...
|
|
virtual | ~SplineBase () |
| The destructor.
|
|
void | SetCurveType (CurveType curveType) |
| Set the current curve type. More...
|
|
CurveType | GetCurveType () const |
| Get the current curve type. More...
|
|
void | SetWrapMode (WrapMode wrapMode) |
| Set the current wrap mode. More...
|
|
WrapMode | GetWrapMode () const |
| Get the current wrap mode. More...
|
|
SInt32 | AddKey (const Key &key) |
| Add a new interpolation key. More...
|
|
SInt32 | AddKey (Real time, const DataType &value) |
| Add a new interpolation key. More...
|
|
Bool | RemoveKey (SInt32 index) |
| Remove a key at a specified index. More...
|
|
Bool | SetKeyValue (SInt32 index, const DataType &value) |
| Set a key's value for a specified index. More...
|
|
SInt32 | SetKey (SInt32 index, const Key &key) |
| Set a key for a specified index. More...
|
|
SInt32 | SetKey (SInt32 index, Real time, const DataType &value) |
| Set a key for a specified index. More...
|
|
void | CopyKeys (const SplineBase< DataType > &source) |
| Copy the keys from a spline object. More...
|
|
SInt32 | GetKeyIndex (Real time) const |
| Get the nearest key index for a specified time. More...
|
|
SInt32 | GetNumberOfKeys () const |
| Get the number of keys. More...
|
|
const Key & | GetKey (SInt32 index) const |
| Get a key for a specified index. More...
|
|
void | EmptyKeys () |
| Empty the keys, but keep the underlying storage.
|
|
void | ClearKeys () |
| Clear the keys and remove the underlying storage.
|
|
virtual const DataType & | Interpolate (Double time) |
| Get the interpolated value at a specific time. More...
|
|
Bool | UpdateControlPoints () |
| Update the control points immediately. More...
|
|
void | SetControlPointsValid (Bool areValid) |
| Set the control points valid state. More...
|
|