|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RTScene
This class represents a scene of 3d objects. It gives access to all objects and lights in this scene. To receive an array of all scene shadeable objects or of all light use the methodes de.grogra.ray.Raytracer.getShadeables(RTScene scene) or de.grogra.ray.Raytracer.getLights(RTScene scene).
de.grogra.ray.Raytracer.getShadeables
,
de.grogra.ray.Raytracer.getLights
Method Summary | |
---|---|
java.lang.Object |
getGraph()
|
int |
getLightsCount()
Returns the number of light in this scene. |
int |
getShadeablesCount()
Returns the number of shadeable (visible) objects in the scene. |
int |
getStamp()
Returns a modification stamp for the scene graph. |
void |
traversSceneLights(RTSceneVisitor visitor)
Provides an access to all light objects in this scene. |
void |
traversSceneObjects(RTSceneVisitor visitor)
Provides an access to all objects in this scene. |
Method Detail |
---|
java.lang.Object getGraph()
int getLightsCount()
int getShadeablesCount()
int getStamp()
void traversSceneLights(RTSceneVisitor visitor)
visitor
- a visitor object that can perform a proccessing with
a concrete scene light.RTSceneVisitor
void traversSceneObjects(RTSceneVisitor visitor)
visitor
- a visitor object that can perform a proccessing with
a concrete scene object.RTSceneVisitor
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |