Keos::CAnimatedMeshKF Class Reference

A simple CMesh with key frames animation system. More...

#include <KeosAnimatedMeshKF.h>

Inheritance diagram for Keos::CAnimatedMeshKF:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CAnimatedMeshKF (std::vector< CMeshGeom::TVertex > Frames)
 Default constructor.
 ~CAnimatedMeshKF ()
 Destructor.
void Animate (float fPercent)
 Animate and render the mesh.
void SetAnimation (uint nAnimIndex)
 Change the current animation.
uint GetAnimation ()
 Get the index of the curent animation.
void AddAnimation (const CAnimationInfoKF &AnimationInfo)
 Add a new animation.
size_t GetNumberOfAnimations ()
 Return the number of animations.

Detailed Description

A simple CMesh with key frames animation system.

Definition at line 57 of file KeosAnimatedMeshKF.h.


Constructor & Destructor Documentation

Keos::CAnimatedMeshKF::CAnimatedMeshKF ( std::vector< CMeshGeom::TVertex Frames  ) 

Default constructor.

Parameters:
Frames List of all the vertex of all frames.

Definition at line 38 of file KeosAnimatedMeshKF.cpp.

Keos::CAnimatedMeshKF::~CAnimatedMeshKF (  ) 

Destructor.

Definition at line 51 of file KeosAnimatedMeshKF.cpp.


Member Function Documentation

void Keos::CAnimatedMeshKF::Animate ( float  fPercent  ) 

Animate and render the mesh.

Parameters:
fPercent Percentage in the animation.

Definition at line 95 of file KeosAnimatedMeshKF.cpp.

References Keos::CAnimationInfoKF::Begin, Keos::CAnimationInfoKF::End, and Keos::CMesh::Render().

void Keos::CAnimatedMeshKF::SetAnimation ( uint  nAnimIndex  ) 

Change the current animation.

Parameters:
nAnimIndex Index of the new animation.

Definition at line 55 of file KeosAnimatedMeshKF.cpp.

References Assert, Keos::CAnimationInfoKF::Begin, Keos::CAnimationInfoKF::End, and GetNumberOfAnimations().

uint Keos::CAnimatedMeshKF::GetAnimation (  )  [inline]

Get the index of the curent animation.

Definition at line 82 of file KeosAnimatedMeshKF.h.

void Keos::CAnimatedMeshKF::AddAnimation ( const CAnimationInfoKF AnimationInfo  ) 

Add a new animation.

Parameters:
AnimationInfo Informations on the animation.

Definition at line 121 of file KeosAnimatedMeshKF.cpp.

Referenced by Keos::CMDLQ1AnimatedLoader::LoadFromFile(), and Keos::CMD2AnimatedLoader::LoadFromFile().

size_t Keos::CAnimatedMeshKF::GetNumberOfAnimations (  )  [inline]

Return the number of animations.

Definition at line 94 of file KeosAnimatedMeshKF.h.

Referenced by SetAnimation().


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:21 2007 for Keos by  doxygen 1.5.1-p1