Java Doc for Controller.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » scenegraph » io » retained » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » com.sun.j3d.utils.scenegraph.io.retained 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.scenegraph.io.retained.Controller

All known Subclasses:   com.sun.j3d.utils.scenegraph.io.retained.RandomAccessFileControl,  com.sun.j3d.utils.scenegraph.io.retained.StreamControl,
Controller
abstract public class Controller extends java.lang.Object (Code)
Provides code to control the reading and writing of Java3D objects to and from any Java IO mechanism.

Inner Class :class J3dIOObjectInputStream extends ObjectInputStream

Field Summary
final protected static  longBG_DIR_PTR
    
final protected static  longBRANCH_GRAPH_COUNT
    
final protected static  longFILE_DESCRIPTION
    
final protected static  longNAMES_OBJECTS_TABLE_PTR
    
final protected static  longNODE_TYPES_PTR
    
final protected static  longSYMBOL_TABLE_PTR
    
final protected static  longUNIVERSE_CONFIG_PTR
    
protected  ClassLoaderclassLoader
     When running the application within webstart this may not be the correct ClassLoader.
protected  intcurrentFileVersion
    
 Class[]j3dClasses
    
protected  NullSceneGraphObjectStatenullObject
    
protected  intoutputFileVersion
    
protected  SymbolTablesymbolTable
    

Constructor Summary
public  Controller()
    

Method Summary
public  voidaddNamedObject(String name, SceneGraphObject object)
    
abstract public  voidclose()
    
public  SceneGraphObjectStatecreateState(SceneGraphObject obj)
    
public  SceneGraphObjectStatecreateState(SceneGraphObject obj, SymbolTableData symbol)
     Given a scene graph object instantiate the correct State class for that object.
public  SceneGraphObjectStatecreateState(SymbolTableData symbol)
    
public  ClassLoadergetClassLoader()
     Get the class loader used to load the Scene Graph Objects and the serialized user data.
public  intgetCurrentFileVersion()
    
abstract public  longgetFilePointer()
     Get the current file 'pointer' location.
public  intgetImageCompression()
    
public  SceneGraphObjectgetNamedObject(String name)
    
public  String[]getNames()
    
public  ClassgetNodeClassFromID(int classID)
    
public  intgetNodeClassID(javax.media.j3d.SceneGraphObject node)
    
public  intgetOutputFileVersion()
    
final public  SymbolTablegetSymbolTable()
    
public  BoundsreadBounds(DataInput in)
    
abstract protected  voidreadBranchGraphs(int[] graphs)
     Read the set of branchgraps.
public  Color3freadColor3f(DataInput in)
    
public  Color4freadColor4f(DataInput in)
    
public  Matrix4dreadMatrix4d(DataInput in)
    
protected  voidreadNodeComponents(DataInput in)
    
public  SceneGraphObjectStatereadObject(DataInput in)
    
public  Point3dreadPoint3d(DataInput in)
    
public  Point3freadPoint3f(DataInput in)
    
public  Quat4freadQuat4f(DataInput in)
    
public  ObjectreadSerializedData(DataInput dataInput)
    
public  intreadSharedGroup(DataInput in)
    
public  Transform3DreadTransform3D(DataInput in)
    
public  Tuple3dreadTuple3d(DataInput in, Tuple3d tuple)
    
public  Tuple3freadTuple3f(DataInput in, Tuple3f tuple)
    
public  Tuple4dreadTuple4d(DataInput in, Tuple4d tuple)
    
public  Tuple4freadTuple4f(DataInput in, Tuple4f tuple)
    
public  ConfiguredUniversereadUniverse(DataInput in, boolean attachBranchGraphs, Canvas3D canvas)
     Read and create a new Universe matching the one used during save.
public  Vector3freadVector3f(DataInput in)
    
public  Vector4dreadVector4d(DataInput in)
    
public  Vector4freadVector4f(DataInput in)
    
public  voidreset()
    
public  voidsetClassLoader(ClassLoader classLoader)
     Set the class loader used to load the Scene Graph Objects and the serialized user data.
public  voidskipUserData(DataInput dataInput)
    
public  booleanuseSuperClassIfNoChildClass()
     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.
public  voidwriteBounds(DataOutput out, Bounds bounds)
    
abstract public  voidwriteBranchGraph(BranchGroup bg, java.io.Serializable userData)
    
public  voidwriteColor3f(DataOutput out, Color3f color)
    
public  voidwriteColor4f(DataOutput out, Color4f vec)
    
public  voidwriteMatrix4d(DataOutput out, Matrix4d m)
    
protected  voidwriteNodeComponents(DataOutput out)
     Write all the unsaved NodeComponents and SharedGroups to DataOutput.
public  voidwriteObject(DataOutput out, SceneGraphObjectState obj)
    
public  voidwritePoint3d(DataOutput out, Point3d pt)
    
public  voidwritePoint3f(DataOutput out, Point3f pt)
    
public  voidwriteQuat4f(DataOutput out, Quat4f vec)
    
public  voidwriteSerializedData(DataOutput dataOutput, java.io.Serializable userData)
    
public  voidwriteSharedGroup(DataOutput out, SharedGroup sharedGroup, SymbolTableData symbol)
    
public  voidwriteTransform3D(DataOutput out, Transform3D tran)
    
public  voidwriteTuple3d(DataOutput out, Tuple3d tuple)
    
public  voidwriteTuple3f(DataOutput out, Tuple3f tuple)
    
public  voidwriteTuple4d(DataOutput out, Tuple4d tuple)
    
public  voidwriteTuple4f(DataOutput out, Tuple4f tuple)
    
public  voidwriteUniverse(DataOutput out, SimpleUniverse universe, boolean writeUniverseContent)
     Write out the Universe information.
public  voidwriteVector3f(DataOutput out, Vector3f vec)
    
public  voidwriteVector4d(DataOutput out, Vector4d vec)
    
public  voidwriteVector4f(DataOutput out, Vector4f vec)
    

Field Detail
BG_DIR_PTR
final protected static long BG_DIR_PTR(Code)



BRANCH_GRAPH_COUNT
final protected static long BRANCH_GRAPH_COUNT(Code)



FILE_DESCRIPTION
final protected static long FILE_DESCRIPTION(Code)



NAMES_OBJECTS_TABLE_PTR
final protected static long NAMES_OBJECTS_TABLE_PTR(Code)



NODE_TYPES_PTR
final protected static long NODE_TYPES_PTR(Code)



SYMBOL_TABLE_PTR
final protected static long SYMBOL_TABLE_PTR(Code)



UNIVERSE_CONFIG_PTR
final protected static long UNIVERSE_CONFIG_PTR(Code)



classLoader
protected ClassLoader classLoader(Code)
When running the application within webstart this may not be the correct ClassLoader. If Java 3D is not installed in the local vm and is instead installed by webstart then this definitely is NOT the correct classloader, in this case Thread.getCurrent().getClass().getClassLoader() would probably be a good default. The user can also set their preferred classloader by calling setClassLoader in SceneGraph[Stream|File]Reader.



currentFileVersion
protected int currentFileVersion(Code)
The currentFileVersion being read



j3dClasses
Class[] j3dClasses(Code)



nullObject
protected NullSceneGraphObjectState nullObject(Code)



outputFileVersion
protected int outputFileVersion(Code)
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



symbolTable
protected SymbolTable symbolTable(Code)




Constructor Detail
Controller
public Controller()(Code)
Creates new Controller




Method Detail
addNamedObject
public void addNamedObject(String name, SceneGraphObject object)(Code)
Associate the name with the scene graph object



close
abstract public void close() throws IOException(Code)



createState
public SceneGraphObjectState createState(SceneGraphObject obj)(Code)
Create a new state object and check for a pre-existing symbol table entry



createState
public SceneGraphObjectState createState(SceneGraphObject obj, SymbolTableData symbol)(Code)
Given a scene graph object instantiate the correct State class for that object. If the symbol already exists (is not null) then increment the reference count, otherwise create a new symbol.



createState
public SceneGraphObjectState createState(SymbolTableData symbol)(Code)
Return the state class for the SceneGraphObject, creating one if it does not already exist



getClassLoader
public ClassLoader getClassLoader()(Code)
Get the class loader used to load the Scene Graph Objects and the serialized user data. The default is ClassLoader.getSystemClassLoader()



getCurrentFileVersion
public int getCurrentFileVersion()(Code)
Get the file version of the file we are reading



getFilePointer
abstract public long getFilePointer()(Code)
Get the current file 'pointer' location.



getImageCompression
public int getImageCompression()(Code)
Returns the imageCompression to be used IMAGE_COMPRESSION_NONE, IMAGE_COMPRESSION_GZIP, IMAGE_COMPRESSION_JPEG



getNamedObject
public SceneGraphObject getNamedObject(String name) throws NamedObjectException, ObjectNotLoadedException(Code)
Return the SceneGraphObject associated with the name



getNames
public String[] getNames()(Code)
Get all the names of the named objects



getNodeClassFromID
public Class getNodeClassFromID(int classID)(Code)



getNodeClassID
public int getNodeClassID(javax.media.j3d.SceneGraphObject node)(Code)



getOutputFileVersion
public int getOutputFileVersion()(Code)
Get the file version that we should write



getSymbolTable
final public SymbolTable getSymbolTable()(Code)



readBounds
public Bounds readBounds(DataInput in) throws IOException(Code)



readBranchGraphs
abstract protected void readBranchGraphs(int[] graphs) throws IOException(Code)
Read the set of branchgraps. Used by readUniverse RandomAccessFileControl will read the graphs in the array, StreamControl will read all graphs in the stream



readColor3f
public Color3f readColor3f(DataInput in) throws IOException(Code)



readColor4f
public Color4f readColor4f(DataInput in) throws IOException(Code)



readMatrix4d
public Matrix4d readMatrix4d(DataInput in) throws IOException(Code)



readNodeComponents
protected void readNodeComponents(DataInput in) throws IOException(Code)
Read in all the node components in this block



readObject
public SceneGraphObjectState readObject(DataInput in) throws IOException(Code)



readPoint3d
public Point3d readPoint3d(DataInput in) throws IOException(Code)



readPoint3f
public Point3f readPoint3f(DataInput in) throws IOException(Code)



readQuat4f
public Quat4f readQuat4f(DataInput in) throws IOException(Code)



readSerializedData
public Object readSerializedData(DataInput dataInput) throws IOException(Code)



readSharedGroup
public int readSharedGroup(DataInput in) throws IOException(Code)
Read a Shared group and it's node components from the IO Stream



readTransform3D
public Transform3D readTransform3D(DataInput in) throws IOException(Code)



readTuple3d
public Tuple3d readTuple3d(DataInput in, Tuple3d tuple) throws IOException(Code)



readTuple3f
public Tuple3f readTuple3f(DataInput in, Tuple3f tuple) throws IOException(Code)



readTuple4d
public Tuple4d readTuple4d(DataInput in, Tuple4d tuple) throws IOException(Code)



readTuple4f
public Tuple4f readTuple4f(DataInput in, Tuple4f tuple) throws IOException(Code)



readUniverse
public ConfiguredUniverse readUniverse(DataInput in, boolean attachBranchGraphs, Canvas3D canvas) throws IOException(Code)
Read and create a new Universe matching the one used during save.
Parameters:
  attachBranchGraphs - If true then all the branchGraph attached to the universe when it was saved will be loaded and reattached.



readVector3f
public Vector3f readVector3f(DataInput in) throws IOException(Code)



readVector4d
public Vector4d readVector4d(DataInput in) throws IOException(Code)



readVector4f
public Vector4f readVector4f(DataInput in) throws IOException(Code)



reset
public void reset()(Code)
Reset the controller, ready to load/save data to a new file



setClassLoader
public void setClassLoader(ClassLoader classLoader)(Code)
Set the class loader used to load the Scene Graph Objects and the serialized user data. The default is ClassLoader.getSystemClassLoader()



skipUserData
public void skipUserData(DataInput dataInput) throws IOException(Code)
Skip past the user data object



useSuperClassIfNoChildClass
public boolean useSuperClassIfNoChildClass()(Code)
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.



writeBounds
public void writeBounds(DataOutput out, Bounds bounds) throws IOException(Code)



writeBranchGraph
abstract public void writeBranchGraph(BranchGroup bg, java.io.Serializable userData) throws IOException(Code)



writeColor3f
public void writeColor3f(DataOutput out, Color3f color) throws IOException(Code)



writeColor4f
public void writeColor4f(DataOutput out, Color4f vec) throws IOException(Code)



writeMatrix4d
public void writeMatrix4d(DataOutput out, Matrix4d m) throws IOException(Code)



writeNodeComponents
protected void writeNodeComponents(DataOutput out) throws IOException(Code)
Write all the unsaved NodeComponents and SharedGroups to DataOutput. Mark all the NodeComponents as saved.



writeObject
public void writeObject(DataOutput out, SceneGraphObjectState obj) throws IOException(Code)



writePoint3d
public void writePoint3d(DataOutput out, Point3d pt) throws IOException(Code)



writePoint3f
public void writePoint3f(DataOutput out, Point3f pt) throws IOException(Code)



writeQuat4f
public void writeQuat4f(DataOutput out, Quat4f vec) throws IOException(Code)



writeSerializedData
public void writeSerializedData(DataOutput dataOutput, java.io.Serializable userData) throws IOException(Code)
Write a serializable object to the current file position, proceeded by the size of the object



writeSharedGroup
public void writeSharedGroup(DataOutput out, SharedGroup sharedGroup, SymbolTableData symbol) throws IOException(Code)
Write the shared group and it's node components to the IO stream



writeTransform3D
public void writeTransform3D(DataOutput out, Transform3D tran) throws IOException(Code)



writeTuple3d
public void writeTuple3d(DataOutput out, Tuple3d tuple) throws IOException(Code)



writeTuple3f
public void writeTuple3f(DataOutput out, Tuple3f tuple) throws IOException(Code)



writeTuple4d
public void writeTuple4d(DataOutput out, Tuple4d tuple) throws IOException(Code)



writeTuple4f
public void writeTuple4f(DataOutput out, Tuple4f tuple) throws IOException(Code)



writeUniverse
public void writeUniverse(DataOutput out, SimpleUniverse universe, boolean writeUniverseContent) throws IOException, UnsupportedUniverseException, CapabilityNotSetException(Code)
Write out the Universe information.



writeVector3f
public void writeVector3f(DataOutput out, Vector3f vec) throws IOException(Code)



writeVector4d
public void writeVector4d(DataOutput out, Vector4d vec) throws IOException(Code)



writeVector4f
public void writeVector4f(DataOutput out, Vector4f vec) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__ww_._j___a__v___a2_s.___c___o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.