This class represents an animation curve that stores key frames. More...
#include <MultiWidgets/AnimationCurve.hpp>
Public Member Functions | |
| void | addKey (float time, const T &value, InterpolationType interpolation=USE_PREV_KEYFRAME_TYPE) |
| Add a key frame to the curve. More... | |
| template<> | |
| void | addKey (float time, const bool &value, InterpolationType interpolation) |
| AnimationCurve () | |
| Construct an empty curve. | |
| AnimationCurve (const AnimationCurve &rhs) | |
| Construct a copy of a curve. More... | |
| IAnimationCurve * | clone () const |
| Return a copy of the curve. More... | |
| bool | deserialize (const Valuable::ArchiveElement &element) |
| virtual void | evaluate (float t, Valuable::Attribute *attribute) const |
| Evaluate the curve at given position. More... | |
| T | evaluate (float t) const |
| Evaluate the curve at given point. More... | |
| template<> | |
| bool | evaluate (float t) const |
| const KeyFrame< T > & | key (int i) const |
| Get a key from the curve. More... | |
| int | keyCount () const |
| Get the number of key frames in the curve. More... | |
| virtual float | length () const |
| Returns the length of the animation in seconds. More... | |
| void | removeKey (int index) |
| Remove a key from the curve. More... | |
| void | selectInterpolationType (typename Keyframes::iterator k1) |
| Sets the interpolation type of the given key frame automatically. More... | |
| Valuable::ArchiveElement | serialize (Valuable::Archive &archive) const |
Public Member Functions inherited from MultiWidgets::IAnimationCurve | |
| IAnimationCurve () | |
| Constructor. | |
| virtual | ~IAnimationCurve () |
| Destructor. | |
This class represents an animation curve that stores key frames.
|
inline |
Construct a copy of a curve.
| rhs | curve to copy |
|
inline |
Add a key frame to the curve.
| time | time-value of the key frame |
| value | value of the the key frame at given point |
| interpolation | interpolation used between this key frame and the next |
|
inlinevirtual |
|
inlinevirtual |
Evaluate the curve at given position.
| t | evaluation point on the curve |
| attribute | attribute to store the result into |
Implements MultiWidgets::IAnimationCurve.
|
inline |
Evaluate the curve at given point.
| t | point to evaluate the curve at |
|
inline |
Get a key from the curve.
| i | index of the key to get |
|
inline |
Get the number of key frames in the curve.
|
inlinevirtual |
Returns the length of the animation in seconds.
Implements MultiWidgets::IAnimationCurve.
|
inline |
Remove a key from the curve.
| index | index of the key to remove |
|
inline |
Sets the interpolation type of the given key frame automatically.
| k1 | Iterator to key-frame-sequence |