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

NodeAnimation Class Reference

#include <nodeanimator.h>

Inheritance diagram for NodeAnimation:

Inheritance graph
[legend]
Collaboration diagram for NodeAnimation:

Collaboration graph
[legend]
List of all members.

Detailed Description

An animation for a node.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 NodeAnimation ()
 NodeAnimation (const NodeAnimation &rkAnimation)
virtual ~NodeAnimation ()
virtual void AddKeyframe (NodeKeyframe *pkKeyframe)
virtual void Update (float fDeltaTime)
bool IsActive () const
virtual void Activate ()
virtual void Deactivate ()
bool Toggle ()

Public Attributes

KeyframeVec m_vpkKeyframes
unsigned int m_uiID
HashString m_strName
float m_fLength
float m_fCurTime
int m_iLastKeyframe
int m_iNextKeyframe
float m_fOffset

Protected Attributes

bool m_bActive


Constructor & Destructor Documentation

NodeAnimation  )  [inline]
 

NodeAnimation const NodeAnimation rkAnimation  )  [inline]
 

Parameters:
rkAnimation Reference animation object

virtual ~NodeAnimation  )  [inline, virtual]
 


Member Function Documentation

virtual void AddKeyframe NodeKeyframe pkKeyframe  )  [inline, virtual, inherited]
 

Insert new keyframe

Parameters:
pkKeyframe New keyframe

virtual void Update float  fDeltaTime  )  [inline, virtual, inherited]
 

Update animation

Parameters:
fDeltaTime Deltatime passed since last update

Reimplemented from UpdateEntity.

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

KeyframeVec m_vpkKeyframes [inherited]
 

Keyframes ordered by timestamp

unsigned int m_uiID [inherited]
 

Animation ID

HashString m_strName [inherited]
 

Animation name

float m_fLength [inherited]
 

Lenght of animation in seconds

float m_fCurTime [inherited]
 

Current time in [0,1] interval

int m_iLastKeyframe [inherited]
 

Last keyframe

int m_iNextKeyframe [inherited]
 

Next keyframe

float m_fOffset [inherited]
 

Current time offset from last keyframe to next keyframe (in [0,1] range)

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:12 2004 for NeoEngine by doxygen 1.3.5