Sleeping Wombat GUI
0.100
swGUI
|
Set of animation keys and interpolators. More...
#include <KeySet.h>
Public Types | |
typedef IInterpolator< KeyType > | Interpolator |
Public Member Functions | |
KeySet () | |
Constructor insert default KeyType in time 0.0;. More... | |
Key< KeyType > * | GetKey (TimeType time) |
bool | AddKey (TimeType time, const KeyType &value) |
Adds key. If key exists updates this key. More... | |
bool | AddKey (TimeType time, const KeyType &value, InterpolatorType type) |
Adds key. If key exists updates this key. More... | |
bool | UpdateKey (TimeType time, const KeyType &value) |
Updates key. More... | |
bool | RemoveKey (TimeType time) |
Removes key. Last key can't be removed. More... | |
KeyType | Evaluate (TimeType time) |
bool | ChangeInterpolator (Size idx, UPtr< Interpolator > &&interpolator) |
Public Attributes | |
std::vector< Key< KeyType > > | Keys |
std::vector< UPtr< Interpolator > > | Interpolators |
Private Member Functions | |
std::vector< Key< KeyType > >::iterator | FindKey (TimeType time) |
std::vector< Key< KeyType > >::iterator | FindPlace (TimeType time) |
void | AddDefaultInterpolator (Size keyIndex) |
Adds default interpolator for given type. Adds interpolator defined by function DefaultInterpolators::Create< KeyType> for key added under given index. More... | |
void | UpdateInterpolator (Size index) |
Updates interpolator under index. If interpolator doesn't exists, nothing bad happens. More... | |
Set of animation keys and interpolators.
typedef IInterpolator< KeyType > KeySet< KeyType >::Interpolator |
Constructor insert default KeyType in time 0.0;.
|
inlineprivate |
Adds default interpolator for given type. Adds interpolator defined by function DefaultInterpolators::Create< KeyType> for key added under given index.
[in] | keyIndex | Index of added key. |
|
inline |
Adds key. If key exists updates this key.
|
inline |
Adds key. If key exists updates this key.
[in] | type | Adds one of built in interpolators. |
|
inline |
|
inlineprivate |
|
inlineprivate |
Removes key. Last key can't be removed.
Updates interpolator under index. If interpolator doesn't exists, nothing bad happens.
|
inline |
Updates key.
std::vector< UPtr< Interpolator > > KeySet< KeyType >::Interpolators |