Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::SkinController Class Reference

#include <GteSkinController.h>

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

Public Types

typedef std::function< void(std::shared_ptr< VertexBuffer > const &)> Updater
 

Public Member Functions

std::vector< std::weak_ptr< Node > > & GetBones ()
 
int GetNumBones () const
 
int GetNumVertices () const
 
Array2< Vector4< float > > & GetOffsets ()
 
Array2< float > & GetWeights ()
 
 SkinController (int numVertices, int numBones, Updater const &postUpdate)
 
virtual bool Update (double applicationTime)
 
virtual ~SkinController ()
 
- 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

void OnFirstUpdate ()
 
- Protected Member Functions inherited from gte::Controller
 Controller ()
 
double GetControlTime (double applicationTime)
 

Protected Attributes

std::vector< std::weak_ptr< Node > > mBones
 
bool mCanUpdate
 
bool mFirstUpdate
 
int mNumBones
 
int mNumVertices
 
Array2< Vector4< float > > mOffsets
 
char * mPosition
 
Updater mPostUpdate
 
unsigned int mStride
 
Array2< float > mWeights
 
- 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 22 of file GteSkinController.h.

Member Typedef Documentation

typedef std::function<void(std::shared_ptr<VertexBuffer> const&)> gte::SkinController::Updater

Definition at line 31 of file GteSkinController.h.

Constructor & Destructor Documentation

SkinController::~SkinController ( )
virtual

Definition at line 14 of file GteSkinController.cpp.

SkinController::SkinController ( int  numVertices,
int  numBones,
Updater const &  postUpdate 
)

Definition at line 18 of file GteSkinController.cpp.

Member Function Documentation

std::vector< std::weak_ptr< Node > > & gte::SkinController::GetBones ( )
inline

Definition at line 76 of file GteSkinController.h.

int gte::SkinController::GetNumBones ( ) const
inline

Definition at line 71 of file GteSkinController.h.

int gte::SkinController::GetNumVertices ( ) const
inline

Definition at line 66 of file GteSkinController.h.

Array2< Vector4< float > > & gte::SkinController::GetOffsets ( )
inline

Definition at line 86 of file GteSkinController.h.

Array2< float > & gte::SkinController::GetWeights ( )
inline

Definition at line 81 of file GteSkinController.h.

void SkinController::OnFirstUpdate ( )
protected

Definition at line 92 of file GteSkinController.cpp.

bool SkinController::Update ( double  applicationTime)
virtual

Reimplemented from gte::Controller.

Definition at line 33 of file GteSkinController.cpp.

Member Data Documentation

std::vector<std::weak_ptr<Node> > gte::SkinController::mBones
protected

Definition at line 56 of file GteSkinController.h.

bool gte::SkinController::mCanUpdate
protected

Definition at line 62 of file GteSkinController.h.

bool gte::SkinController::mFirstUpdate
protected

Definition at line 62 of file GteSkinController.h.

int gte::SkinController::mNumBones
protected

Definition at line 55 of file GteSkinController.h.

int gte::SkinController::mNumVertices
protected

Definition at line 54 of file GteSkinController.h.

Array2<Vector4<float> > gte::SkinController::mOffsets
protected

Definition at line 58 of file GteSkinController.h.

char* gte::SkinController::mPosition
protected

Definition at line 60 of file GteSkinController.h.

Updater gte::SkinController::mPostUpdate
protected

Definition at line 59 of file GteSkinController.h.

unsigned int gte::SkinController::mStride
protected

Definition at line 61 of file GteSkinController.h.

Array2<float> gte::SkinController::mWeights
protected

Definition at line 57 of file GteSkinController.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