syn3d.nodes
Class PropertiesTransformGroupNode
java.lang.Object
syn3d.base.ActiveNode
syn3d.nodes.GroupNode
syn3d.nodes.TransformGroupNode
syn3d.nodes.PropertiesTransformGroupNode
- All Implemented Interfaces:
- java.io.Serializable, DirtyNode
public abstract class PropertiesTransformGroupNode
- extends TransformGroupNode
- implements java.io.Serializable
A multi stamped transform group node holds a tramsform and a several attributes related to the node
- Author:
- ogor
- See Also:
- Serialized Form
Method Summary |
void |
cleanup()
Tells this dirty node to cleanup, before rendering the scene
If the node is already clean, it should return immediately |
void |
doAction(java.lang.Object action)
When the user has selected an action in the list return by getActions(), this method is called. |
protected void |
initData()
|
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.base.ActiveNode |
addChild, findDescendantOfType, findDescendantOfType, get3DObject, 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 |
properties
protected PropertyData[] properties
colorMapperManager
protected PropertiesTransformGroupNode.ColorMapperManager colorMapperManager
PropertiesTransformGroupNode
public PropertiesTransformGroupNode(ActiveNode parent)
initData
protected void initData()
- Overrides:
initData
in class TransformGroupNode
cleanup
public void cleanup()
- Description copied from interface:
DirtyNode
- Tells this dirty node to cleanup, before rendering the scene
If the node is already clean, it should return immediately
- Specified by:
cleanup
in interface DirtyNode
- Overrides:
cleanup
in class TransformGroupNode
doAction
public void doAction(java.lang.Object action)
- Description copied from class:
ActiveNode
- When the user has selected an action in the list return by getActions(), this method is called.
The node should then do what it claims.
- Overrides:
doAction
in class TransformGroupNode
- Parameters:
action
- An action previously declared by the getActions method.
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
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