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

#include <rotation.h>

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

Public Member Functions

 Rotation (CLASS *pClass, uint frameSize)
 
 Rotation (CLASS *pClass, float angle, const Vector3f &axis, 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
 
float angle
 
Vector3f axis
 
- 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::Rotation< INTERPOLATION, CLASS >

Supports both Matrix and Vector classes.

Constructor & Destructor Documentation

◆ Rotation() [1/2]

template<class INTERPOLATION , class CLASS >
Sequence::Rotation< INTERPOLATION, CLASS >::Rotation ( CLASS * pClass,
uint frameSize )

◆ Rotation() [2/2]

template<class INTERPOLATION , class CLASS >
Sequence::Rotation< INTERPOLATION, CLASS >::Rotation ( CLASS * pClass,
float angle,
const Vector3f & axis,
const AnimationBase::Attribute & attribute )

Member Function Documentation

◆ vNext()

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

Apply the animation for the given frame.

Returns
void.

Implements Sequence::AnimationBase.

Member Data Documentation

◆ angle

template<class INTERPOLATION , class CLASS >
float Sequence::Rotation< INTERPOLATION, CLASS >::angle
protected

Euclidean angle. This can represent a spatial, temporal delta for any parameter.

◆ axis

template<class INTERPOLATION , class CLASS >
Vector3f Sequence::Rotation< INTERPOLATION, CLASS >::axis
protected

The vector axis to rotate about.

◆ pClass

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

The CLASS to apply the animation.


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