syn3d.nodes.java3d
Class SwitchNodeJava3D

java.lang.Object
  extended by syn3d.base.ActiveNode
      extended by syn3d.nodes.GroupNode
          extended by syn3d.nodes.SwitchNode
              extended by syn3d.nodes.java3d.SwitchNodeJava3D
All Implemented Interfaces:
java.io.Serializable

public class SwitchNodeJava3D
extends SwitchNode
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class syn3d.nodes.SwitchNode
SwitchNode.Action
 
Field Summary
protected  Switch sw
           
 
Fields inherited from class syn3d.nodes.SwitchNode
anonymousNodeNumber, icon, status
 
Fields inherited from class syn3d.base.ActiveNode
children, name, parent
 
Constructor Summary
SwitchNodeJava3D(ActiveNode parent)
           
 
Method Summary
 java.lang.Object get3DObject()
          Returns the 3D object that this node refers to.
 void notifyInternalChange()
          Notify the system that this node has changed and the scene needs to be re-built
 void remove()
          Removes this node from the parent list.
 void restoreReferences(ActiveNode parent)
          Restore a serialized object to the scene graph.
 
Methods inherited from class syn3d.nodes.SwitchNode
addChild, doAction, getActions, getIcon, getStatus, removeChild, saveChildren, setStatus
 
Methods inherited from class syn3d.nodes.GroupNode
getScene
 
Methods inherited from class syn3d.base.ActiveNode
findDescendantOfType, findDescendantOfType, getChildren, getName, getParent, highlight, notifyStructuralChange, propagateAddChildEvent, propagateChangeNameEvent, propagateHighlightEvent, propagateInternalChangeEvent, propagateRemoveChildEvent, propagateStructuralChangeEvent, removeNodeTree, removeNodeTreeFrom, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sw

protected transient Switch sw
Constructor Detail

SwitchNodeJava3D

public SwitchNodeJava3D(ActiveNode parent)
Method Detail

remove

public void remove()
Description copied from class: ActiveNode
Removes this node from the parent list. Notifies the parents for structural change.

Overrides:
remove in class ActiveNode

get3DObject

public java.lang.Object get3DObject()
Description copied from class: ActiveNode
Returns the 3D object that this node refers to. The object may depend on the 3D model used (Xith3D, Java3D) This object was previously created in the plugin create method, or in the loadTo method during de-serialization.

Overrides:
get3DObject in class ActiveNode
Returns:
the Object used for the scene graph, which probably depends on the underlying 3D architecture. This can be used on a parent node in the plugin canCreate method to check for this architecture.

notifyInternalChange

public void notifyInternalChange()
Description copied from class: ActiveNode
Notify the system that this node has changed and the scene needs to be re-built

Overrides:
notifyInternalChange in class ActiveNode

restoreReferences

public void restoreReferences(ActiveNode parent)
Description copied from class: ActiveNode
Restore a serialized object to the scene graph. The scene is restored from root to leaf, hierachically. A node can count on its parent beeing successfully deserialized, and its precisely the added value of this method to indicate to this object the parent it should attach to. This node is responsible for re-creating its children if it returned true in the save operation. See description of the saveChildren method. This method is called after this node was successfully de-serialized, to give it an occasion to restore anything it may have to with its parent (listeners, etc...). As with the plugin interface methode create, this method should ensure that the 3D object this nodes refers to is added to its parent children list in the underlying 3D model (Java3D, Xith3D). Default behavior is to set this node's parent field to the given value, but an implementor SHALL do what's necessary for the underlying 3D scene graph.

Overrides:
restoreReferences in class SwitchNode
Parameters:
parent - The active node to attach this one to once it has been successfully de-serialized