syn3d.nodes.xith3d
Class ShapeNodeXith3D
java.lang.Object
syn3d.base.ActiveNode
syn3d.nodes.ShapeNode
syn3d.nodes.xith3d.ShapeNodeXith3D
- All Implemented Interfaces:
- java.io.Serializable, EndNotificationListener
- Direct Known Subclasses:
- CubeNodeXith3D, SphereNodeXith3D
public class ShapeNodeXith3D
- extends ShapeNode
Base class for Xith3D shapes. Make cube and sphere from this, useful for plugins too
- See Also:
- Serialized Form
Field Summary |
protected Shape3D |
shape
|
Fields inherited from class syn3d.nodes.ShapeNode |
actions, baseColor, baseColorMapper, baseColorMapperSource, FILLED_MODE, FLAT_MODE, highlightColor, highlightColorMapper, highlightColorMapperSource, highlighted, icon, mode, SHADING_MODE, WIREFRAME_MODE |
Methods inherited from class syn3d.nodes.ShapeNode |
configure, configure, doAction, duplicateProperties, getActions, getBaseColor, getHighlightColor, getIcon, getMode, notificationEnd, restoreReferences, saveChildren, setBaseColor, setHighlightColor, setMode |
Methods inherited from class syn3d.base.ActiveNode |
addChild, findDescendantOfType, findDescendantOfType, getChildren, getName, getParent, notifyStructuralChange, propagateAddChildEvent, propagateChangeNameEvent, propagateHighlightEvent, propagateInternalChangeEvent, propagateRemoveChildEvent, propagateStructuralChangeEvent, removeChild, removeNodeTree, removeNodeTreeFrom, setParent, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
shape
protected Shape3D shape
ShapeNodeXith3D
public ShapeNodeXith3D(ActiveNode parent)
ShapeNodeXith3D
public ShapeNodeXith3D(ActiveNode parent,
Shape3D shape3d)
createShape
protected Shape3D createShape()
- Subclasses API when using the constructor without a shape specified
- Returns:
- a newly created Shape3D.
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
setName
public void setName(java.lang.String name)
- Overrides:
setName
in class ActiveNode
- Parameters:
name
- The name to set.
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.
setAppearanceForHighlight
protected void setAppearanceForHighlight(boolean on)
highlight
public void highlight(boolean on,
java.lang.Object parameter)
- Description copied from class:
ActiveNode
- Highlights this node some way. It's up to the underlying 3D model to decide what it means.
This is an optional operation.
Highlighting may occur when the user selects a node in the tree, for example, or when
picking an object on a scene view.
Note for subclasses : please call the super implementation for event propagation.
- Overrides:
highlight
in class ShapeNode
- Parameters:
on
- true indicates to highlight this node, false to revert it back to normalparameter
- A parameter set from the 3D underlying model in case of a picking operation,
or the node's 3D object in case of a user selection in the Scene Tree
createPanel
protected ShapeNode.PropertiesPanel createPanel(boolean showName)
- Description copied from class:
ShapeNode
- Factory for subclasses
- Overrides:
createPanel
in class ShapeNode
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