public class BoxState extends PrimitiveState
primflagsgroupChildrencontrol, node, nodeClassName, symbol| Constructor and Description |
|---|
BoxState(SymbolTableData symbol,
Controller control) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildGraph()
Subclasses should processes their own buildGraph requirements BEFORE
calling super.buildGraph().
|
protected SceneGraphObject |
createNode()
Create a new Java3D node for this object.
|
SceneGraphObject |
createNode(Class j3dClass)
Create a new Java3D node from the supplied class using the parameterless constructor
For Java3D nodes which do not have a default constructor you must
overload this method and create the object using createNode( className, parameters )
This will correctly handle subclasses of Java3D classes
|
void |
readConstructorParams(DataInput in)
Read the parameters required for the constructor of the Java3D object
|
void |
readObject(DataInput in) |
void |
writeConstructorParams(DataOutput out)
Write the parameters required for the constructor of the Java3D object
|
void |
writeObject(DataOutput out)
DO NOT call symbolTable.addReference in writeObject as this (may)
result in a concurrentModificationException.
|
processChildrencleanupcreateNode, createNode, createState, getNode, getNodeID, getSymbol, readString, writeStringpublic BoxState(SymbolTableData symbol, Controller control)
public void writeObject(DataOutput out) throws IOException
SceneGraphObjectStatewriteObject in class GroupStateIOExceptionpublic void readObject(DataInput in) throws IOException
readObject in class GroupStateIOExceptionpublic void writeConstructorParams(DataOutput out) throws IOException
SceneGraphObjectStatewriteConstructorParams in class PrimitiveStateIOExceptionpublic void readConstructorParams(DataInput in) throws IOException
SceneGraphObjectStatereadConstructorParams in class PrimitiveStateIOExceptionpublic void buildGraph()
SceneGraphObjectStatebuildGraph in class PrimitiveStatepublic SceneGraphObject createNode(Class j3dClass)
SceneGraphObjectStatecreateNode in class SceneGraphObjectStateprotected SceneGraphObject createNode()
SceneGraphObjectStatecreateNode in class GroupStateCopyright © 2016–2022 SciJava. All rights reserved.