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

Shuttle Class Reference
[Scene Graph]

#include <lvt/Animator.h>

Inheritance diagram for Shuttle:

Inheritance graph
[legend]
List of all members.

Detailed Description

Moves a portion of a scene graph along a specified circuit.

A Shuttle moves a portion of a scene graph along a cyclic path specified by two or more waypoints.


Public Member Functions

bool Animate (unsigned int deltaTime)
 Moves the shuttle along its circuit.
void Clear ()
 Removes all waypoints from the Shuttle's circuit, and stops the Shuttle.
void EraseWaypoint (int n=-1)
 Removes a waypoint from the Shuttle's circuit.
void Render ()
 Renders the shuttle.
 Shuttle ()
 Default constructor.
 ~Shuttle ()
 Destructor.
void AddWaypoint (const Vec &v)
 Adds a waypoint to the Shuttle's circuit.


Constructor & Destructor Documentation

Shuttle  ) 
 

Default constructor.

Constructs a Shuttle with an empty circuit.

~Shuttle  ) 
 

Destructor.


Member Function Documentation

void AddWaypoint const Vec v  ) 
 

Adds a waypoint to the Shuttle's circuit.

bool Animate unsigned int  deltaTime  )  [virtual]
 

Moves the shuttle along its circuit.

Implements Animator.

void Clear  )  [inline]
 

Removes all waypoints from the Shuttle's circuit, and stops the Shuttle.

void EraseWaypoint int  n = -1  ) 
 

Removes a waypoint from the Shuttle's circuit.

Removes the nth waypoint from the Shuttle's circuit. If n is -1, the last waypoint in the circuit is removed. If the shuttle is currently heading towards the nth waypoint, it will immediately change course for the n+1th waypoint.

void Render  )  [virtual]
 

Renders the shuttle.

As with all Animators, nothing is actually drawn, but the modelview matrix is modified representing movement along the Shuttle's circuit.

Implements Animator.


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