newspeoplefor developersdocumentationdownloads

nVectorAnimator Class Reference
[Scene System]

#include <nvectoranimator.h>

Inheritance diagram for nVectorAnimator:

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

Detailed Description

Animates a vector attribute of an nAbstractShaderNode.

See also nVectorAnimator Script Interface

(C) 2003 RadonLabs GmbH

Definition at line 18 of file nvectoranimator.h.


Public Member Functions

 nVectorAnimator ()
 constructor
virtual ~nVectorAnimator ()
 destructor
virtual bool SaveCmds (nPersistServer *ps)
 save object to persistent stream
virtual void Animate (nSceneNode *sceneNode, nRenderContext *renderContext)
 called by scene node objects which wish to be animated by this object
void AddKey (float time, const vector4 &key)
 add a key
int GetNumKeys () const
 get number of keys
void GetKeyAt (int index, float &time, vector4 &key) const
 get key at

Constructor & Destructor Documentation

nVectorAnimator::nVectorAnimator  ) 
 

constructor

Definition at line 14 of file nvectoranimator_main.cc.

nVectorAnimator::~nVectorAnimator  )  [virtual]
 

destructor

Definition at line 23 of file nvectoranimator_main.cc.


Member Function Documentation

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

save object to persistent stream

Reimplemented from nShaderAnimator.

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

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

Reimplemented from nAnimator.

Definition at line 68 of file nvectoranimator_main.cc.

void nVectorAnimator::AddKey float  time,
const vector4 key
 

add a key

Add a key to the animation key array.

Parameters:
time time in seconds.
key key values.

Definition at line 36 of file nvectoranimator_main.cc.

int nVectorAnimator::GetNumKeys  )  const
 

get number of keys

Return the number of keys in the animation key array.

Definition at line 47 of file nvectoranimator_main.cc.

void nVectorAnimator::GetKeyAt int  index,
float &  time,
vector4 key
const
 

get key at

Return information for a key index.

Definition at line 57 of file nvectoranimator_main.cc.


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

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