Rasterfarm-SDK
Loading...
Searching...
No Matches
Sequence::Translation< INTERPOLATION, CLASS > Class Template Reference

#include <translation.h>

Inheritance diagram for Sequence::Translation< INTERPOLATION, CLASS >:
Sequence::Animation< INTERPOLATION > Sequence::AnimationBase INTERPOLATION Schedule::Frame

Public Member Functions

template<typename T , uint LENGTH>
 Translation (CLASS *pClass, const Vector< T, LENGTH > &vec, const AnimationBase::Attribute &attribute)
 
 Translation (CLASS *pClass, float x, float y, float z, const AnimationBase::Attribute &attribute)
 
- Public Member Functions inherited from Sequence::Animation< INTERPOLATION >
 Animation (const Attribute &attribute, bool easeDirection=false)
 
virtual ~Animation ()
 
void computeSteps ()
 
- Public Member Functions inherited from Sequence::AnimationBase
 AnimationBase (const Attribute &attribute)
 
virtual ~AnimationBase ()
 
const AttributegetAttribute ()
 
virtual void reset ()
 
void expire ()
 
void printSteps ()
 
bool done ()
 
- Public Member Functions inherited from Schedule::Frame
 Frame ()
 

Protected Member Functions

virtual void vNext ()
 
- Protected Member Functions inherited from Sequence::AnimationBase
void reverseSteps ()
 
- Protected Member Functions inherited from Schedule::Frame
virtual ~Frame ()
 

Protected Attributes

CLASS * pClass
 
Vector4f vec
 
- Protected Attributes inherited from Sequence::Animation< INTERPOLATION >
bool easeDirection
 
- Protected Attributes inherited from Sequence::AnimationBase
Attribute attribute
 
HeapArray< double > step
 
uint frame
 

Additional Inherited Members

- Public Types inherited from Sequence::AnimationBase
enum  LoopType {
  LOOP_NONE ,
  LOOP_REPEAT ,
  LOOP_REVERSE_STEP_REPEAT ,
  LOOP_REVERSE_INTERPOLATION_REPEAT ,
  LOOP_REVERSE_INTERPOLATION_REVERSE_STEP_REPEAT
}
 

Detailed Description

template<class INTERPOLATION, class CLASS>
class Sequence::Translation< INTERPOLATION, CLASS >

Supports both Matrix and Vector classes.

Constructor & Destructor Documentation

◆ Translation() [1/2]

template<class INTERPOLATION , class CLASS >
template<typename T , uint LENGTH>
Sequence::Translation< INTERPOLATION, CLASS >::Translation ( CLASS * pClass,
const Vector< T, LENGTH > & vec,
const AnimationBase::Attribute & attribute )
inline

◆ Translation() [2/2]

template<class INTERPOLATION , class CLASS >
Sequence::Translation< INTERPOLATION, CLASS >::Translation ( CLASS * pClass,
float x,
float y,
float z,
const AnimationBase::Attribute & attribute )

Member Function Documentation

◆ vNext()

template<class INTERPOLATION , class CLASS >
void Sequence::Translation< INTERPOLATION, CLASS >::vNext ( )
protectedvirtual

Apply the animation for the given frame.

Returns
void.

Implements Sequence::AnimationBase.

Member Data Documentation

◆ pClass

template<class INTERPOLATION , class CLASS >
CLASS* Sequence::Translation< INTERPOLATION, CLASS >::pClass
protected

The CLASS to apply the animation.

◆ vec

template<class INTERPOLATION , class CLASS >
Vector4f Sequence::Translation< INTERPOLATION, CLASS >::vec
protected

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