Sleeping Wombat GUI
0.100
swGUI
|
Base class for interpolators. More...
#include <IInterpolator.h>
Public Member Functions | |
IInterpolator ()=default | |
virtual | ~IInterpolator ()=default |
virtual KeyType | Interpolate (TimeType time, Key< KeyType > &left, Key< KeyType > &right)=0 |
Main function invoked by evaluator. More... | |
virtual void | Update (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)=0 |
Function updates interpolator, when left or right key value changes. More... | |
virtual KeyType | LeftTangent (const Key< KeyType > &left, const Key< KeyType > &right) const =0 |
Returns curve tangent. Function can be used by surrounding interpolators to smooth curve. More... | |
virtual KeyType | RightTangent (const Key< KeyType > &left, const Key< KeyType > &right) const =0 |
Returns curve tangent. Function can be used by surrounding interpolators to smooth curve. More... | |
Base class for interpolators.
|
explicitdefault |
|
virtualdefault |
|
pure virtual |
Main function invoked by evaluator.
Implemented in DummyInterpolator< KeyType >, LinearInterpolator< KeyType >, CosinusInterpolator< KeyType >, and DiscreteInterpolator< KeyType >.
|
pure virtual |
Returns curve tangent. Function can be used by surrounding interpolators to smooth curve.
Implemented in DummyInterpolator< KeyType >, LinearInterpolator< KeyType >, CosinusInterpolator< KeyType >, and DiscreteInterpolator< KeyType >.
|
pure virtual |
Returns curve tangent. Function can be used by surrounding interpolators to smooth curve.
Implemented in DummyInterpolator< KeyType >, LinearInterpolator< KeyType >, CosinusInterpolator< KeyType >, and DiscreteInterpolator< KeyType >.
|
pure virtual |
Function updates interpolator, when left or right key value changes.
Implemented in DummyInterpolator< KeyType >, LinearInterpolator< KeyType >, CosinusInterpolator< KeyType >, and DiscreteInterpolator< KeyType >.