Keyframe defines a value for the animated property at a specific time in an animation timeline. More...
#include <kanzi/core.ui/animation/keyframe_animation.hpp>
Public Member Functions | |
TValueType | getKeyValue () const |
Returns the keyframe value of the animated property. | |
virtual TValueType | getValue (const TValueType ¤tValue, float normalizedTime)=0 |
Returns the value for the animated property at a given time. | |
Keyframe () | |
Constructor. | |
Keyframe (TValueType value) | |
Constructor. | |
void | setKeyValue (const TValueType &keyValue) |
Sets the keyframe value for a keyframe. | |
virtual | ~Keyframe () |
Keyframe defines a value for the animated property at a specific time in an animation timeline.
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Constructor.
value | The keyframe value of the animated property. |
|
inlinevirtual |
|
inline |
Returns the keyframe value of the animated property.
|
inline |
Sets the keyframe value for a keyframe.
keyValue | The keyframe value of the animated property. |
|
pure virtual |
Returns the value for the animated property at a given time.
currentValue | The current value of the animated property. |
normalizedTime | The time at which you want to get the value of the animated property. 0.0 corresponds to the time of the previous keyframe. 1.0 corresponds to the time of this keyframe. |
Implemented in kanzi::KeyframeAnimation< TValueType >::StepKeyframe, kanzi::KeyframeAnimation< TValueType >::LinearKeyframe, and kanzi::KeyframeAnimation< TValueType >::BezierKeyframe.