CrystalSpace

Public API Reference

iSkeletonAnimationKeyFrame Struct Reference

The script key frame contains all bones that will be transformed in a specific time of a skeleton script. More...

#include <imesh/skeleton.h>

Inheritance diagram for iSkeletonAnimationKeyFrame:

List of all members.

Public Member Functions

virtual void AddTransform (iSkeletonBoneFactory *bone, csReversibleTransform &transform, bool relative=false)=0
 Add new bone transform to the key frame.
virtual csTicks GetDuration ()=0
 Get key frame duration.
virtual bool GetKeyFrameData (iSkeletonBoneFactory *bone_fact, csQuaternion &rot, csVector3 &pos, csQuaternion &tangent, bool &relative)=0
 Get key frame specific data.
virtual const char * GetName () const =0
 Get name of the key frame.
virtual bool GetTransform (iSkeletonBoneFactory *bone, csReversibleTransform &dst_trans)=0
 Get the transform of a bone.
virtual size_t GetTransformsCount ()=0
 Get number of key transforms.
virtual void SetDuration (csTicks time)=0
 Set key frame duration.
virtual void SetName (const char *name)=0
 Set name of the key frame.
virtual void SetTransform (iSkeletonBoneFactory *bone, csReversibleTransform &transform)=0
 Set the transform of a bone.

Detailed Description

The script key frame contains all bones that will be transformed in a specific time of a skeleton script.

Definition at line 184 of file skeleton.h.


Member Function Documentation

virtual void iSkeletonAnimationKeyFrame::AddTransform ( iSkeletonBoneFactory bone,
csReversibleTransform transform,
bool  relative = false 
) [pure virtual]

Add new bone transform to the key frame.

virtual csTicks iSkeletonAnimationKeyFrame::GetDuration (  )  [pure virtual]

Get key frame duration.

virtual bool iSkeletonAnimationKeyFrame::GetKeyFrameData ( iSkeletonBoneFactory bone_fact,
csQuaternion rot,
csVector3 pos,
csQuaternion tangent,
bool &  relative 
) [pure virtual]

Get key frame specific data.

Returns false when frame don't have data for given bone.

virtual const char* iSkeletonAnimationKeyFrame::GetName (  )  const [pure virtual]

Get name of the key frame.

virtual bool iSkeletonAnimationKeyFrame::GetTransform ( iSkeletonBoneFactory bone,
csReversibleTransform dst_trans 
) [pure virtual]

Get the transform of a bone.

Returns 'false' when there won't be any transform data for given bone.

virtual size_t iSkeletonAnimationKeyFrame::GetTransformsCount (  )  [pure virtual]

Get number of key transforms.

virtual void iSkeletonAnimationKeyFrame::SetDuration ( csTicks  time  )  [pure virtual]

Set key frame duration.

virtual void iSkeletonAnimationKeyFrame::SetName ( const char *  name  )  [pure virtual]

Set name of the key frame.

virtual void iSkeletonAnimationKeyFrame::SetTransform ( iSkeletonBoneFactory bone,
csReversibleTransform transform 
) [pure virtual]

Set the transform of a bone.


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

Generated for Crystal Space 1.4.1 by doxygen 1.7.1