public class SphereState extends PrimitiveState
Constructor and Description |
---|
SphereState(SymbolTableData symbol,
Controller control) |
Modifier and Type | Method and Description |
---|---|
void |
buildGraph()
Subclasses should processes their own buildGraph requirements BEFORE
calling super.buildGraph().
|
SceneGraphObject |
createNode(java.lang.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(java.io.DataInput in)
Read the parameters required for the constructor of the Java3D object
|
void |
readObject(java.io.DataInput in) |
void |
writeConstructorParams(java.io.DataOutput out)
Write the parameters required for the constructor of the Java3D object
|
void |
writeObject(java.io.DataOutput out)
DO NOT call symbolTable.addReference in writeObject as this (may)
result in a concurrentModificationException.
|
cleanup
getNode, getNodeID, getSymbol
public SphereState(SymbolTableData symbol, Controller control)
public void writeObject(java.io.DataOutput out) throws java.io.IOException
SceneGraphObjectState
writeObject
in class GroupState
java.io.IOException
public void readObject(java.io.DataInput in) throws java.io.IOException
readObject
in class GroupState
java.io.IOException
public void writeConstructorParams(java.io.DataOutput out) throws java.io.IOException
SceneGraphObjectState
writeConstructorParams
in class PrimitiveState
java.io.IOException
public void readConstructorParams(java.io.DataInput in) throws java.io.IOException
SceneGraphObjectState
readConstructorParams
in class PrimitiveState
java.io.IOException
public void buildGraph()
SceneGraphObjectState
buildGraph
in class PrimitiveState
public SceneGraphObject createNode(java.lang.Class j3dClass)
SceneGraphObjectState