PapaganAnimation Class Reference

#include <Animation.h>

List of all members.

Public Member Functions

 PapaganAnimation (Skeleton *skeleton)
void addAnimationElement (const AnimationElement &anAnimationElement)
void deleteLast ()
void drawAnimationFrame (void)
void saveToXML (char *fileName)
 calls the Ogre's rendering functions
vector< AnimationElementgetSignAnimation ()
 save animation to a XML file
void reset (void)
 get the vector of AnimationElements that compose this PapaganAnimation
bool isEnded (void)
 set Frame No. to zero
void setState (int state)
void play (void)
void setSkeleton (Skeleton *skeleton)
Skeleton * getSkeleton ()
void editAnimationXML (char *, int, char *jointName, char *axisName, int startFrame, int endFrame, float angle)
 Skeleton of the model.
int getFrameNo ()
int getMaxFrameNo ()
int getState ()
void rewind (float sliderValue)
void setSignAnimation (vector< AnimationElement > &signAnimation)
 go to a specific point in the timeline of the PapaganAnimation

Protected Member Functions

void calculateMaxFrameNo ()

Protected Attributes

int frameNo
int maxFrameNo
int state
vector< AnimationElementmSignAnimation
Skeleton * skeleton


Detailed Description

PapaganAnimation is composed of a number of AnimationElements. From start to end the Ogre parses the PapaganAnimation and draws each frame.


Constructor & Destructor Documentation

PapaganAnimation::PapaganAnimation Skeleton *  skeleton  )  [inline]
 


Member Function Documentation

void PapaganAnimation::addAnimationElement const AnimationElement anAnimationElement  ) 
 

void PapaganAnimation::calculateMaxFrameNo  )  [protected]
 

void PapaganAnimation::deleteLast  ) 
 

void PapaganAnimation::drawAnimationFrame void   ) 
 

void PapaganAnimation::editAnimationXML char *  ,
int  ,
char *  jointName,
char *  axisName,
int  startFrame,
int  endFrame,
float  angle
 

Skeleton of the model.

int PapaganAnimation::getFrameNo  ) 
 

int PapaganAnimation::getMaxFrameNo  ) 
 

vector< AnimationElement > PapaganAnimation::getSignAnimation  ) 
 

save animation to a XML file

Skeleton * PapaganAnimation::getSkeleton  ) 
 

int PapaganAnimation::getState  ) 
 

bool PapaganAnimation::isEnded void   ) 
 

set Frame No. to zero

void PapaganAnimation::play void   ) 
 

void PapaganAnimation::reset void   ) 
 

get the vector of AnimationElements that compose this PapaganAnimation

void PapaganAnimation::rewind float  sliderValue  ) 
 

void PapaganAnimation::saveToXML char *  fileName  ) 
 

calls the Ogre's rendering functions

void PapaganAnimation::setSignAnimation vector< AnimationElement > &  signAnimation  ) 
 

go to a specific point in the timeline of the PapaganAnimation

void PapaganAnimation::setSkeleton Skeleton *  skeleton  ) 
 

void PapaganAnimation::setState int  state  ) 
 


Member Data Documentation

int PapaganAnimation::frameNo [protected]
 

int PapaganAnimation::maxFrameNo [protected]
 

vector<AnimationElement> PapaganAnimation::mSignAnimation [protected]
 

Skeleton* PapaganAnimation::skeleton [protected]
 

int PapaganAnimation::state [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon May 29 01:10:34 2006 for Papagan by  doxygen 1.4.6-NO