#include <Scene.h>
Inheritance diagram for Scene:
Public Member Functions | |
Scene (const SDS &proto) | |
virtual | ~Scene () |
SceneGraphObject::OID | appendModel (Parser &parser, const Matrix4 *m=NULL) |
SceneGraphObject::OID | appendObject (SceneGraphObject *primitive) |
SceneGraphObject::OID | appendLight (LightSource *light) |
void | build (void) |
bool | haveLight (void) const |
Group * | root (void) |
virtual void | __debug (void) |
Protected Attributes | |
SceneGraphObject::OID | _lastOID |
Group | _sceneGraph |
bool | _haveLight |
Definition at line 18 of file Scene.h.
|
|
|
|
|
Used only for debugging. Definition at line 63 of file Scene.cc. References Scene::_sceneGraph. |
|
Appends a light source to the scene.
Definition at line 53 of file Scene.cc. References Scene::_haveLight, Scene::_lastOID, and Scene::_sceneGraph. Referenced by CornellBox::_build_lights(), SphereFlake::_create_lights(), and FractalMount::_create_lights(). |
|
Appends model to the scene.
Definition at line 7 of file Scene.cc. References Scene::_lastOID, and Scene::_sceneGraph. |
|
Appends single object to the scene.
Definition at line 32 of file Scene.cc. References Scene::_lastOID, and Scene::_sceneGraph. Referenced by CornellBox::_build_sphere_flake(), CornellBox::_build_walls(), SphereFlake::_create_spheres(), FractalMount::_create_spheres(), CornellBox::addCrystalicSphere(), CornellBox::addMirrorSphere(), and SphereFlake::SphereFlake(). |
|
Prepares the scene for manipulation. There is no guarantee that the scene is realy created until the build() method is called. After the build() call the scene is created. Nevertheless, you _can_ still append additional primitives and/or models. Definition at line 65 of file Scene.h. Referenced by FractalMount::FractalMount(), and SphereFlake::SphereFlake(). |
|
|
|
|
Definition at line 22 of file Scene.h. Referenced by Scene::appendLight(). |
|
|
Definition at line 21 of file Scene.h. Referenced by Scene::__debug(), Scene::appendLight(), Scene::appendModel(), and Scene::appendObject(). |