kanzi::KeyframeAnimation< TValueType >::BezierKeyframe Class Reference

#include <kanzi/core.ui/animation/keyframe_animation.hpp>

Inheritance diagram for kanzi::KeyframeAnimation< TValueType >::BezierKeyframe:
kanzi::KeyframeAnimation< TValueType >::Keyframe

Public Member Functions

 BezierKeyframe ()
 Constructor. More...
 
 BezierKeyframe (TValueType value, const Vector2 &p0, const Vector2 &p1)
 Constructor. More...
 
void setControlPoints (const Vector2 &p0, const Vector2 &p1)
 
Vector2 getControlPoint0 () const
 
void setControlPoint0 (Vector2 controlPoint)
 
Vector2 getControlPoint1 () const
 
void setControlPoint1 (Vector2 controlPoint)
 
virtual TValueType getValue (const TValueType &currentValue, float normalizedTime) KZ_OVERRIDE
 
- Public Member Functions inherited from kanzi::KeyframeAnimation< TValueType >::Keyframe
 Keyframe ()
 Constructor. More...
 
 Keyframe (TValueType value)
 Constructor. More...
 
virtual ~Keyframe ()
 
TValueType getKeyValue () const
 
void setKeyValue (const TValueType &keyValue)
 

Static Public Member Functions

static BezierKeyframePtr create (TValueType value, const Vector2 &p0, const Vector2 &p1)
 Creates bezier keyframe. More...
 

Constructor & Destructor Documentation

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

Constructor.

template<typename TValueType >
kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::BezierKeyframe ( TValueType  value,
const Vector2 p0,
const Vector2 p1 
)
inlineexplicit

Constructor.

Member Function Documentation

template<typename TValueType >
static BezierKeyframePtr kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::create ( TValueType  value,
const Vector2 p0,
const Vector2 p1 
)
inlinestatic

Creates bezier keyframe.

template<typename TValueType >
void kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::setControlPoints ( const Vector2 p0,
const Vector2 p1 
)
inline
template<typename TValueType >
Vector2 kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::getControlPoint0 ( ) const
inline
template<typename TValueType >
void kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::setControlPoint0 ( Vector2  controlPoint)
inline
template<typename TValueType >
Vector2 kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::getControlPoint1 ( ) const
inline
template<typename TValueType >
void kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::setControlPoint1 ( Vector2  controlPoint)
inline
template<typename TValueType >
virtual TValueType kanzi::KeyframeAnimation< TValueType >::BezierKeyframe::getValue ( const TValueType &  currentValue,
float  normalizedTime 
)
inlinevirtual

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