cz.cuni.jagrlib.iface
Interface RTScene

All Superinterfaces:
Intersectable, Property, TimeDependent
All Known Implementing Classes:
StaticCSGScene

public interface RTScene
extends Intersectable, TimeDependent

3D scene representation for Ray-tracing.

Since:
0.11
See Also:
RTScene.java, MicroFacet, LightSource, BSSRDF, RayGenerator

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 double[] getBackground()
          Retrieves background color (used when a ray doesn't hit anything).
 RayGenerator getCamera()
          Retrieves the actual camera (ray-generator).
 LightSource[] getLights()
          Retrieves all light sources from the scene.
 LightSource[] getLightsToMicroFacet(MicroFacet mf, int order, int total)
          Retrieves light sources which light up the given micro-facet.
 void setCamera(RayGenerator camera)
          Sets the camera object (ray-generator) for the scene.
 void setLights(LightSource[] l)
          Sets all the light sources from the given array.
 void setRoot(SceneNode root)
          Sets root node (assumes hierarchical scene representation based on SceneNode).
 
Methods inherited from interface cz.cuni.jagrlib.iface.Intersectable
intersection
 
Methods inherited from interface cz.cuni.jagrlib.iface.TimeDependent
getTime, getTimeInterval, setTime
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

setRoot

void setRoot(SceneNode root)
Sets root node (assumes hierarchical scene representation based on SceneNode).


setCamera

void setCamera(RayGenerator camera)
Sets the camera object (ray-generator) for the scene.


getCamera

RayGenerator getCamera()
Retrieves the actual camera (ray-generator).

Returns:
Actual RayGenerator object (camera).

setLights

void setLights(LightSource[] l)
Sets all the light sources from the given array.


getLights

LightSource[] getLights()
Retrieves all light sources from the scene.

Returns:
Array of light sources.
See Also:
getLightsToMicroFacet(cz.cuni.jagrlib.MicroFacet, int, int)

getLightsToMicroFacet

LightSource[] getLightsToMicroFacet(MicroFacet mf,
                                    int order,
                                    int total)
Retrieves light sources which light up the given micro-facet.

Parameters:
mf - Micro-facet which is to be lighted.
order - Order of this sample inside the actual pixel.
total - Total number of samples in the actual pixel.
Returns:
Array of light sources (null marks end of data).
See Also:
getLights()

getBackground

double[] getBackground()
Retrieves background color (used when a ray doesn't hit anything).