CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iMotionTemplate Struct Reference
[Mesh support]

Interface to loading motion data. More...

#include <motion.h>

Inheritance diagram for iMotionTemplate:

iBase List of all members.

Public Methods

virtual const char * GetName ()=0
 Get the name of this motion.

virtual const float GetDuration ()=0
 Get the duration of this motion.

virtual const int GetLoopCount ()=0
 Get the number of times to loop the motion.

virtual const bool GetLoopFlip ()=0
 Returns true if the motion will play backwards after playing forwards.

virtual void SetDuration (float duration)=0
 Set the length of this motion.

virtual void SetLoopCount (int looping)=0
 Set the default number of times to looping this motion.

virtual void SetLoopFlip (bool enable)=0
 This setting controls whether the motion will be played reversed after each loop.

virtual int AddBone (const char *name)=0
 Add the bone name to the list of handled bones.

virtual int FindBoneByName (const char *name)=0
 Find a bone index by name.

virtual void AddFrameBone (int boneid, float frametime, const csVector3 &position, const csQuaternion &rotation)=0
 Add a keyframe to a handled bone by the bones index.


Detailed Description

Interface to loading motion data.

This represents a motion that can be used on a skeleton via the iMotionController interface.

Definition at line 43 of file motion.h.


Member Function Documentation

virtual int iMotionTemplate::AddBone const char *    name [pure virtual]
 

Add the bone name to the list of handled bones.

Returns the index of the into the array.

virtual void iMotionTemplate::AddFrameBone int    boneid,
float    frametime,
const csVector3   position,
const csQuaternion   rotation
[pure virtual]
 

Add a keyframe to a handled bone by the bones index.

virtual int iMotionTemplate::FindBoneByName const char *    name [pure virtual]
 

Find a bone index by name.

virtual const float iMotionTemplate::GetDuration   [pure virtual]
 

Get the duration of this motion.

virtual const int iMotionTemplate::GetLoopCount   [pure virtual]
 

Get the number of times to loop the motion.

virtual const bool iMotionTemplate::GetLoopFlip   [pure virtual]
 

Returns true if the motion will play backwards after playing forwards.

virtual const char* iMotionTemplate::GetName   [pure virtual]
 

Get the name of this motion.

virtual void iMotionTemplate::SetDuration float    duration [pure virtual]
 

Set the length of this motion.

virtual void iMotionTemplate::SetLoopCount int    looping [pure virtual]
 

Set the default number of times to looping this motion.

Setting this value to -1 will loop forever. Setting this value to 0 will disable looping.

virtual void iMotionTemplate::SetLoopFlip bool    enable [pure virtual]
 

This setting controls whether the motion will be played reversed after each loop.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18