public class RandomAccessFileControl extends Controller
| Constructor and Description |
|---|
RandomAccessFileControl()
Creates new RandomAccessFileControl
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createFile(java.io.File file,
SimpleUniverse universe,
boolean writeUniverseContent,
java.lang.String description,
java.io.Serializable userData)
Create the file and write the inital header information
|
int |
getBranchGraphCount()
Return the number of branchgraphs in the file
|
int |
getBranchGraphPosition(BranchGroup graph)
Given a branchgraph, return the corresponding index of the graph
in the file.
|
long |
getFilePointer()
Get the current file 'pointer' location.
|
java.lang.Object |
getUserData() |
void |
loadNodeComponent(SymbolTableData symbol)
Used by SymbolTable to load a node component that is not in current
graph
|
void |
loadSharedGroup(SymbolTableData symbol)
Loads the specified SharedGroup
|
void |
openFile(java.io.File file)
Open the file for reading
|
BranchGroup[] |
readAllBranchGraphs()
Read and return all the graphs in the file
|
BranchGroup[] |
readBranchGraph(int graphID) |
java.lang.Object |
readBranchGraphUserData(int graphID) |
java.lang.String |
readFileDescription() |
ConfiguredUniverse |
readUniverse(boolean attachBranchGraphs,
Canvas3D canvas) |
void |
writeBranchGraph(BranchGroup bg,
java.io.Serializable userData) |
void |
writeObject(java.io.DataOutput out,
SceneGraphObjectState obj) |
addNamedObject, createState, createState, createState, getClassLoader, getCurrentFileVersion, getImageCompression, getNamedObject, getNames, getNodeClassFromID, getNodeClassID, getOutputFileVersion, getSymbolTable, readBounds, readColor3f, readColor4f, readMatrix4d, readObject, readPoint3d, readPoint3f, readQuat4f, readSerializedData, readSharedGroup, readTransform3D, readTuple3d, readTuple3f, readTuple4d, readTuple4f, readUniverse, readVector3f, readVector4d, readVector4f, reset, setClassLoader, skipUserData, useSuperClassIfNoChildClass, writeBounds, writeColor3f, writeColor4f, writeMatrix4d, writePoint3d, writePoint3f, writeQuat4f, writeSerializedData, writeSharedGroup, writeTransform3D, writeTuple3d, writeTuple3f, writeTuple4d, writeTuple4f, writeUniverse, writeVector3f, writeVector4d, writeVector4fpublic RandomAccessFileControl()
public void createFile(java.io.File file,
SimpleUniverse universe,
boolean writeUniverseContent,
java.lang.String description,
java.io.Serializable userData)
throws java.io.IOException,
UnsupportedUniverseException,
CapabilityNotSetException
java.io.IOExceptionUnsupportedUniverseExceptionCapabilityNotSetExceptionpublic void openFile(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic ConfiguredUniverse readUniverse(boolean attachBranchGraphs, Canvas3D canvas) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object getUserData()
public int getBranchGraphCount()
public void writeBranchGraph(BranchGroup bg, java.io.Serializable userData) throws java.io.IOException
writeBranchGraph in class Controllerjava.io.IOExceptionpublic BranchGroup[] readBranchGraph(int graphID) throws java.io.IOException
java.io.IOExceptionpublic BranchGroup[] readAllBranchGraphs() throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object readBranchGraphUserData(int graphID)
throws java.io.IOException
java.io.IOExceptionpublic void writeObject(java.io.DataOutput out,
SceneGraphObjectState obj)
throws java.io.IOException
writeObject in class Controllerjava.io.IOExceptionpublic java.lang.String readFileDescription()
throws java.io.IOException
java.io.IOExceptionpublic void loadNodeComponent(SymbolTableData symbol) throws java.io.IOException
java.io.IOExceptionpublic void loadSharedGroup(SymbolTableData symbol) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in class Controllerjava.io.IOExceptionpublic long getFilePointer()
ControllergetFilePointer in class Controllerpublic int getBranchGraphPosition(BranchGroup graph)