#include <scene.h>
Public Member Functions | |
| Scene () | |
| ~Scene () | |
| The scene deletes the root object when it is destructed. | |
| void | SetBackgroundColor (const Color3 &color) |
| Background color. Default is black. | |
| const Color3 & | GetBackgroundColor () const |
| void | SetRootObject (const IObject *object) |
| Sets an object as the root object. A scene *must* contains a root object. | |
| const IObject * | GetRootObject () const |
| void | SetAmbientIllumination (const Color3 &ambient) |
| const Color3 & | GetAmbientIllumination () const |
| void | InsertLight (const ILight *light) |
| Light sources. | |
| int | GetLightCount () const |
| const ILight * | GetLight (int i) const |
| bool | Trace (const Context &context, const Ray &ray, Hit *hit=0) const |
| bool | ArePointsMutuallyVisible (const Context &context, const sheep::Point3 &origin, const sheep::Vector3 &origin_normal, const sheep::Point3 &goal, Ray::Type ray_type=Ray::VISIBILITY_RAY) const |
Private Attributes | |
| Color3 | m_background_color |
| const IObject * | m_root_object |
| Color3 | m_ambient |
| std::vector< const ILight * > | m_lights |
Definition at line 45 of file scene.h.
|
|
|
|
|
The scene deletes the root object when it is destructed.
Definition at line 34 of file scene.cpp. References m_root_object. |
|
||||||||||||||||||||||||
|
Definition at line 151 of file scene.h. Referenced by toxic::PointLight::ComputeIrradiance(), and toxic::IAreaLight::ComputeIrradiance(). |
|
|
Definition at line 123 of file scene.h. Referenced by toxic::Renderer::compute_direct_illumination(). |
|
|
Definition at line 108 of file scene.h. Referenced by toxic::Renderer::trace(). |
|
|
Definition at line 133 of file scene.h. Referenced by toxic::IPhotonTracer::BuildPhotonMap(), and toxic::Renderer::compute_direct_illumination(). |
|
|
Definition at line 128 of file scene.h. Referenced by toxic::IPhotonTracer::BuildPhotonMap(), toxic::Renderer::compute_direct_illumination(), and main(). |
|
|
Definition at line 113 of file scene.h. Referenced by toxic::Renderer::Annotate(), and main(). |
|
|
Light sources.
Definition at line 47 of file scene.cpp. References m_lights. |
|
|
Ambient illumination. Default is none. |
|
|
Background color. Default is black.
Definition at line 38 of file scene.cpp. References m_background_color. |
|
|
Sets an object as the root object. A scene *must* contains a root object.
Definition at line 42 of file scene.cpp. References m_root_object. |
|
||||||||||||||||
|
Definition at line 139 of file scene.h. Referenced by toxic::Sphere::ComputeIrradiance(), toxic::Renderer::final_gathering(), toxic::ThinLensCamera::Finalize(), toxic::Camera::Finalize(), toxic::Renderer::trace(), toxic::GlobalPhotonTracer::trace_photon(), and toxic::CausticsPhotonTracer::trace_photon(). |
|
|
|
|
|
Definition at line 79 of file scene.h. Referenced by SetBackgroundColor(). |
|
|
Definition at line 82 of file scene.h. Referenced by InsertLight(). |
|
|
Definition at line 80 of file scene.h. Referenced by SetRootObject(), and ~Scene(). |
1.3.6