java.lang.Object
de.grogra.imp3d.ray.GroIMPSceneGraph
- All Implemented Interfaces:
RTScene
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGraph()
int
Returns the number of light in this scene.int
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.
-
Constructor Details
-
GroIMPSceneGraph
-
-
Method Details
-
traversSceneObjects
Description copied from interface:RTScene
Provides an access to all objects in this scene. For each object the methode RTSceneVisitor.visitObject(RTObject object) is called.- Specified by:
traversSceneObjects
in interfaceRTScene
- Parameters:
visitor
- a visitor object that can perform a proccessing with a concrete scene object.- See Also:
-
traversSceneLights
Description copied from interface:RTScene
Provides an access to all light objects in this scene. For each light object the methode RTSceneVisitor.visitObject(RTObject object) is called.- Specified by:
traversSceneLights
in interfaceRTScene
- Parameters:
visitor
- a visitor object that can perform a proccessing with a concrete scene light.- See Also:
-
getShadeablesCount
public int getShadeablesCount()Description copied from interface:RTScene
Returns the number of shadeable (visible) objects in the scene.- Specified by:
getShadeablesCount
in interfaceRTScene
- Returns:
- number of shadeable objects
-
getLightsCount
public int getLightsCount()Description copied from interface:RTScene
Returns the number of light in this scene.- Specified by:
getLightsCount
in interfaceRTScene
- Returns:
- number of scene lights
-
getStamp
public int getStamp()Description copied from interface:RTScene
Returns a modification stamp for the scene graph. Each modification increments the value, so that the test whether some modification occured can be simply performed on values of the stamp. -
getGraph
-