java.lang.Object
de.grogra.imp3d.ray.GroIMPSceneGraph
- All Implemented Interfaces:
RTScene
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGraph()intReturns the number of light in this scene.intReturns the number of shadeable (visible) objects in the scene.intgetStamp()Returns a modification stamp for the scene graph.voidtraversSceneLights(RTSceneVisitor visitor) Provides an access to all light objects in this scene.voidtraversSceneObjects(RTSceneVisitor visitor) Provides an access to all objects in this scene.
-
Constructor Details
-
GroIMPSceneGraph
-
-
Method Details
-
traversSceneObjects
Description copied from interface:RTSceneProvides an access to all objects in this scene. For each object the methode RTSceneVisitor.visitObject(RTObject object) is called.- Specified by:
traversSceneObjectsin interfaceRTScene- Parameters:
visitor- a visitor object that can perform a proccessing with a concrete scene object.- See Also:
-
traversSceneLights
Description copied from interface:RTSceneProvides an access to all light objects in this scene. For each light object the methode RTSceneVisitor.visitObject(RTObject object) is called.- Specified by:
traversSceneLightsin 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:RTSceneReturns the number of shadeable (visible) objects in the scene.- Specified by:
getShadeablesCountin interfaceRTScene- Returns:
- number of shadeable objects
-
getLightsCount
public int getLightsCount()Description copied from interface:RTSceneReturns the number of light in this scene.- Specified by:
getLightsCountin interfaceRTScene- Returns:
- number of scene lights
-
getStamp
public int getStamp()Description copied from interface:RTSceneReturns 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
-