com.sun.j3d.utils.scenegraph.io.state.com.sun.j3d.utils.universe
Class SimpleUniverseState

java.lang.Object
  extended by com.sun.j3d.utils.scenegraph.io.state.com.sun.j3d.utils.universe.SimpleUniverseState

public class SimpleUniverseState
extends java.lang.Object


Constructor Summary
SimpleUniverseState(ConfiguredUniverse universe, Controller control)
          Creates new SimpleUniverseState for writing.
SimpleUniverseState(Controller control)
          Creates new SimpleUniverseState for reading.
SimpleUniverseState(SimpleUniverse universe, Controller control)
          Creates new SimpleUniverseState for writing.
 
Method Summary
 void attachAllGraphs()
          Reattach each BranchGraph to the Locale(s)
 void buildGraph()
          Called once IO is complete, attaches all the branchgroups to the locales
 void detachAllGraphs()
          Detach each BranchGraph from the Locale(s)
 int[] getAllGraphIDs()
          Return all the branchgraph id's for all Locales in the universe This call must be made after readObject()
 ConfiguredUniverse getNode()
          Return the 'node', ie the virtual universe.
 void readObject(java.io.DataInput in, Canvas3D canvas)
           
 void writeObject(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUniverseState

public SimpleUniverseState(ConfiguredUniverse universe,
                           Controller control)
Creates new SimpleUniverseState for writing.


SimpleUniverseState

public SimpleUniverseState(SimpleUniverse universe,
                           Controller control)
Creates new SimpleUniverseState for writing.


SimpleUniverseState

public SimpleUniverseState(Controller control)
Creates new SimpleUniverseState for reading.

Method Detail

writeObject

public void writeObject(java.io.DataOutput out)
                 throws java.io.IOException
Throws:
java.io.IOException

readObject

public void readObject(java.io.DataInput in,
                       Canvas3D canvas)
                throws java.io.IOException
Throws:
java.io.IOException

buildGraph

public void buildGraph()
Called once IO is complete, attaches all the branchgroups to the locales


getAllGraphIDs

public int[] getAllGraphIDs()
Return all the branchgraph id's for all Locales in the universe This call must be made after readObject()


detachAllGraphs

public void detachAllGraphs()
Detach each BranchGraph from the Locale(s)


attachAllGraphs

public void attachAllGraphs()
Reattach each BranchGraph to the Locale(s)


getNode

public ConfiguredUniverse getNode()
Return the 'node', ie the virtual universe. Returns null if currently writing a SimpleUniverse.