class Scene

Describes objects, materials and light source in space. More...

Definition#include <raytracer/scene.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Private Methods

Private Members


Detailed Description

Describes objects, materials and light source in space.

list<LightSource*> lights

lights

CSG object

object

int maxtracelevel

maxtracelevel

FLT colourprecision

colourprecision

mutable LightCache lightcache

lightcache

 Scene ()

Scene

Light cache for scattering media.

 ~Scene ()

~Scene

void  addObject (Object3D* o)

addObject

Add object to scene.

void  addLight (LightSource* l)

addLight

Add light source to scene.

void  finishParsing ()

finishParsing

Finish the scene creation process.

void  setDefaultMaterial (const Material3D& m)

setDefaultMaterial

Set objects' default material.

void  setBGColour (Colour5 c)

setBGColour

Set background colour.

Colour5  intersect (CameraRay &shoot)

intersect

Intersect scene with ray originating from camera.

Returns: resulting colour

LightList*  getLightList (const Vector3& location, CLR& maxblockingerror)

getLightList

[const]

Get a list of lights shining to a certain position.

Parameters:
locationposition
maxblockingerrormaximal error from blocking/non-blocking of light

Colour5 bgcolour

bgcolour

[private]

Colour5  intersectRec (CameraRay& shoot)

intersectRec

[private]