Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Core::Animation::KeyFramedValueBase Class Referenceabstract

#include <Core/Animation/KeyFramedValue.hpp>

+ Inheritance diagram for Ra::Core::Animation::KeyFramedValueBase:
+ Collaboration diagram for Ra::Core::Animation::KeyFramedValueBase:

Public Member Functions

virtual size_t size () const =0
 
virtual bool removeKeyFrame (size_t i)=0
 
virtual void moveKeyFrame (size_t i, const Scalar &t)=0
 
virtual std::vector< Scalar > getTimes () const =0
 

Detailed Description

KeyFramedValueBase defines the following concept: any variable (e.g. transformation matrix, color, scalar value, flag) that needs to be animated can be controlled by a KeyFramedValue, which inherits KeyFramedValueBase (see dedicated documentation).

Definition at line 20 of file KeyFramedValue.hpp.

Constructor & Destructor Documentation

◆ KeyFramedValueBase()

Ra::Core::Animation::KeyFramedValueBase::KeyFramedValueBase ( )
inline

Definition at line 23 of file KeyFramedValue.hpp.

◆ ~KeyFramedValueBase()

virtual Ra::Core::Animation::KeyFramedValueBase::~KeyFramedValueBase ( )
inlinevirtual

Definition at line 25 of file KeyFramedValue.hpp.

Member Function Documentation

◆ getTimes()

virtual std::vector< Scalar > Ra::Core::Animation::KeyFramedValueBase::getTimes ( ) const
inlinepure virtual
Returns
the ordered list of the points in time where a keyframe is defined.

Implemented in Ra::Core::Animation::KeyFramedValue< VALUE_TYPE >, and Ra::Core::Animation::KeyFramedValue< Transform >.

◆ moveKeyFrame()

virtual void Ra::Core::Animation::KeyFramedValueBase::moveKeyFrame ( size_t i,
const Scalar & t )
inlinepure virtual

◆ removeKeyFrame()

virtual bool Ra::Core::Animation::KeyFramedValueBase::removeKeyFrame ( size_t i)
inlinepure virtual

Removes the i-th keyframe, if not the only one.

Returns
true if the keyframed has been removed, false otherwise.

Implemented in Ra::Core::Animation::KeyFramedValue< VALUE_TYPE >, and Ra::Core::Animation::KeyFramedValue< Transform >.

◆ size()

virtual size_t Ra::Core::Animation::KeyFramedValueBase::size ( ) const
inlinepure virtual

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