Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

SubMeshAnimatorController Class Reference

#include <submeshanimator.h>

Inheritance diagram for SubMeshAnimatorController:

Inheritance graph
[legend]
Collaboration diagram for SubMeshAnimatorController:

Collaboration graph
[legend]
List of all members.

Detailed Description

Animator controller for submeshes.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 SubMeshAnimatorController ()
 SubMeshAnimatorController (const SubMeshAnimatorController &rkController)
virtual void Update (float fDeltaTime)
void InterpolateVertices (VertexBufferPtr pkBuffer)
virtual bool AddAnimation (SubMeshAnimation *pkAnimation)
virtual bool SetCurrentAnimation (unsigned int uiID)
virtual bool SetCurrentAnimation (const HashString &rstrName)
const std::vector< SubMeshAnimation * > & GetAnimations () const
SubMeshAnimationGetCurrentAnimation ()
bool IsActive () const
virtual void Activate ()
virtual void Deactivate ()
bool Toggle ()

Protected Attributes

std::vector< SubMeshAnimation * > m_vpkAnimations
unsigned int m_uiCurAnim
SubMeshAnimationm_pkCurAnim
bool m_bActive


Constructor & Destructor Documentation

SubMeshAnimatorController  )  [inline]
 

SubMeshAnimatorController const SubMeshAnimatorController rkController  )  [inline]
 

Parameters:
rkController Reference controller object to copy


Member Function Documentation

virtual void Update float  fDeltaTime  )  [virtual]
 

Update current animation

Parameters:
fDeltaTime Delta time passed

Reimplemented from AnimatorController< SubMeshAnimation >.

Reimplemented in AnimatedSubMesh.

void InterpolateVertices VertexBufferPtr  pkBuffer  ) 
 

Interpolate vertices

Parameters:
pkBuffer Vertex buffer receiving data

virtual bool AddAnimation SubMeshAnimation pkAnimation  )  [inline, virtual, inherited]
 

Add new animation

Parameters:
pkAnimation New animation
Returns:
true if added, false if id or name conflicts with already registered animation

virtual bool SetCurrentAnimation unsigned int  uiID  )  [inline, virtual, inherited]
 

Set current animation by ID

Parameters:
uiID Animation ID
Returns:
true if successful, false if animation not found

virtual bool SetCurrentAnimation const HashString rstrName  )  [inline, virtual, inherited]
 

Set current animation by name

Parameters:
rstrName Animation name
Returns:
true if successful, false if animation not found

const std::vector< SubMeshAnimation * >& GetAnimations  )  const [inline, inherited]
 

Returns:
All animations

SubMeshAnimation * GetCurrentAnimation  )  [inline, inherited]
 

Returns:
Current animations

bool IsActive  )  const [inline, inherited]
 

Query state of object

Returns:
true if active, false if not

void Activate  )  [inline, virtual, inherited]
 

Activate object

void Deactivate  )  [inline, virtual, inherited]
 

Deactivate object

bool Toggle  )  [inline, inherited]
 

Toggle active state. This method does not need to be overloaded, it is only a wrapper to Activate and Deactivate

Returns:
true if activated, false if deactivated


Member Data Documentation

std::vector< SubMeshAnimation * > m_vpkAnimations [protected, inherited]
 

Animations

unsigned int m_uiCurAnim [protected, inherited]
 

Current animation

SubMeshAnimation * m_pkCurAnim [protected, inherited]
 

Current animation object ptr

bool m_bActive [protected, inherited]
 

Active flag


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:15 2004 for NeoEngine by doxygen 1.3.5