public abstract class Controller extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static long |
BG_DIR_PTR |
protected static long |
BRANCH_GRAPH_COUNT |
protected ClassLoader |
classLoader
When running the application within webstart this may not be the
correct ClassLoader.
|
protected int |
currentFileVersion
The currentFileVersion being read
|
protected static long |
FILE_DESCRIPTION |
protected static long |
NAMES_OBJECTS_TABLE_PTR |
protected static long |
NODE_TYPES_PTR |
protected NullSceneGraphObjectState |
nullObject |
protected int |
outputFileVersion
The File version which will be written
1 = Java3D 1.3 beta 1
2 = Java3D 1.3 FCS, 1) fix to allow skipping user data written via
SceneGraphIO interface
2) Add missing duplicateOnCloneTree flag
(bug 4690159)
3 = Java3D 1.5.1 1) Add support for SceneGraphObject Name field
4 = Java3D 1.5.2 issue 532, for saving Background Geometry
5 = Java3D 1.5.2+ issue 654, for saving required SpotLight attributes
|
protected static long |
SYMBOL_TABLE_PTR |
protected SymbolTable |
symbolTable |
protected static long |
UNIVERSE_CONFIG_PTR |
| Constructor and Description |
|---|
Controller()
Creates new Controller
|
protected static final long SYMBOL_TABLE_PTR
protected static final long BG_DIR_PTR
protected static final long NAMES_OBJECTS_TABLE_PTR
protected static final long NODE_TYPES_PTR
protected static final long UNIVERSE_CONFIG_PTR
protected static final long BRANCH_GRAPH_COUNT
protected static final long FILE_DESCRIPTION
protected SymbolTable symbolTable
protected NullSceneGraphObjectState nullObject
protected int currentFileVersion
protected int outputFileVersion
protected ClassLoader classLoader
public final SymbolTable getSymbolTable()
public int getOutputFileVersion()
public int getCurrentFileVersion()
public SceneGraphObjectState createState(org.jogamp.java3d.SceneGraphObject obj)
public SceneGraphObjectState createState(org.jogamp.java3d.SceneGraphObject obj, SymbolTableData symbol)
public SceneGraphObjectState createState(SymbolTableData symbol)
public void writeObject(DataOutput out, SceneGraphObjectState obj) throws IOException
IOExceptionpublic SceneGraphObjectState readObject(DataInput in) throws IOException
IOExceptionpublic void setClassLoader(ClassLoader classLoader)
public ClassLoader getClassLoader()
protected void writeNodeComponents(DataOutput out) throws IOException
IOExceptionprotected void readNodeComponents(DataInput in) throws IOException
IOExceptionpublic void writeSharedGroup(DataOutput out, org.jogamp.java3d.SharedGroup sharedGroup, SymbolTableData symbol) throws IOException
IOExceptionpublic int readSharedGroup(DataInput in) throws IOException
IOExceptionpublic void writeUniverse(DataOutput out, SimpleUniverse universe, boolean writeUniverseContent) throws IOException, UnsupportedUniverseException, org.jogamp.java3d.CapabilityNotSetException
public ConfiguredUniverse readUniverse(DataInput in, boolean attachBranchGraphs, org.jogamp.java3d.Canvas3D canvas) throws IOException
attachBranchGraphs - If true then all the branchGraph attached to
the universe when it was saved will be loaded and reattached.IOExceptionprotected abstract void readBranchGraphs(int[] graphs)
throws IOException
IOExceptionpublic abstract void writeBranchGraph(org.jogamp.java3d.BranchGroup bg, Serializable userData) throws IOException
IOExceptionpublic void reset()
public Class getNodeClassFromID(int classID)
public int getNodeClassID(org.jogamp.java3d.SceneGraphObject node)
public void addNamedObject(String name, org.jogamp.java3d.SceneGraphObject object)
public org.jogamp.java3d.SceneGraphObject getNamedObject(String name) throws NamedObjectException, ObjectNotLoadedException
public String[] getNames()
public void writeSerializedData(DataOutput dataOutput, Serializable userData) throws IOException
IOExceptionpublic Object readSerializedData(DataInput dataInput) throws IOException
IOExceptionpublic void skipUserData(DataInput dataInput) throws IOException
IOExceptionpublic void writeColor3f(DataOutput out, org.jogamp.vecmath.Color3f color) throws IOException
IOExceptionpublic org.jogamp.vecmath.Color3f readColor3f(DataInput in) throws IOException
IOExceptionpublic void writeColor4f(DataOutput out, org.jogamp.vecmath.Color4f vec) throws IOException
IOExceptionpublic org.jogamp.vecmath.Color4f readColor4f(DataInput in) throws IOException
IOExceptionpublic void writePoint3f(DataOutput out, org.jogamp.vecmath.Point3f pt) throws IOException
IOExceptionpublic org.jogamp.vecmath.Point3f readPoint3f(DataInput in) throws IOException
IOExceptionpublic void writePoint3d(DataOutput out, org.jogamp.vecmath.Point3d pt) throws IOException
IOExceptionpublic org.jogamp.vecmath.Point3d readPoint3d(DataInput in) throws IOException
IOExceptionpublic void writeVector3f(DataOutput out, org.jogamp.vecmath.Vector3f vec) throws IOException
IOExceptionpublic org.jogamp.vecmath.Vector3f readVector3f(DataInput in) throws IOException
IOExceptionpublic void writeVector4d(DataOutput out, org.jogamp.vecmath.Vector4d vec) throws IOException
IOExceptionpublic org.jogamp.vecmath.Vector4d readVector4d(DataInput in) throws IOException
IOExceptionpublic void writeVector4f(DataOutput out, org.jogamp.vecmath.Vector4f vec) throws IOException
IOExceptionpublic org.jogamp.vecmath.Vector4f readVector4f(DataInput in) throws IOException
IOExceptionpublic void writeQuat4f(DataOutput out, org.jogamp.vecmath.Quat4f vec) throws IOException
IOExceptionpublic org.jogamp.vecmath.Quat4f readQuat4f(DataInput in) throws IOException
IOExceptionpublic void writeMatrix4d(DataOutput out, org.jogamp.vecmath.Matrix4d m) throws IOException
IOExceptionpublic org.jogamp.vecmath.Matrix4d readMatrix4d(DataInput in) throws IOException
IOExceptionpublic void writeTuple3f(DataOutput out, org.jogamp.vecmath.Tuple3f tuple) throws IOException
IOExceptionpublic org.jogamp.vecmath.Tuple3f readTuple3f(DataInput in, org.jogamp.vecmath.Tuple3f tuple) throws IOException
IOExceptionpublic void writeTuple3d(DataOutput out, org.jogamp.vecmath.Tuple3d tuple) throws IOException
IOExceptionpublic org.jogamp.vecmath.Tuple3d readTuple3d(DataInput in, org.jogamp.vecmath.Tuple3d tuple) throws IOException
IOExceptionpublic void writeTuple4d(DataOutput out, org.jogamp.vecmath.Tuple4d tuple) throws IOException
IOExceptionpublic org.jogamp.vecmath.Tuple4d readTuple4d(DataInput in, org.jogamp.vecmath.Tuple4d tuple) throws IOException
IOExceptionpublic void writeTuple4f(DataOutput out, org.jogamp.vecmath.Tuple4f tuple) throws IOException
IOExceptionpublic org.jogamp.vecmath.Tuple4f readTuple4f(DataInput in, org.jogamp.vecmath.Tuple4f tuple) throws IOException
IOExceptionpublic void writeTransform3D(DataOutput out, org.jogamp.java3d.Transform3D tran) throws IOException
IOExceptionpublic org.jogamp.java3d.Transform3D readTransform3D(DataInput in) throws IOException
IOExceptionpublic void writeBounds(DataOutput out, org.jogamp.java3d.Bounds bounds) throws IOException
IOExceptionpublic org.jogamp.java3d.Bounds readBounds(DataInput in) throws IOException
IOExceptionpublic abstract long getFilePointer()
public abstract void close()
throws IOException
IOExceptionpublic boolean useSuperClassIfNoChildClass()
public int getImageCompression()
Copyright © 2023. All rights reserved.