newspeoplefor developersdocumentationdownloads

nTransformAnimator Class Reference
[Scene System]

#include <ntransformanimator.h>

Inheritance diagram for nTransformAnimator:

nAnimator nSceneNode nRoot nObject nNode nReferenced nSignalEmitter List of all members.

Detailed Description

Animate position, orientation and scaling of a nTransformNode from directly defined key arrays.

See also nTransformAnimator Script Interface

(C) 2003 RadonLabs GmbH

Definition at line 19 of file ntransformanimator.h.


Public Member Functions

 nTransformAnimator ()
 constructor
virtual ~nTransformAnimator ()
 destructor
virtual bool SaveCmds (nPersistServer *ps)
 save object to persistent stream
virtual Type GetAnimatorType () const
 return the type of this animator object (TRANSFORM)
virtual void Animate (nSceneNode *sceneNode, nRenderContext *renderContext)
 called by scene node objects which wish to be animated by this object
void AddPosKey (float time, const vector3 &key)
 add a position key
void AddEulerKey (float time, const vector3 &key)
 add a euler angle key
void AddScaleKey (float time, const vector3 &key)
 add a scale key
int GetNumPosKeys () const
 get number of position keys
void GetPosKeyAt (int index, float &time, vector3 &key) const
 get position key at index
int GetNumEulerKeys () const
 get number of euler angle keys
void GetEulerKeyAt (int index, float &time, vector3 &key) const
 get euler key at index
int GetNumScaleKeys () const
 get number of scale keys
void GetScaleKeyAt (int index, float &time, vector3 &key) const
 get scale key at index
void AddQuatKey (float time, const quaternion &key)
 add a quaternion key
int GetNumQuatKeys () const
 get number of quaternion keys
void GetQuatKeyAt (int index, float &time, quaternion &key) const
 get scale key at index

Constructor & Destructor Documentation

nTransformAnimator::nTransformAnimator  ) 
 

constructor

Definition at line 14 of file ntransformanimator_main.cc.

nTransformAnimator::~nTransformAnimator  )  [virtual]
 

destructor

Definition at line 26 of file ntransformanimator_main.cc.


Member Function Documentation

virtual bool nTransformAnimator::SaveCmds nPersistServer ps  )  [virtual]
 

save object to persistent stream

Reimplemented from nAnimator.

nAnimator::Type nTransformAnimator::GetAnimatorType  )  const [virtual]
 

return the type of this animator object (TRANSFORM)

Reimplemented from nAnimator.

Definition at line 35 of file ntransformanimator_main.cc.

void nTransformAnimator::Animate nSceneNode sceneNode,
nRenderContext renderContext
[virtual]
 

called by scene node objects which wish to be animated by this object

This does the actual work of manipulate the target object.

Parameters:
sceneNode object to manipulate (must be of class nTransformNode)
renderContext current render context

Reimplemented from nAnimator.

Definition at line 48 of file ntransformanimator_main.cc.

void nTransformAnimator::AddPosKey float  time,
const vector3 key
[inline]
 

add a position key

Definition at line 70 of file ntransformanimator.h.

void nTransformAnimator::AddEulerKey float  time,
const vector3 key
[inline]
 

add a euler angle key

Definition at line 81 of file ntransformanimator.h.

void nTransformAnimator::AddScaleKey float  time,
const vector3 key
[inline]
 

add a scale key

Definition at line 92 of file ntransformanimator.h.

int nTransformAnimator::GetNumPosKeys  )  const [inline]
 

get number of position keys

Definition at line 114 of file ntransformanimator.h.

void nTransformAnimator::GetPosKeyAt int  index,
float &  time,
vector3 key
const [inline]
 

get position key at index

Obtain a position key by its index.

Parameters:
index [in] index of key to get
time [out] the time stamp of the key
key [out] the value of the key

Definition at line 159 of file ntransformanimator.h.

int nTransformAnimator::GetNumEulerKeys  )  const [inline]
 

get number of euler angle keys

Definition at line 124 of file ntransformanimator.h.

void nTransformAnimator::GetEulerKeyAt int  index,
float &  time,
vector3 key
const [inline]
 

get euler key at index

Obtain a euler key by its index.

Parameters:
index [in] index of key to get
time [out] the time stamp of the key
key [out] the value of the key

Definition at line 176 of file ntransformanimator.h.

int nTransformAnimator::GetNumScaleKeys  )  const [inline]
 

get number of scale keys

Definition at line 134 of file ntransformanimator.h.

void nTransformAnimator::GetScaleKeyAt int  index,
float &  time,
vector3 key
const [inline]
 

get scale key at index

Obtain a scale key by its index.

Parameters:
index [in] index of key to get
time [out] the time stamp of the key
key [out] the value of the key

Definition at line 193 of file ntransformanimator.h.

void nTransformAnimator::AddQuatKey float  time,
const quaternion key
[inline]
 

add a quaternion key

Definition at line 103 of file ntransformanimator.h.

int nTransformAnimator::GetNumQuatKeys  )  const [inline]
 

get number of quaternion keys

Definition at line 144 of file ntransformanimator.h.

void nTransformAnimator::GetQuatKeyAt int  index,
float &  time,
quaternion key
const [inline]
 

get scale key at index

Obtain a quaternion key by its index.

Parameters:
index [in] index of key to get
time [out] the time stamp of the key
key [out] the value of the key

Definition at line 210 of file ntransformanimator.h.


The documentation for this class was generated from the following files:

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.