All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::IAnimationCurve Class Referenceabstract

Interface for animation curves of different types. More...

#include <MultiWidgets/AnimationCurve.hpp>

Inheritance diagram for MultiWidgets::IAnimationCurve:
MultiWidgets::AnimationCurve< T >

Public Member Functions

virtual IAnimationCurveclone () const =0
 Create a copy of the curve. More...
 
virtual void evaluate (float t, Valuable::Attribute *attribute) const =0
 Evaluate the curve at given position. More...
 
 IAnimationCurve ()
 Constructor.
 
virtual float length () const =0
 Get the length of the curve in seconds. More...
 
virtual ~IAnimationCurve ()
 Destructor.
 

Detailed Description

Interface for animation curves of different types.

Member Function Documentation

virtual IAnimationCurve* MultiWidgets::IAnimationCurve::clone ( ) const
pure virtual

Create a copy of the curve.

Returns
deep copy of the curve

Implemented in MultiWidgets::AnimationCurve< T >.

virtual void MultiWidgets::IAnimationCurve::evaluate ( float  t,
Valuable::Attribute attribute 
) const
pure virtual

Evaluate the curve at given position.

Parameters
tevaluation point on the curve
attributeattribute to store the result into

Implemented in MultiWidgets::AnimationCurve< T >.

virtual float MultiWidgets::IAnimationCurve::length ( ) const
pure virtual

Get the length of the curve in seconds.

Returns
the value of t of the last key frame

Implemented in MultiWidgets::AnimationCurve< T >.