Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Scene Class Reference

Class definition for a Scene. More...

#include <Scene.h>

List of all members.

Public Methods

 Scene ()
 Constructor.

GLvoid addModel (Model *m)
 Add a Model to the Scene.

GLvoid removeModel (Model *m)
 Remove a Model in the Scene. This occurs when we removed all the vertices during the decimation process.

Modelm (GLint m)
 Get the mth Model in the Scene.

GLint numModels ()
 Get the number of Models in the Scene.

GLvoid addLight (Light *l)
 Add a Light to the Scene.

Light * l (GLint l)
 Get the lth Light in the Scene.

GLint numLights ()
 Get the number of Lights in the Scene.

Point getCenter ()
 Get the center Point of the Scene.

GLfloat getBackUp ()
 Get the distace to back up the camera for display (as calculated in analyzeScene).

GLfloat getRotStep ()
 Get the angle to rotate through for display (as calculated in analyzeScene).

GLfloat getTransStep ()
 Get the distance to translate through for display (as calculated in analyzeScene).

GLfloat getFrustrumDepth ()
 Get the depth of the frustum for display (as calculated in analyzeScene).

GLfloat getNormalLength ()
 Get the length of the Normals for display (as calculated in analyzeScene).

GLint getCount ()
 Get the number of Models in the Scene.

GLvoid analyzeScene ()
 Center the Scene in the Viewport and set the Normal lengths for display.

bool isFullyFunctional ()
 Are we ready to render?

std::string toString ()
 Get information for the Scene in string form.


Detailed Description

Class definition for a Scene.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 00:16:49 2001 for Mesh Decimation by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001