jsynoptic.plugins.java3d
Class AttachDetach

java.lang.Object
  extended by jsynoptic.plugins.java3d.AttachDetach

public class AttachDetach
extends java.lang.Object


Constructor Summary
AttachDetach(Node n)
           
 
Method Summary
 void attach()
          Allow the scene to be displayed by attaching the main branchgroup
 void attach(int key)
          Allow the scene to be displayed by attaching the main branchgroup
 void detach()
          Allow modifications to the scene by detaching the main branchgroup
 void detach(int key)
          Allow modifications to the scene by detaching the main branchgroup Attaching will be accepted only with the given key => this allows a code to detach once for all, and call functions that do attach/detach with other or no keys => the higher level detach/attach is the only one taken in account Tip: use Object.hashCode() to get a unique ID.
 Node getNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachDetach

public AttachDetach(Node n)
Method Detail

getNode

public Node getNode()

attach

public void attach()
Allow the scene to be displayed by attaching the main branchgroup


attach

public void attach(int key)
Allow the scene to be displayed by attaching the main branchgroup


detach

public void detach()
Allow modifications to the scene by detaching the main branchgroup


detach

public void detach(int key)
Allow modifications to the scene by detaching the main branchgroup Attaching will be accepted only with the given key => this allows a code to detach once for all, and call functions that do attach/detach with other or no keys => the higher level detach/attach is the only one taken in account Tip: use Object.hashCode() to get a unique ID. Note: key 0 is the default. Thus, a current detachKey != 0 prevents default attach/detach ops.