Kanzi 3.9.10
kanzi::KeyframeAnimation< TValueType >::StepKeyframe Class Reference

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>

Inheritance diagram for kanzi::KeyframeAnimation< TValueType >::StepKeyframe:
[legend]

Public Member Functions

TValueType getValue (const TValueType &currentValue, float normalizedTime) override
 Returns the value for the animated property at a given time.
 
 StepKeyframe ()
 Constructor.
 
 StepKeyframe (TValueType value)
 Constructor.
 
- Public Member Functions inherited from kanzi::KeyframeAnimation< TValueType >::Keyframe
TValueType getKeyValue () const
 Returns the keyframe value of the animated property.
 
 Keyframe ()
 Constructor.
 
 Keyframe (TValueType value)
 Constructor.
 
void setKeyValue (const TValueType &keyValue)
 Sets the keyframe value for a keyframe.
 
virtual ~Keyframe ()
 

Static Public Member Functions

static StepKeyframePtr create (float value)
 Creates a step keyframe.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ StepKeyframe() [1/2]

template<typename TValueType >
kanzi::KeyframeAnimation< TValueType >::StepKeyframe::StepKeyframe ( )
inlineexplicit

Constructor.

◆ StepKeyframe() [2/2]

template<typename TValueType >
kanzi::KeyframeAnimation< TValueType >::StepKeyframe::StepKeyframe ( TValueType value)
inlineexplicit

Constructor.

Parameters
valueThe keyframe value of the animated property.

Member Function Documentation

◆ create()

template<typename TValueType >
static StepKeyframePtr kanzi::KeyframeAnimation< TValueType >::StepKeyframe::create ( float value)
inlinestatic

Creates a step keyframe.

Parameters
valueThe 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
currentValueThe current value of the animated property.
normalizedTimeThe 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: