|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyn3d.base.ActiveNode
syn3d.nodes.ShapeNode
syn3d.nodes.java3d.ShapeNodeJava3D
public class ShapeNodeJava3D
Base class for Java3D shapes. Make cube and sphere from this, useful for plugins too
Nested Class Summary | |
---|---|
protected class |
ShapeNodeJava3D.J3DPropertiesPanel
|
Nested classes/interfaces inherited from class syn3d.nodes.ShapeNode |
---|
ShapeNode.PropertiesPanel |
Field Summary | |
---|---|
protected float |
polygonOffset
|
protected float |
polygonOffsetFactor
|
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 |
Fields inherited from class syn3d.base.ActiveNode |
---|
children, name, parent |
Constructor Summary | |
---|---|
ShapeNodeJava3D(ActiveNode parent)
|
|
ShapeNodeJava3D(ActiveNode parent,
Shape3D shape3d)
|
Method Summary | |
---|---|
protected ShapeNode.PropertiesPanel |
createPanel(boolean showName)
Factory for subclasses |
protected Shape3D |
createShape()
Subclasses API when using the constructor without a shape specified |
java.lang.Object |
get3DObject()
Returns the 3D object that this node refers to. |
float |
getPolygonOffset()
|
float |
getPolygonOffsetFactor()
|
void |
highlight(boolean on,
java.lang.Object parameter)
Highlights this node some way. |
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. |
protected void |
setAppearanceForHighlight(boolean on)
|
void |
setPolygonOffset(float polygonOffset)
|
void |
setPolygonOffsetFactor(float polygonOffsetFactor)
|
protected PolygonAttributes |
unlockPolygonAttributes(PolygonAttributes pa)
|
Methods inherited from class syn3d.nodes.ShapeNode |
---|
configure, configure, doAction, duplicateProperties, getActions, getBaseColor, getHighlightColor, getIcon, getMode, notificationEnd, saveChildren, setBaseColor, setHighlightColor, setMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient Shape3D shape
protected float polygonOffset
protected float polygonOffsetFactor
Constructor Detail |
---|
public ShapeNodeJava3D(ActiveNode parent)
public ShapeNodeJava3D(ActiveNode parent, Shape3D shape3d)
Method Detail |
---|
protected Shape3D createShape()
public void remove()
ActiveNode
remove
in class ActiveNode
public java.lang.Object get3DObject()
ActiveNode
get3DObject
in class ActiveNode
protected void setAppearanceForHighlight(boolean on)
protected PolygonAttributes unlockPolygonAttributes(PolygonAttributes pa)
public void highlight(boolean on, java.lang.Object parameter)
ActiveNode
highlight
in class ShapeNode
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 Treeprotected ShapeNode.PropertiesPanel createPanel(boolean showName)
ShapeNode
createPanel
in class ShapeNode
public void notifyInternalChange()
ActiveNode
notifyInternalChange
in class ActiveNode
public float getPolygonOffset()
public void setPolygonOffset(float polygonOffset)
polygonOffset
- The polygonOffset to set.public float getPolygonOffsetFactor()
public void setPolygonOffsetFactor(float polygonOffsetFactor)
polygonOffsetFactor
- The polygonOffsetFactor to set.public void restoreReferences(ActiveNode parent)
ActiveNode
restoreReferences
in class ShapeNode
parent
- The active node to attach this one to once it has been successfully de-serialized
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |