nAnimator Class Reference
[Scene System]
#include <nanimator.h>
Inheritance diagram for nAnimator:

Detailed Description
Animator nodes manipulate properties of other scene objects.They are not attached to the scene, instead they are called back by scene objects which wish to be manipulated.
See also nAnimator Script Interface
(C) 2003 RadonLabs GmbH
Definition at line 25 of file nanimator.h.
Public Types | |
| enum | Type { InvalidType, Transform, Shader, BlendShape } |
Public Member Functions | |
| nAnimator () | |
| constructor | |
| virtual | ~nAnimator () |
| destructor | |
| virtual bool | SaveCmds (nPersistServer *ps) |
| save object to persistent stream | |
| virtual Type | GetAnimatorType () const |
| return the type of this animator object | |
| virtual void | Animate (nSceneNode *sceneNode, nRenderContext *renderContext) |
| called by scene node objects which wish to be animated by this object | |
| void | SetChannel (const char *name) |
| set the variable handle which drives this animator object (e.g. time) | |
| const char * | GetChannel () |
| get the variable which drives this animator object | |
| void | SetLoopType (nAnimLoopType::Type t) |
| set the loop type | |
| nAnimLoopType::Type | GetLoopType () const |
| get the loop type | |
Protected Attributes | |
| nAnimLoopType::Type | loopType |
| nVariable::Handle | channelVarHandle |
| nVariable::Handle | channelOffsetVarHandle |
Member Enumeration Documentation
|
|
Definition at line 28 of file nanimator.h. |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 13 of file nanimator_main.cc. |
|
|
destructor
Definition at line 23 of file nanimator_main.cc. |
Member Function Documentation
|
|
save object to persistent stream
Reimplemented from nSceneNode. Reimplemented in nBlendShapeAnimator, nFloatAnimator, nIntAnimator, nShaderAnimator, nSkinAnimator, nTextureAnimator, nTransformAnimator, nTransformCurveAnimator, nUvAnimator, and nVectorAnimator. |
|
|
return the type of this animator object Returns the type of the animator object. Subclasses should return something meaningful here. Reimplemented in nBlendShapeAnimator, nShaderAnimator, nTextureAnimator, nTransformAnimator, nTransformCurveAnimator, and nUvAnimator. Definition at line 34 of file nanimator_main.cc. |
|
||||||||||||
|
called by scene node objects which wish to be animated by this object This method is called back by scene node objects which wish to be animated. Reimplemented in nBlendShapeAnimator, nCharacter3SkinAnimator, nFloatAnimator, nIntAnimator, nSkinAnimator, nTextureAnimator, nTransformAnimator, nTransformCurveAnimator, nUvAnimator, and nVectorAnimator. Definition at line 45 of file nanimator_main.cc. |
|
|
set the variable handle which drives this animator object (e.g. time) Sets the "animation channel" which drives this animation. This could be something like "time", but the actual names are totally up to the application. The actual channel value will be pulled from the render context provided in the Animate() method. Definition at line 58 of file nanimator_main.cc. |
|
|
get the variable which drives this animator object Return the animation channel which drives this animation. Definition at line 70 of file nanimator_main.cc. |
|
|
set the loop type Set the loop type for this animation. Definition at line 67 of file nanimator.h. |
|
|
get the loop type Get the loop type for this animation. Definition at line 78 of file nanimator.h. |
Member Data Documentation
|
|
Definition at line 56 of file nanimator.h. |
|
|
Definition at line 57 of file nanimator.h. |
|
|
Definition at line 58 of file nanimator.h. |
The documentation for this class was generated from the following files: