Class SceneGraphManager

java.lang.Object
com.ardor3d.scenegraph.event.SceneGraphManager
All Implemented Interfaces:
DirtyEventListener

public class SceneGraphManager extends Object implements DirtyEventListener
SceneGraphManager is a convenience class for use when you want to have multiple listeners on a particular node.
  • Method Details

    • getSceneGraphManager

      public static SceneGraphManager getSceneGraphManager()
    • listenOnSpatial

      public void listenOnSpatial(Spatial spatial)
    • addDirtyEventListener

      public void addDirtyEventListener(DirtyEventListener listener)
    • removeDirtyEventListener

      public void removeDirtyEventListener(DirtyEventListener listener)
    • spatialDirty

      public boolean spatialDirty(Spatial spatial, DirtyType dirtyType)
      Description copied from interface: DirtyEventListener
      spatialDirty is called when a spatial is changed in respect to transform, bounding, attach/dettach or renderstate
      Specified by:
      spatialDirty in interface DirtyEventListener
      Parameters:
      spatial - the spatial
      dirtyType - the dirty type
      Returns:
      true if the event should be consumed and not continue up the scenegraph.
    • spatialClean

      public boolean spatialClean(Spatial spatial, DirtyType dirtyType)
      Description copied from interface: DirtyEventListener
      spatialClean is called when a spatial is changed in respect to transform, bounding, attach/dettach or renderstate
      Specified by:
      spatialClean in interface DirtyEventListener
      Parameters:
      spatial - the spatial
      dirtyType - the dirty type
      Returns:
      true if the event should be consumed and not continue up the scenegraph.