com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d
Class SceneGraphObjectState
java.lang.Object
com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectState
- Direct Known Subclasses:
- BoundingLeafState, FogState, NodeComponentState, NodeState, NullSceneGraphObjectState
public abstract class SceneGraphObjectState
- extends java.lang.Object
Constructor Summary |
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() |
Method Summary |
void |
buildGraph()
Subclasses should processes their own buildGraph requirements BEFORE
calling super.buildGraph(). |
void |
cleanup()
|
javax.media.j3d.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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SceneGraphObjectState
public 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()
writeObject
public void writeObject(java.io.DataOutput out)
throws java.io.IOException
- DO NOT call symbolTable.addReference in writeObject as this (may)
result in a concurrentModificationException.
All references should be created in the constructor
- Throws:
java.io.IOException
readObject
public void readObject(java.io.DataInput in)
throws java.io.IOException
- Throws:
java.io.IOException
getNode
public javax.media.j3d.SceneGraphObject getNode()
getNodeID
public int getNodeID()
getSymbol
public SymbolTableData getSymbol()
buildGraph
public void buildGraph()
- Subclasses should processes their own buildGraph requirements BEFORE
calling super.buildGraph().
This ensures that when restoreSceneGraphObjectReferences is called in
user code our references have been resolved
cleanup
public void cleanup()