Use linear keyframes to interpolate animated property value linearly between keyframes.
More...
#include <kanzi/core.ui/animation/keyframe_animation.hpp>
template<typename TValueType>
class kanzi::KeyframeAnimation< TValueType >::LinearKeyframe
Use linear keyframes to interpolate animated property value linearly between keyframes.
◆ LinearKeyframe() [1/2]
template<typename TValueType >
◆ LinearKeyframe() [2/2]
template<typename TValueType >
◆ create()
template<typename TValueType >
Creates linear keyframe.
- Parameters
-
value | The keyframe value of the animated property. |
◆ getValue()
template<typename TValueType >
TValueType kanzi::KeyframeAnimation< TValueType >::LinearKeyframe::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: