Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::KeyframeAnimation< TValueType >::Keyframe Class Referenceabstract

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>

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

Public Member Functions

TValueType getKeyValue () const
 Returns the keyframe value of the animated property. More...
 
virtual TValueType getValue (const TValueType &currentValue, float normalizedTime)=0
 Returns the value for the animated property at a given time. More...
 
 Keyframe ()
 Constructor. More...
 
 Keyframe (TValueType value)
 Constructor. More...
 
void setKeyValue (const TValueType &keyValue)
 Sets the keyframe value for a keyframe. More...
 
virtual ~Keyframe ()
 

Detailed Description

template<typename TValueType>
class kanzi::KeyframeAnimation< TValueType >::Keyframe

Keyframe defines a value for the animated property at a specific time in an animation timeline.

Constructor & Destructor Documentation

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

Constructor.

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

Constructor.

Parameters
valueThe keyframe value of the animated property.
template<typename TValueType >
virtual kanzi::KeyframeAnimation< TValueType >::Keyframe::~Keyframe ( )
inlinevirtual

Member Function Documentation

template<typename TValueType >
TValueType kanzi::KeyframeAnimation< TValueType >::Keyframe::getKeyValue ( ) const
inline

Returns the keyframe value of the animated property.

Returns
The keyframe value of the animated property.
template<typename TValueType >
void kanzi::KeyframeAnimation< TValueType >::Keyframe::setKeyValue ( const TValueType &  keyValue)
inline

Sets the keyframe value for a keyframe.

Parameters
keyValueThe keyframe value of the animated property.
template<typename TValueType >
virtual TValueType kanzi::KeyframeAnimation< TValueType >::Keyframe::getValue ( const TValueType &  currentValue,
float  normalizedTime 
)
pure virtual

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.

Implemented in kanzi::KeyframeAnimation< TValueType >::BezierKeyframe, kanzi::KeyframeAnimation< TValueType >::LinearKeyframe, and kanzi::KeyframeAnimation< TValueType >::StepKeyframe.


The documentation for this class was generated from the following file: