Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
gte::KeyframeController Class Reference

#include <GteKeyframeController.h>

Inheritance diagram for gte::KeyframeController:
Inheritance graph
[legend]

Public Member Functions

float * GetCommonTimes ()
 
int GetNumCommonTimes () const
 
int GetNumRotations () const
 
int GetNumScales () const
 
int GetNumTranslations () const
 
Quaternion< float > * GetRotations ()
 
float * GetRotationTimes ()
 
float * GetScales ()
 
float * GetScaleTimes ()
 
Vector4< float > * GetTranslations ()
 
float * GetTranslationTimes ()
 
 KeyframeController (int numCommonTimes, int numTranslations, int numRotations, int numScales, Transform const &localTransform)
 
virtual bool Update (double applicationTime)
 
virtual ~KeyframeController ()
 
- Public Member Functions inherited from gte::TransformController
Transform const & GetTransform () const
 
void SetTransform (Transform const &localTransform)
 
 TransformController (Transform const &localTransform)
 
- Public Member Functions inherited from gte::Controller
double GetApplicationTime () const
 
ControlledObjectGetObject () const
 
void SetApplicationTime (double applicationTime)
 
virtual void SetObject (ControlledObject *object)
 
virtual ~Controller ()
 

Protected Member Functions

Matrix4x4< float > GetRotate (float normTime, int i0, int i1)
 
float GetScale (float normTime, int i0, int i1)
 
Vector4< float > GetTranslate (float normTime, int i0, int i1)
 
- Protected Member Functions inherited from gte::Controller
 Controller ()
 
double GetControlTime (double applicationTime)
 

Static Protected Member Functions

static void GetKeyInfo (float ctrlTime, int numTimes, float *times, int &lastIndex, float &normTime, int &i0, int &i1)
 

Protected Attributes

int mCLastIndex
 
std::vector< float > mCommonTimes
 
int mNumCommonTimes
 
int mNumRotations
 
int mNumScales
 
int mNumTranslations
 
int mRLastIndex
 
std::vector< Quaternion< float > > mRotations
 
std::vector< float > mRotationTimes
 
std::vector< float > mScales
 
std::vector< float > mScaleTimes
 
int mSLastIndex
 
int mTLastIndex
 
std::vector< Vector4< float > > mTranslations
 
std::vector< float > mTranslationTimes
 
- Protected Attributes inherited from gte::TransformController
Transform mLocalTransform
 
- Protected Attributes inherited from gte::Controller
double mApplicationTime
 
ControlledObjectmObject
 

Additional Inherited Members

- Public Attributes inherited from gte::Controller
bool active
 
double frequency
 
double maxTime
 
double minTime
 
std::string name
 
double phase
 
RepeatType repeat
 

Detailed Description

Definition at line 16 of file GteKeyframeController.h.

Constructor & Destructor Documentation

KeyframeController::~KeyframeController ( )
virtual

Definition at line 14 of file GteKeyframeController.cpp.

KeyframeController::KeyframeController ( int  numCommonTimes,
int  numTranslations,
int  numRotations,
int  numScales,
Transform const &  localTransform 
)

Definition at line 18 of file GteKeyframeController.cpp.

Member Function Documentation

float * gte::KeyframeController::GetCommonTimes ( )
inline

Definition at line 94 of file GteKeyframeController.h.

void KeyframeController::GetKeyInfo ( float  ctrlTime,
int  numTimes,
float *  times,
int lastIndex,
float &  normTime,
int i0,
int i1 
)
staticprotected

Definition at line 153 of file GteKeyframeController.cpp.

int gte::KeyframeController::GetNumCommonTimes ( ) const
inline

Definition at line 89 of file GteKeyframeController.h.

int gte::KeyframeController::GetNumRotations ( ) const
inline

Definition at line 114 of file GteKeyframeController.h.

int gte::KeyframeController::GetNumScales ( ) const
inline

Definition at line 129 of file GteKeyframeController.h.

int gte::KeyframeController::GetNumTranslations ( ) const
inline

Definition at line 99 of file GteKeyframeController.h.

Matrix4x4< float > KeyframeController::GetRotate ( float  normTime,
int  i0,
int  i1 
)
protected

Definition at line 215 of file GteKeyframeController.cpp.

Quaternion< float > * gte::KeyframeController::GetRotations ( )
inline

Definition at line 124 of file GteKeyframeController.h.

float * gte::KeyframeController::GetRotationTimes ( )
inline

Definition at line 119 of file GteKeyframeController.h.

float KeyframeController::GetScale ( float  normTime,
int  i0,
int  i1 
)
protected

Definition at line 222 of file GteKeyframeController.cpp.

float * gte::KeyframeController::GetScales ( )
inline

Definition at line 139 of file GteKeyframeController.h.

float * gte::KeyframeController::GetScaleTimes ( )
inline

Definition at line 134 of file GteKeyframeController.h.

Vector4< float > KeyframeController::GetTranslate ( float  normTime,
int  i0,
int  i1 
)
protected

Definition at line 209 of file GteKeyframeController.cpp.

Vector4< float > * gte::KeyframeController::GetTranslations ( )
inline

Definition at line 109 of file GteKeyframeController.h.

float * gte::KeyframeController::GetTranslationTimes ( )
inline

Definition at line 104 of file GteKeyframeController.h.

bool KeyframeController::Update ( double  applicationTime)
virtual

Reimplemented from gte::TransformController.

Definition at line 82 of file GteKeyframeController.cpp.

Member Data Documentation

int gte::KeyframeController::mCLastIndex
protected

Definition at line 85 of file GteKeyframeController.h.

std::vector<float> gte::KeyframeController::mCommonTimes
protected

Definition at line 69 of file GteKeyframeController.h.

int gte::KeyframeController::mNumCommonTimes
protected

Definition at line 68 of file GteKeyframeController.h.

int gte::KeyframeController::mNumRotations
protected

Definition at line 75 of file GteKeyframeController.h.

int gte::KeyframeController::mNumScales
protected

Definition at line 79 of file GteKeyframeController.h.

int gte::KeyframeController::mNumTranslations
protected

Definition at line 71 of file GteKeyframeController.h.

int gte::KeyframeController::mRLastIndex
protected

Definition at line 85 of file GteKeyframeController.h.

std::vector<Quaternion<float> > gte::KeyframeController::mRotations
protected

Definition at line 77 of file GteKeyframeController.h.

std::vector<float> gte::KeyframeController::mRotationTimes
protected

Definition at line 76 of file GteKeyframeController.h.

std::vector<float> gte::KeyframeController::mScales
protected

Definition at line 81 of file GteKeyframeController.h.

std::vector<float> gte::KeyframeController::mScaleTimes
protected

Definition at line 80 of file GteKeyframeController.h.

int gte::KeyframeController::mSLastIndex
protected

Definition at line 85 of file GteKeyframeController.h.

int gte::KeyframeController::mTLastIndex
protected

Definition at line 85 of file GteKeyframeController.h.

std::vector<Vector4<float> > gte::KeyframeController::mTranslations
protected

Definition at line 73 of file GteKeyframeController.h.

std::vector<float> gte::KeyframeController::mTranslationTimes
protected

Definition at line 72 of file GteKeyframeController.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06