GLFX::Scene::Animation Class Reference

#include <glfxscene.h>

List of all members.

Public Member Functions

void SetLength (unsigned long frameCount, float startTime, float frequency)
void Initialize (unsigned long nodeCount)
void SetName (const char *name)
const char * GetName () const
float GetStartTime () const
float GetEndTime () const
float GetLength () const
unsigned long GetFrameCount () const
unsigned long GetNodeCount () const
Frame & GetFrame (unsigned long frame, unsigned long node)
const Frame & GetFrame (unsigned long frame, unsigned long node) const
void ApplyAnimation (Node *node, float time) const
void ConvertTimeToFrameInterp (float time, unsigned long &frame, float &interp) const
void MultAnimation (Node *node, float time) const
void ApplyAnimationBlend (Node *node, float time, const Animation *otherAnim, float otherTime, float otherWeight)
void MultAnimationBlend (Node *node, float time, const Animation *otherAnim, float otherTime, float otherWeight)


Member Function Documentation

void GLFX::Scene::Animation::SetLength ( unsigned long  frameCount,
float  startTime,
float  frequency 
) [inline]

Set animation length.

Parameters:
frameCount number of animation frames
startTime animation start time
frequency animation frequency (frames per second)

void GLFX::Scene::Animation::Initialize ( unsigned long  nodeCount  )  [inline]

Initialize animation.

Parameters:
nodeCount initial node count

void GLFX::Scene::Animation::SetName ( const char *  name  )  [inline]

Sets animation name.

Parameters:
name new name

const char* GLFX::Scene::Animation::GetName (  )  const [inline]

Gets animation name.

float GLFX::Scene::Animation::GetStartTime (  )  const [inline]

Gets animation start time.

float GLFX::Scene::Animation::GetEndTime (  )  const [inline]

Gets animation finish time.

float GLFX::Scene::Animation::GetLength (  )  const [inline]

Gets animation length in seconds.

Returns:
animation length

unsigned long GLFX::Scene::Animation::GetFrameCount (  )  const [inline]

Gets number of frames.

Returns:
frame count

unsigned long GLFX::Scene::Animation::GetNodeCount (  )  const [inline]

Gets number of nodes animated.

Returns:
node count

Frame& GLFX::Scene::Animation::GetFrame ( unsigned long  frame,
unsigned long  node 
) [inline]

Gets frame for the given node.

Parameters:
frame frame number
node node number
Returns:
animation frame

const Frame& GLFX::Scene::Animation::GetFrame ( unsigned long  frame,
unsigned long  node 
) const [inline]

Gets frame for the given node.

Parameters:
frame frame number
node node number
Returns:
animation frame

void GLFX::Scene::Animation::ApplyAnimation ( Node *  node,
float  time 
) const [inline]

Applies animation to hierarchy of nodes.

Parameters:
node scene root
time frame time

void GLFX::Scene::Animation::ConvertTimeToFrameInterp ( float  time,
unsigned long &  frame,
float &  interp 
) const [inline]

Converts time to frame number and interpolation ammount between current and next frame.

Parameters:
time animation time
frame frame number for animation time
interp interpolation value

void GLFX::Scene::Animation::MultAnimation ( Node *  node,
float  time 
) const [inline]

Mutltiply node hierarchy by animation frame.

Parameters:
node scene root
time frame time

void GLFX::Scene::Animation::ApplyAnimationBlend ( Node *  node,
float  time,
const Animation *  otherAnim,
float  otherTime,
float  otherWeight 
) [inline]

Apply a blend of two animations.

Parameters:
node scene root
time animation time
otherAnim other animation
otherTime other animation time
otherWeight other animatio weight

void GLFX::Scene::Animation::MultAnimationBlend ( Node *  node,
float  time,
const Animation *  otherAnim,
float  otherTime,
float  otherWeight 
) [inline]

Multiply node hierarchy by animation blend.

Parameters:
node scene root
time animation time
otherAnim other animation
otherTime other animation time
otherWeight other animatio weight


The documentation for this class was generated from the following file:
SourceForge.net Logo