Module imp3d

Class GroIMPSceneGraph

java.lang.Object
de.grogra.imp3d.ray.GroIMPSceneGraph
All Implemented Interfaces:
RTScene

public class GroIMPSceneGraph extends Object implements RTScene
  • Constructor Details

    • GroIMPSceneGraph

      public GroIMPSceneGraph(Tree tree)
  • Method Details

    • traversSceneObjects

      public void traversSceneObjects(RTSceneVisitor visitor)
      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 interface RTScene
      Parameters:
      visitor - a visitor object that can perform a proccessing with a concrete scene object.
      See Also:
    • traversSceneLights

      public void traversSceneLights(RTSceneVisitor visitor)
      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 interface RTScene
      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 interface RTScene
      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 interface RTScene
      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.
      Specified by:
      getStamp in interface RTScene
      Returns:
      a stamp for the whole graph
    • getGraph

      public Object getGraph()
      Specified by:
      getGraph in interface RTScene