syn3d.nodes.java3d
Class TransformGroupNodeJava3D

java.lang.Object
  extended by syn3d.base.ActiveNode
      extended by syn3d.nodes.GroupNode
          extended by syn3d.nodes.TransformGroupNode
              extended by syn3d.nodes.java3d.TransformGroupNodeJava3D
All Implemented Interfaces:
java.io.Serializable, DirtyNode

public class TransformGroupNodeJava3D
extends TransformGroupNode
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  TransformGroup transformGroup
           
 
Fields inherited from class syn3d.nodes.TransformGroupNode
actions, anonymousNodeNumber, data, icon, universe
 
Fields inherited from class syn3d.base.ActiveNode
children, name, parent
 
Constructor Summary
TransformGroupNodeJava3D(ActiveNode parent)
           
 
Method Summary
 java.lang.Object get3DObject()
          Returns the 3D object that this node refers to.
 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.TransformGroupNode
cleanup, doAction, getActions, getIcon, initData, saveChildren, setDirty
 
Methods inherited from class syn3d.nodes.GroupNode
getScene
 
Methods inherited from class syn3d.base.ActiveNode
addChild, findDescendantOfType, findDescendantOfType, getChildren, getName, getParent, highlight, notifyInternalChange, notifyStructuralChange, propagateAddChildEvent, propagateChangeNameEvent, propagateHighlightEvent, propagateInternalChangeEvent, propagateRemoveChildEvent, propagateStructuralChangeEvent, removeChild, removeNodeTree, removeNodeTreeFrom, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transformGroup

protected transient TransformGroup transformGroup
Constructor Detail

TransformGroupNodeJava3D

public TransformGroupNodeJava3D(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 TransformGroupNode

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.

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 TransformGroupNode
Parameters:
parent - The active node to attach this one to once it has been successfully de-serialized