Use Step keyframes to keep the value of the current keyframe constant up until the following keyframe.
More...
#include <kanzi/core.ui/animation/keyframe_animation.hpp>
template<typename TValueType>
class kanzi::KeyframeAnimation< TValueType >::StepKeyframe
Use Step keyframes to keep the value of the current keyframe constant up until the following keyframe.
◆ StepKeyframe() [1/2]
template<typename TValueType >
◆ StepKeyframe() [2/2]
template<typename TValueType >
Constructor.
- Parameters
-
value | The keyframe value of the animated property. |
◆ create()
template<typename TValueType >
Creates a step keyframe.
- Parameters
-
value | The keyframe value of the animated property. |
◆ getValue()
template<typename TValueType >
TValueType kanzi::KeyframeAnimation< TValueType >::StepKeyframe::getValue |
( |
const TValueType & |
currentValue, |
|
|
float |
normalizedTime |
|
) |
| |
|
inlineoverridevirtual |
Returns the value for the animated property at a given time.
- Parameters
-
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. |
- Returns
- The value of the animated property at a given time.
Implements kanzi::KeyframeAnimation< TValueType >::Keyframe.
The documentation for this class was generated from the following file: