Package org.web3d.browser
Interface NodeObserver
public interface NodeObserver
Interface for classes that wish to know about when nodes are added or
removed during the course of an event cycle, and work as a dynamic interface
with the event model.
A single observer instance may be registered for more than one node type ID.
- Version:
- $Revision: 1.1 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Force clearing all currently managed nodes from this observer now.void
nodesAdded
(int nodeType, VRMLNodeType[] nodes, int numNodes) Notification that nodes of the require type have been added.void
nodesRemoved
(int nodeType, VRMLNodeType[] nodes, int numNodes) Notification that nodes of the require type have been removed.void
shutdown()
Shutdown the node manager now.
-
Method Details
-
nodesAdded
Notification that nodes of the require type have been added. The node representations will either be the real node, or if the parent of a proto, the proto instance they came from.- Parameters:
nodeType
- The node type id that this notification refers tonodes
- The node instances that have just been added.numNodes
- size of nodes array
-
nodesRemoved
Notification that nodes of the require type have been removed. The node representations will either be the real node, or if the parent of a proto, the proto instance they came from.- Parameters:
nodeType
- The node type id that this notification refers tonodes
- The node instances that have just been removed.numNodes
- The number of node instances that have just been removed
-
clear
void clear()Force clearing all currently managed nodes from this observer now. This is used to indicate that a new world is about to be loaded and everything should be cleaned out now. -
shutdown
void shutdown()Shutdown the node manager now. If this is using any external resources it should remove those now as the entire application is about to die
-