j3d.org Aviatrix3D

org.j3d.aviatrix3d
Interface NodeUpdateHandler

All Known Implementing Classes:
SingleThreadRenderManager

public interface NodeUpdateHandler

Abstract representation of a piece of code that wants to know about when a scene graph node is requiring an update.

Version:
$Revision: 1.6 $
Author:
Justin Couch

Method Summary
 void 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 isPickingPermitted()
          Check to see if picking is permitted currently.
 boolean isWritePermitted(java.lang.Object src)
          Check to see if writing to the node is permitted currently.
 void objectRemoved(DeletableSceneGraphObject obj)
          The object provided is no longer needed by its parent.
 

Method Detail

isWritePermitted

public boolean isWritePermitted(java.lang.Object src)
Check to see if writing to the node is permitted currently.

Parameters:
src - The object that is requesting the check
Returns:
true if the end user can write, false if not

isPickingPermitted

public boolean isPickingPermitted()
Check to see if picking is permitted currently.

Returns:
true if the end user can pick, false if not

boundsChanged

public void 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.

Parameters:
l - The change requestor
src - The object that is passing this listener through.
intL - Internal listener for making callbacks at a later time to propogate the bounds changes.

dataChanged

public 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.

Parameters:
l - The change requestor
src - The object that is passing this listener through.

objectRemoved

public void objectRemoved(DeletableSceneGraphObject obj)
The object provided is no longer needed by its parent. Put this on a queue for objects that could potentially be deleted next frame. Used for any scene graph object type that must be explicitly cleaned up during the OpenGL render cycle, such as textures and pBuffers.

Parameters:
obj - The object that is registering itself for deletion

getPickHandler

public PickingHandler getPickHandler()
Get the picking handler so that we can do some picking operations.

Returns:
the current instance of the picking system

j3d.org Aviatrix3D

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - j3d.org