Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Rotator Class Reference
[Scene Graph]

#include <lvt/Animator.h>

Inheritance diagram for Rotator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Rotates a portion of a scene graph over time.

Like a Rotation class, but continuously rotates over time. The speed of the rotation (controlled by Animator::SetSpeed()) is measured in degrees per second.


Public Member Functions

bool Animate (unsigned int deltaTime)
 Increments the rotation.
float GetAngle () const
 Returns the current angle of rotation.
Vec GetAxis () const
 Returns the rotation axis.
void Render ()
 Rotates the scene graph.
void SetAngle (float a)
 Sets the current angle of rotation.
 ~Rotator ()
 Destructor.
 Rotator ()
 Constructors.
void SetAxis (const Vec &v)
 Sets the axis of rotation.


Constructor & Destructor Documentation

Rotator  ) 
 

Constructors.

~Rotator  ) 
 

Destructor.


Member Function Documentation

bool Animate unsigned int  deltaTime  )  [virtual]
 

Increments the rotation.

Increments the rotation angle by speed * (deltaTime / 1000)

Implements Animator.

float GetAngle  )  const [inline]
 

Returns the current angle of rotation.

Vec GetAxis  )  const [inline]
 

Returns the rotation axis.

void Render  )  [virtual]
 

Rotates the scene graph.

Rotates the portion of the scene graph following the Rotator node by the node's current rotation amount.

Implements Animator.

void SetAngle float  a  )  [inline]
 

Sets the current angle of rotation.

void SetAxis const Vec v  )  [inline]
 

Sets the axis of rotation.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1