public class SimpleUniverseState
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Controller |
control |
private java.util.ArrayList |
localeBGs |
private PlatformGeometryState |
platformGeom |
private int |
totalBGs |
private SimpleUniverse |
universe |
private ViewerAvatarState |
viewerAvatar |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private HiResCoord |
readHiResCoord(java.io.DataInput in) |
private void |
readLocales(java.io.DataInput in) |
void |
readObject(java.io.DataInput in,
Canvas3D canvas) |
private void |
writeHiResCoord(java.io.DataOutput out,
HiResCoord hiRes) |
private void |
writeLocales(java.io.DataOutput out) |
void |
writeObject(java.io.DataOutput out) |
private SimpleUniverse universe
private Controller control
private java.util.ArrayList localeBGs
private int totalBGs
private PlatformGeometryState platformGeom
private ViewerAvatarState viewerAvatar
public SimpleUniverseState(ConfiguredUniverse universe, Controller control)
public SimpleUniverseState(SimpleUniverse universe, Controller control)
public SimpleUniverseState(Controller control)
public void writeObject(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readObject(java.io.DataInput in,
Canvas3D canvas)
throws java.io.IOException
java.io.IOExceptionprivate void writeLocales(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionprivate void readLocales(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic void buildGraph()
public int[] getAllGraphIDs()
public void detachAllGraphs()
public void attachAllGraphs()
public ConfiguredUniverse getNode()
private void writeHiResCoord(java.io.DataOutput out,
HiResCoord hiRes)
throws java.io.IOException
java.io.IOExceptionprivate HiResCoord readHiResCoord(java.io.DataInput in) throws java.io.IOException
java.io.IOExceptionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.