public abstract class SceneGraphObjectState
extends java.lang.Object
Constructor and Description |
---|
SceneGraphObjectState(SymbolTableData symbol,
Controller control)
Create a new State object
During Saveing
SymbolTableData will have the nodeID and j3dNode fields set
During loading
SymbolTableData be null, symbol will be created and added to the
symbol data during readObject()
|
Modifier and Type | Method and Description |
---|---|
void |
buildGraph()
Subclasses should processes their own buildGraph requirements BEFORE
calling super.buildGraph().
|
void |
cleanup() |
SceneGraphObject |
getNode() |
int |
getNodeID() |
SymbolTableData |
getSymbol() |
void |
readObject(java.io.DataInput in) |
void |
writeObject(java.io.DataOutput out)
DO NOT call symbolTable.addReference in writeObject as this (may)
result in a concurrentModificationException.
|
public SceneGraphObjectState(SymbolTableData symbol, Controller control)
public void writeObject(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void readObject(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public SceneGraphObject getNode()
public int getNodeID()
public SymbolTableData getSymbol()
public void buildGraph()
public void cleanup()