|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.scenegraph.io.retained.Controller
public abstract class Controller
Provides code to control the reading and writing of Java3D objects to and from any Java IO mechanism.
Constructor Summary | |
---|---|
Controller()
Creates new Controller |
Method Summary | |
---|---|
void |
addNamedObject(java.lang.String name,
javax.media.j3d.SceneGraphObject object)
Associate the name with the scene graph object |
abstract void |
close()
|
SceneGraphObjectState |
createState(javax.media.j3d.SceneGraphObject obj)
Create a new state object and check for a pre-existing symbol table entry |
SceneGraphObjectState |
createState(javax.media.j3d.SceneGraphObject obj,
SymbolTableData symbol)
Given a scene graph object instantiate the correct State class for that object. |
SceneGraphObjectState |
createState(SymbolTableData symbol)
Return the state class for the SceneGraphObject, creating one if it does not already exist |
java.lang.ClassLoader |
getClassLoader()
Get the class loader used to load the Scene Graph Objects and the serialized user data. |
int |
getCurrentFileVersion()
Get the file version of the file we are reading |
abstract long |
getFilePointer()
Get the current file 'pointer' location. |
int |
getImageCompression()
Returns the imageCompression to be used IMAGE_COMPRESSION_NONE, IMAGE_COMPRESSION_GZIP, IMAGE_COMPRESSION_JPEG |
javax.media.j3d.SceneGraphObject |
getNamedObject(java.lang.String name)
Return the SceneGraphObject associated with the name |
java.lang.String[] |
getNames()
Get all the names of the named objects |
java.lang.Class |
getNodeClassFromID(int classID)
|
int |
getNodeClassID(javax.media.j3d.SceneGraphObject node)
|
int |
getOutputFileVersion()
Get the file version that we should write |
SymbolTable |
getSymbolTable()
|
javax.media.j3d.Bounds |
readBounds(java.io.DataInput in)
|
javax.vecmath.Color3f |
readColor3f(java.io.DataInput in)
|
javax.vecmath.Color4f |
readColor4f(java.io.DataInput in)
|
javax.vecmath.Matrix4d |
readMatrix4d(java.io.DataInput in)
|
SceneGraphObjectState |
readObject(java.io.DataInput in)
|
javax.vecmath.Point3d |
readPoint3d(java.io.DataInput in)
|
javax.vecmath.Point3f |
readPoint3f(java.io.DataInput in)
|
javax.vecmath.Quat4f |
readQuat4f(java.io.DataInput in)
|
java.lang.Object |
readSerializedData(java.io.DataInput dataInput)
|
int |
readSharedGroup(java.io.DataInput in)
Read a Shared group and it's node components from the IO Stream |
javax.media.j3d.Transform3D |
readTransform3D(java.io.DataInput in)
|
javax.vecmath.Tuple3d |
readTuple3d(java.io.DataInput in,
javax.vecmath.Tuple3d tuple)
|
javax.vecmath.Tuple3f |
readTuple3f(java.io.DataInput in,
javax.vecmath.Tuple3f tuple)
|
javax.vecmath.Tuple4d |
readTuple4d(java.io.DataInput in,
javax.vecmath.Tuple4d tuple)
|
javax.vecmath.Tuple4f |
readTuple4f(java.io.DataInput in,
javax.vecmath.Tuple4f tuple)
|
ConfiguredUniverse |
readUniverse(java.io.DataInput in,
boolean attachBranchGraphs,
javax.media.j3d.Canvas3D canvas)
Read and create a new Universe matching the one used during save. |
javax.vecmath.Vector3f |
readVector3f(java.io.DataInput in)
|
javax.vecmath.Vector4d |
readVector4d(java.io.DataInput in)
|
javax.vecmath.Vector4f |
readVector4f(java.io.DataInput in)
|
void |
reset()
Reset the controller, ready to load/save data to a new file |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Set the class loader used to load the Scene Graph Objects and the serialized user data. |
void |
skipUserData(java.io.DataInput dataInput)
Skip past the user data object |
boolean |
useSuperClassIfNoChildClass()
Indicates to SceneGraphObjectState that it should use the Java3D core superclass for any tree nodes whose classes are not in the classpath during a load. |
void |
writeBounds(java.io.DataOutput out,
javax.media.j3d.Bounds bounds)
|
abstract void |
writeBranchGraph(javax.media.j3d.BranchGroup bg,
java.io.Serializable userData)
|
void |
writeColor3f(java.io.DataOutput out,
javax.vecmath.Color3f color)
|
void |
writeColor4f(java.io.DataOutput out,
javax.vecmath.Color4f vec)
|
void |
writeMatrix4d(java.io.DataOutput out,
javax.vecmath.Matrix4d m)
|
void |
writeObject(java.io.DataOutput out,
SceneGraphObjectState obj)
|
void |
writePoint3d(java.io.DataOutput out,
javax.vecmath.Point3d pt)
|
void |
writePoint3f(java.io.DataOutput out,
javax.vecmath.Point3f pt)
|
void |
writeQuat4f(java.io.DataOutput out,
javax.vecmath.Quat4f vec)
|
void |
writeSerializedData(java.io.DataOutput dataOutput,
java.io.Serializable userData)
Write a serializable object to the current file position, proceeded by the size of the object |
void |
writeSharedGroup(java.io.DataOutput out,
javax.media.j3d.SharedGroup sharedGroup,
SymbolTableData symbol)
Write the shared group and it's node components to the IO stream |
void |
writeTransform3D(java.io.DataOutput out,
javax.media.j3d.Transform3D tran)
|
void |
writeTuple3d(java.io.DataOutput out,
javax.vecmath.Tuple3d tuple)
|
void |
writeTuple3f(java.io.DataOutput out,
javax.vecmath.Tuple3f tuple)
|
void |
writeTuple4d(java.io.DataOutput out,
javax.vecmath.Tuple4d tuple)
|
void |
writeTuple4f(java.io.DataOutput out,
javax.vecmath.Tuple4f tuple)
|
void |
writeUniverse(java.io.DataOutput out,
SimpleUniverse universe,
boolean writeUniverseContent)
Write out the Universe information. |
void |
writeVector3f(java.io.DataOutput out,
javax.vecmath.Vector3f vec)
|
void |
writeVector4d(java.io.DataOutput out,
javax.vecmath.Vector4d vec)
|
void |
writeVector4f(java.io.DataOutput out,
javax.vecmath.Vector4f vec)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Controller()
Method Detail |
---|
public final SymbolTable getSymbolTable()
public int getOutputFileVersion()
public int getCurrentFileVersion()
public SceneGraphObjectState createState(javax.media.j3d.SceneGraphObject obj)
public SceneGraphObjectState createState(javax.media.j3d.SceneGraphObject obj, SymbolTableData symbol)
public SceneGraphObjectState createState(SymbolTableData symbol)
public void writeObject(java.io.DataOutput out, SceneGraphObjectState obj) throws java.io.IOException
java.io.IOException
public SceneGraphObjectState readObject(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void setClassLoader(java.lang.ClassLoader classLoader)
public java.lang.ClassLoader getClassLoader()
public void writeSharedGroup(java.io.DataOutput out, javax.media.j3d.SharedGroup sharedGroup, SymbolTableData symbol) throws java.io.IOException
java.io.IOException
public int readSharedGroup(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeUniverse(java.io.DataOutput out, SimpleUniverse universe, boolean writeUniverseContent) throws java.io.IOException, UnsupportedUniverseException, javax.media.j3d.CapabilityNotSetException
java.io.IOException
UnsupportedUniverseException
javax.media.j3d.CapabilityNotSetException
public ConfiguredUniverse readUniverse(java.io.DataInput in, boolean attachBranchGraphs, javax.media.j3d.Canvas3D canvas) throws java.io.IOException
attachBranchGraphs
- If true then all the branchGraph attached to
the universe when it was saved will be loaded and reattached.
java.io.IOException
public abstract void writeBranchGraph(javax.media.j3d.BranchGroup bg, java.io.Serializable userData) throws java.io.IOException
java.io.IOException
public void reset()
public java.lang.Class getNodeClassFromID(int classID)
public int getNodeClassID(javax.media.j3d.SceneGraphObject node)
public void addNamedObject(java.lang.String name, javax.media.j3d.SceneGraphObject object)
public javax.media.j3d.SceneGraphObject getNamedObject(java.lang.String name) throws NamedObjectException, ObjectNotLoadedException
NamedObjectException
ObjectNotLoadedException
public java.lang.String[] getNames()
public void writeSerializedData(java.io.DataOutput dataOutput, java.io.Serializable userData) throws java.io.IOException
java.io.IOException
public java.lang.Object readSerializedData(java.io.DataInput dataInput) throws java.io.IOException
java.io.IOException
public void skipUserData(java.io.DataInput dataInput) throws java.io.IOException
java.io.IOException
public void writeColor3f(java.io.DataOutput out, javax.vecmath.Color3f color) throws java.io.IOException
java.io.IOException
public javax.vecmath.Color3f readColor3f(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeColor4f(java.io.DataOutput out, javax.vecmath.Color4f vec) throws java.io.IOException
java.io.IOException
public javax.vecmath.Color4f readColor4f(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writePoint3f(java.io.DataOutput out, javax.vecmath.Point3f pt) throws java.io.IOException
java.io.IOException
public javax.vecmath.Point3f readPoint3f(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writePoint3d(java.io.DataOutput out, javax.vecmath.Point3d pt) throws java.io.IOException
java.io.IOException
public javax.vecmath.Point3d readPoint3d(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeVector3f(java.io.DataOutput out, javax.vecmath.Vector3f vec) throws java.io.IOException
java.io.IOException
public javax.vecmath.Vector3f readVector3f(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeVector4d(java.io.DataOutput out, javax.vecmath.Vector4d vec) throws java.io.IOException
java.io.IOException
public javax.vecmath.Vector4d readVector4d(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeVector4f(java.io.DataOutput out, javax.vecmath.Vector4f vec) throws java.io.IOException
java.io.IOException
public javax.vecmath.Vector4f readVector4f(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeQuat4f(java.io.DataOutput out, javax.vecmath.Quat4f vec) throws java.io.IOException
java.io.IOException
public javax.vecmath.Quat4f readQuat4f(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeMatrix4d(java.io.DataOutput out, javax.vecmath.Matrix4d m) throws java.io.IOException
java.io.IOException
public javax.vecmath.Matrix4d readMatrix4d(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeTuple3f(java.io.DataOutput out, javax.vecmath.Tuple3f tuple) throws java.io.IOException
java.io.IOException
public javax.vecmath.Tuple3f readTuple3f(java.io.DataInput in, javax.vecmath.Tuple3f tuple) throws java.io.IOException
java.io.IOException
public void writeTuple3d(java.io.DataOutput out, javax.vecmath.Tuple3d tuple) throws java.io.IOException
java.io.IOException
public javax.vecmath.Tuple3d readTuple3d(java.io.DataInput in, javax.vecmath.Tuple3d tuple) throws java.io.IOException
java.io.IOException
public void writeTuple4d(java.io.DataOutput out, javax.vecmath.Tuple4d tuple) throws java.io.IOException
java.io.IOException
public javax.vecmath.Tuple4d readTuple4d(java.io.DataInput in, javax.vecmath.Tuple4d tuple) throws java.io.IOException
java.io.IOException
public void writeTuple4f(java.io.DataOutput out, javax.vecmath.Tuple4f tuple) throws java.io.IOException
java.io.IOException
public javax.vecmath.Tuple4f readTuple4f(java.io.DataInput in, javax.vecmath.Tuple4f tuple) throws java.io.IOException
java.io.IOException
public void writeTransform3D(java.io.DataOutput out, javax.media.j3d.Transform3D tran) throws java.io.IOException
java.io.IOException
public javax.media.j3d.Transform3D readTransform3D(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void writeBounds(java.io.DataOutput out, javax.media.j3d.Bounds bounds) throws java.io.IOException
java.io.IOException
public javax.media.j3d.Bounds readBounds(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public abstract long getFilePointer()
public abstract void close() throws java.io.IOException
java.io.IOException
public boolean useSuperClassIfNoChildClass()
public int getImageCompression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |