Classes | Public Member Functions

xl7::direct3d::animations::ModelAnimation Class Reference

#include <ModelAnimation.h>

List of all members.

Classes

struct  JointAnimatorData

Public Member Functions

 ModelAnimation (void)
virtual ~ModelAnimation (void)
bool AddJointAnimator (const cl7::string_type &joint_identifier, JointAnimator *joint_animator, bool auto_reverse=false, bool looping=true, float phase_shift=0.0f)
bool RemoveJointAnimator (const cl7::string_type &joint_identifier)
bool RemoveJointAnimator (const JointAnimator *joint_animator)
void Update (float progress)
void Transmit (models::ModelInstance *model_instance) const

Constructor & Destructor Documentation

xl7::direct3d::animations::ModelAnimation::ModelAnimation ( void   ) 

Default constructor.

xl7::direct3d::animations::ModelAnimation::~ModelAnimation ( void   )  [virtual]

Destructor.


Member Function Documentation

bool xl7::direct3d::animations::ModelAnimation::AddJointAnimator ( const cl7::string_type joint_identifier,
JointAnimator joint_animator,
bool  auto_reverse = false,
bool  looping = true,
float  phase_shift = 0.0f 
)

Adds the given joint animator associating it with the given joint identifier. If the given joint identifier is already existent, the function fails.

bool xl7::direct3d::animations::ModelAnimation::RemoveJointAnimator ( const cl7::string_type joint_identifier  ) 

Removes the joint animator associated with the given joint identifier. If the given joint identifier is not existent, the function fails.

bool xl7::direct3d::animations::ModelAnimation::RemoveJointAnimator ( const JointAnimator joint_animator  ) 

Removes the given joint animator. If the given joint anmator is not existent, the function fails.

void xl7::direct3d::animations::ModelAnimation::Transmit ( models::ModelInstance model_instance  )  const

Transmits the (updated) rotations and translations of the registered joint animators to the joints of the given model instance. You have to call ModelInstance::Update to apply the changes to the mesh of the model instance.

void xl7::direct3d::animations::ModelAnimation::Update ( float  progress  ) 

Updates the rotation quaternions and the translation vectors of the registered joint animators.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines