CrystalSpace

Public API Reference

CS::Animation::AnimatedMeshState Class Reference
[Mesh plugins]

Holds the state of an animesh skeleton for a frame, ie the position and rotation of each bone of the skeleton. More...

#include <imesh/skeleton2.h>

Inheritance diagram for CS::Animation::AnimatedMeshState:

List of all members.

Public Member Functions

 AnimatedMeshState ()
 Constructor.
size_t GetBoneCount () const
 Return the count of bones of this skeleton state.
csQuaternionGetQuaternion (size_t i)
 Return the rotation quaternion of the given bone, in bone space.
const csQuaternionGetQuaternion (size_t i) const
 Return the rotation quaternion of the given bone, in bone space.
csVector3GetVector (size_t i)
 Return the position vector of the given bone, in bone space.
const csVector3GetVector (size_t i) const
 Return the position vector of the given bone, in bone space.
bool IsBoneUsed (BoneID bone) const
 Return true if the position and rotation values have been set for the given bone, false otherwise (last position and rotation values which have been set for this bone will therefore be kept).
void Reset ()
 Mark all bones as not used.
void SetBoneUsed (BoneID bone)
 Mark that the position and rotation values have been set for the given bone.
void Setup (size_t numBones)
 Initialize the skeleton state.
virtual ~AnimatedMeshState ()
 Destructor.

Detailed Description

Holds the state of an animesh skeleton for a frame, ie the position and rotation of each bone of the skeleton.

These transforms are in bind space.

Definition at line 458 of file skeleton2.h.


Constructor & Destructor Documentation

CS::Animation::AnimatedMeshState::AnimatedMeshState (  )  [inline]

Constructor.

Definition at line 463 of file skeleton2.h.


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

Generated for Crystal Space 2.1 by doxygen 1.6.1