Sleeping Wombat GUI
0.100
swGUI
|
Evaluates animation. More...
#include <AnimEvaluator.h>
Public Types | |
typedef IInterpolator< KeyType > | Interpolator |
Public Member Functions | |
AnimEvaluator ()=default | |
Constructor for serialization only. More... | |
AnimEvaluator (EngineObject *object, const std::string &propertyPath) | |
~AnimEvaluator ()=default | |
void | Evaluate (EngineObject *object, TimeType time) |
bool | AddKey (TimeType time, const KeyType &value) |
Adds key and sets default interpolator. More... | |
bool | AddKey (TimeType time, const KeyType &value, InterpolatorType interpolatorType) |
Adds key and sets given interpolator. More... | |
bool | UpdateKey (TimeType time, const KeyType &newValue, UPtr< Interpolator > &&interpolator) |
Udates key given by time. Sets new interpolator. More... | |
bool | UpdateKey (TimeType time, const KeyType &newValue) |
Updates key. Leaves interpolator unchanged. More... | |
bool | RemoveKey (TimeType time) |
Removes key in given time. More... | |
bool | ChangeInterpolator (Size idx, UPtr< Interpolator > &&interpolator) |
Updates interpolator. Key remains unchanged. More... | |
const Key< KeyType > * | GetKey (TimeType time) |
Return key in given time. More... | |
virtual KeySet< KeyType > & | GetKeySet () |
Returns KeySet. More... | |
Private Attributes | |
KeySet< KeyType > | m_keySet |
AddressType | m_param |
Evaluates animation.
Uses m_keySet to interpolate animation value and sets it to m_param.
Template parameter AddressType is class which is used to set parameter value. You can provide your own classes or apply build in objects. This library implements parameters using rttr library.
typedef IInterpolator< KeyType > AnimEvaluator< KeyType, AddressType >::Interpolator |
|
explicitdefault |
Constructor for serialization only.
|
inlineexplicit |
|
default |
|
inline |
Adds key and sets default interpolator.
|
inline |
Adds key and sets given interpolator.
|
inline |
Updates interpolator. Key remains unchanged.
|
inline |
|
inline |
Return key in given time.
|
inlinevirtual |
Returns KeySet.
|
inline |
Removes key in given time.
|
inline |
Udates key given by time. Sets new interpolator.
|
inline |
Updates key. Leaves interpolator unchanged.
|
private |
|
private |