GpuThesis::Scene Class Reference

#include <Scene.h>

List of all members.

Public Member Functions

 Scene (const std::vector< Light * > &lights, Fire3dSimulator *fireSimulation, bool slice)
void compute ()
void render (const OpenGL::Camera &cam)
void addSceneObject (SceneObject &sceneObject)
void setFireLocation (const Math::Vector3d &location)
void setFireScale (float scale)
void setGlobalAmbient (const Util::Color &globalAmbient)
void setDisplayLights (bool displayLights)
bool getDisplayLights () const
OpenGL::IoTextureSetgetIoTextureSet ()


Detailed Description

Represents a Scene with contained lights and objects.


Constructor & Destructor Documentation

GpuThesis::Scene::Scene const std::vector< Light * > &  lights,
Fire3dSimulator fireSimulation,
bool  slice
 

Initialize the scene. The Fire3dSimulation is needed for dynamic lights.

Parameters:
lights the lights in the scene.
fireSimulation the fire simulation used for lighting.
slice whether the fire simulation is a slice simulation.


Member Function Documentation

void GpuThesis::Scene::addSceneObject SceneObject sceneObject  ) 
 

Add a scene object to the Scene.

Parameters:
sceneObject the scene object to add.

void GpuThesis::Scene::compute  ) 
 

Perform per-frame computations (light sampling).

bool GpuThesis::Scene::getDisplayLights  )  const
 

Check whether lights are displayed as spheres.

Returns:
whether lights are displayed as spheres.

OpenGL::IoTextureSet * GpuThesis::Scene::getIoTextureSet  ) 
 

Get the texture set used for light positions and colors.

Returns:
the internal texture set.

void GpuThesis::Scene::render const OpenGL::Camera cam  ) 
 

Render the scene from the given viewpoint.

Parameters:
cam a Camera specifying the viewpoint.

void GpuThesis::Scene::setDisplayLights bool  displayLights  ) 
 

Set whether to display the point lights as spheres. Used mainly for debugging.

Parameters:
displayLights whether to display lights as spheres.

void GpuThesis::Scene::setFireLocation const Math::Vector3d &  location  ) 
 

Set the location of the fire. Used for dynamic lights.

Parameters:
location the location of the fire.

void GpuThesis::Scene::setFireScale float  scale  ) 
 

Set the scale of the fire. Used for positioning of dynamic lights.

Parameters:
scale The scale of the fire.

void GpuThesis::Scene::setGlobalAmbient const Util::Color globalAmbient  ) 
 

Set the global ambient color. The global ambient affects all scene objects based on their material properties.

Parameters:
globalAmbient the global ambient color.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:51 2006 for GPU Thesis by  doxygen 1.4.6-NO