Java Doc for SceneBase.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » loaders » 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.loaders 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.loaders.SceneBase

SceneBase
public class SceneBase implements Scene(Code)
This class implements the Scene interface and extends it to incorporate utilities that could be used by loaders. There should be little need for future loaders to subclass this, or to implement Scene directly, as the functionality of a SceneBase is fairly straightforward. This class is responsible for both the storage and retrieval of data from the Scene. The storage methods (used only by Loader writers) are all of the add* routines. The retrieval methods (used primarily by Loader users) are all of the get* routines.


Field Summary
 VectorbackgroundVector
    
 BranchGroupbehaviorGroup
    
 VectorbehaviorVector
    
 Stringdescription
    
 VectorfogVector
    
 VectorhfovVector
    
 VectorlightVector
    
 HashtablenamedObjects
    
 BranchGroupsceneGroup
    
 VectorsoundVector
    
 VectorviewVector
    


Method Summary
public  voidaddBackgroundNode(Background background)
     Adds the given Background node to the list of backgrounds.
public  voidaddBehaviorNode(Behavior b)
    
public  voidaddDescription(String descriptionString)
     Sets the text description of the scene to the passed in String.
public  voidaddFogNode(Fog fog)
     Adds the given Fog node to the list of fog nodes.
public  voidaddHorizontalFOV(float hfov)
     Adds the given field of view value to the list of field of view values.
public  voidaddLightNode(Light light)
     Adds the given Light node to the list of lights.
public  voidaddNamedObject(String name, Object object)
     Adds the given String/Object pair to the table of named objects.
public  voidaddSoundNode(Sound sound)
     Adds the given Sound node to the list of sounds.
public  voidaddViewGroup(TransformGroup tg)
     Adds the given group to the list of view groups.
public  Background[]getBackgroundNodes()
     This method returns an array of all Background nodes defined in the file.
public  Behavior[]getBehaviorNodes()
     This method returns a group containing all of the Behavior nodes in the scene.
public  StringgetDescription()
     This method returns the text description of the file.
public  Fog[]getFogNodes()
     This method returns an array of all Fog nodes defined in the file.
public  float[]getHorizontalFOVs()
     This method returns an array of floats that contains the horizontal field of view values for each corresponding entry in the array of view groups returned by the method getViewGroups.
public  Light[]getLightNodes()
     This method returns an array of all Lights defined in the file.
public  HashtablegetNamedObjects()
     This method returns a Hashtable which contains a list of all named objects in the file and their associated scene graph objects.
public  BranchGroupgetSceneGroup()
     This method returns the BranchGroup containing the overall scene loaded by the loader.
public  Sound[]getSoundNodes()
     This method returns an array of all of the Sound nodes defined in the file.
public  TransformGroup[]getViewGroups()
     This method returns an array of all View Groups defined in the file. A View Group is defined as a TransformGroup which contains a ViewPlatform.
public  voidsetSceneGroup(BranchGroup scene)
     Sets the sceneGroup to be the group that is passed in.

Field Detail
backgroundVector
Vector backgroundVector(Code)



behaviorGroup
BranchGroup behaviorGroup(Code)



behaviorVector
Vector behaviorVector(Code)



description
String description(Code)



fogVector
Vector fogVector(Code)



hfovVector
Vector hfovVector(Code)



lightVector
Vector lightVector(Code)



namedObjects
Hashtable namedObjects(Code)



sceneGroup
BranchGroup sceneGroup(Code)



soundVector
Vector soundVector(Code)



viewVector
Vector viewVector(Code)





Method Detail
addBackgroundNode
public void addBackgroundNode(Background background)(Code)
Adds the given Background node to the list of backgrounds.



addBehaviorNode
public void addBehaviorNode(Behavior b)(Code)
Adds the given behavior to a list of behaviors



addDescription
public void addDescription(String descriptionString)(Code)
Sets the text description of the scene to the passed in String.



addFogNode
public void addFogNode(Fog fog)(Code)
Adds the given Fog node to the list of fog nodes.



addHorizontalFOV
public void addHorizontalFOV(float hfov)(Code)
Adds the given field of view value to the list of field of view values.



addLightNode
public void addLightNode(Light light)(Code)
Adds the given Light node to the list of lights.



addNamedObject
public void addNamedObject(String name, Object object)(Code)
Adds the given String/Object pair to the table of named objects.



addSoundNode
public void addSoundNode(Sound sound)(Code)
Adds the given Sound node to the list of sounds.



addViewGroup
public void addViewGroup(TransformGroup tg)(Code)
Adds the given group to the list of view groups.



getBackgroundNodes
public Background[] getBackgroundNodes()(Code)
This method returns an array of all Background nodes defined in the file.



getBehaviorNodes
public Behavior[] getBehaviorNodes()(Code)
This method returns a group containing all of the Behavior nodes in the scene.



getDescription
public String getDescription()(Code)
This method returns the text description of the file. If no such description exists, this method should return null.



getFogNodes
public Fog[] getFogNodes()(Code)
This method returns an array of all Fog nodes defined in the file.



getHorizontalFOVs
public float[] getHorizontalFOVs()(Code)
This method returns an array of floats that contains the horizontal field of view values for each corresponding entry in the array of view groups returned by the method getViewGroups.



getLightNodes
public Light[] getLightNodes()(Code)
This method returns an array of all Lights defined in the file.



getNamedObjects
public Hashtable getNamedObjects()(Code)
This method returns a Hashtable which contains a list of all named objects in the file and their associated scene graph objects. The naming scheme for file objects is file-type dependent, but may include such names as the DEF names of Vrml or filenames of subjects (as in Lightwave 3D).



getSceneGroup
public BranchGroup getSceneGroup()(Code)
This method returns the BranchGroup containing the overall scene loaded by the loader.



getSoundNodes
public Sound[] getSoundNodes()(Code)
This method returns an array of all of the Sound nodes defined in the file.



getViewGroups
public TransformGroup[] getViewGroups()(Code)
This method returns an array of all View Groups defined in the file. A View Group is defined as a TransformGroup which contains a ViewPlatform. The TransformGroup holds the position/orientation information for the given ViewPlatform and the ViewPlatform holds an view-specific information, such as Field of View.



setSceneGroup
public void setSceneGroup(BranchGroup scene)(Code)
Sets the sceneGroup to be the group that is passed in.



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.