Package com.ardor3d.scenegraph.event
Class SceneGraphManager
java.lang.Object
com.ardor3d.scenegraph.event.SceneGraphManager
- All Implemented Interfaces:
DirtyEventListener
SceneGraphManager is a convenience class for use when you want to have multiple listeners on a particular node.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirtyEventListener
(DirtyEventListener listener) static SceneGraphManager
void
listenOnSpatial
(Spatial spatial) void
removeDirtyEventListener
(DirtyEventListener listener) boolean
spatialClean
(Spatial spatial, DirtyType dirtyType) spatialClean is called when a spatial is changed in respect to transform, bounding, attach/dettach or renderstateboolean
spatialDirty
(Spatial spatial, DirtyType dirtyType) spatialDirty is called when a spatial is changed in respect to transform, bounding, attach/dettach or renderstate
-
Method Details
-
getSceneGraphManager
-
listenOnSpatial
-
addDirtyEventListener
-
removeDirtyEventListener
-
spatialDirty
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 interfaceDirtyEventListener
- Parameters:
spatial
- the spatialdirtyType
- the dirty type- Returns:
- true if the event should be consumed and not continue up the scenegraph.
-
spatialClean
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 interfaceDirtyEventListener
- Parameters:
spatial
- the spatialdirtyType
- the dirty type- Returns:
- true if the event should be consumed and not continue up the scenegraph.
-