|
Aviatrix3D 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract representation of a piece of code that wants to manage the node update process internally to the scene graph.
This interface is never directly called by user-land code. It's used to abstract the process of maintaining a node as part of the scene graph, and the implementation of the management system behind it. The management system is responsible for coordinating and marshalling the user code into correct timing for feeding directly to the rendering pipeline and beyond. As such, it is responsible for preventing user updates at inappropriate times, and also keeping track of what has been requested to update.
Methods here provide both timing information, and ways of registering objects for further processing. When a node implementation needs to know if it is acceptable to make or allow certain changes, then these methods can be queried to provide the appropriate guidance.
Method Summary | |
boolean |
boundsChanged(NodeUpdateListener l,
java.lang.Object src,
InternalNodeUpdateListener intL)
Notify the handler that you have updates to the SG that might alter a node's bounds. |
void |
dataChanged(NodeUpdateListener l,
java.lang.Object src)
Notify the handler that you have updates to the SG that will not alter a node's bounds. |
PickingHandler |
getPickHandler()
Get the picking handler so that we can do some picking operations. |
boolean |
isBoundsWritePermitted(java.lang.Object src)
Check to see if writing to the bounding information of the node is permitted currently. |
boolean |
isDataWritePermitted(java.lang.Object src)
Check to see if writing to the data information of the node is permitted currently. |
boolean |
isPickingPermitted()
Check to see if picking is permitted currently. |
void |
objectRemoved(DeletableSceneGraphObject obj)
The object provided is no longer needed by its parent. |
void |
shaderRequiresInit(ShaderSceneGraphObject shader,
boolean updateResponse)
The shader object passed requires an initialisation be performed. |
void |
shaderRequiresLogInfo(ShaderSceneGraphObject shader,
boolean updateResponse)
The shader object passed requires updating the log info. |
Method Detail |
public boolean isBoundsWritePermitted(java.lang.Object src)
src
- The object that is requesting the check
public boolean isDataWritePermitted(java.lang.Object src)
src
- The object that is requesting the check
public boolean isPickingPermitted()
public boolean boundsChanged(NodeUpdateListener l, java.lang.Object src, InternalNodeUpdateListener intL) throws InvalidListenerSetTimingException
l
- The change requestorsrc
- The object that is passing this listener through.intL
- Internal listener for making callbacks at a later time
to propogate the bounds changes.
InvalidListenerSetTimingException
- If called when the node called
during one of the bounds/data changed callbackspublic void dataChanged(NodeUpdateListener l, java.lang.Object src) throws InvalidListenerSetTimingException
l
- The change requestorsrc
- The object that is passing this listener through.
InvalidListenerSetTimingException
- If called when the node called
during one of the bounds/data changed callbackspublic void objectRemoved(DeletableSceneGraphObject obj)
obj
- The object that is registering itself for deletionpublic PickingHandler getPickHandler()
public void shaderRequiresInit(ShaderSceneGraphObject shader, boolean updateResponse)
shader
- The shader instance to queueupdateResponse
- true if this is being made as a response to a node's
setUpdateHandler() methodpublic void shaderRequiresLogInfo(ShaderSceneGraphObject shader, boolean updateResponse)
shader
- The shader instance to queueupdateResponse
- true if this is being made as a response to a node's
setUpdateHandler() method
|
Aviatrix3D 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |