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


java.lang.Object
   javax.media.j3d.VirtualUniverse
      com.sun.j3d.utils.universe.SimpleUniverse
         com.sun.j3d.utils.universe.ConfiguredUniverse

ConfiguredUniverse
public class ConfiguredUniverse extends SimpleUniverse (Code)
This utility class creates all the necessary objects on the view side of the scene graph. Specifically, it creates a Locale, one or more ViewingPlatforms, and at least one Viewer object.

ConfiguredUniverse can set up a viewing environment based upon the contents of a configuration file. This allows an application to run without change across a broad range of viewing configurations, such as windows on conventional desktops, stereo-enabled views, full screen immersive displays on single or multiple screens, or virtual reality installations including cave and head-mounted displays incorporating 6 degree of freedom sensor devices.

A configuration file may create InputDevice, Sensor, and ViewPlatformBehavior instances as well as Viewers and ViewingPlatforms. At least one Viewer must be provided by the configuration. If a ViewingPlatform is not provided, a default one will be created and the Viewer will be attached to it.

A configuration file may be specified directly by passing a URL to a ConfiguredUniverse constructor. Alternatively, a ConfigContainer may be created from a configuration file first, and then passed to an appropriate ConfiguredUniverse constructor. The latter technique allows Java system properties that affect Java 3D to be specified in the configuration file, as long as no references to a VirtualUniverse are made before creating the container.

If a configuration file or container is not provided, then ConfiguredUniverse creates a default viewing environment in the same way as SimpleUniverse. If one or more Canvas3D objects are provided, it will use them instead of creating new ones. All of the constructors provided by SimpleUniverse are also available here.

The syntax and description of the configuration file may be found here. Example config files can be found here.
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   ConfigContainer
See Also:    * The Java 3D Configuration File
See Also:    * Example Configuration Files
since:
   Java 3D 1.3




Constructor Summary
public  ConfiguredUniverse()
     Equivalent to SimpleUniverse().
public  ConfiguredUniverse(int transformCount)
     Equivalent to SimpleUniverse(int).
public  ConfiguredUniverse(Canvas3D canvas)
     Equivalent to SimpleUniverse(Canvas3D).
public  ConfiguredUniverse(Canvas3D canvas, int transformCount)
     Equivalent to SimpleUniverse(Canvas3D, int).
public  ConfiguredUniverse(ViewingPlatform viewingPlatform, Viewer viewer)
     Equivalent to SimpleUniverse(ViewingPlatform, Viewer).
public  ConfiguredUniverse(ViewingPlatform viewingPlatform, Viewer viewer, LocaleFactory localeFactory)
     Equivalent to SimpleUniverse(ViewingPlatform, Viewer, LocalFactory).
public  ConfiguredUniverse(Canvas3D[] canvases)
     Creates a Locale, a single ViewingPlatform, and a Viewer object from the given array of Canvas3D instances.
public  ConfiguredUniverse(Canvas3D[] canvases, int transformCount)
     Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object using the given array of Canvas3D instances.
public  ConfiguredUniverse(Canvas3D[] canvases, int transformCount, LocaleFactory localeFactory)
     Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object using the given array of Canvas3D instances.
public  ConfiguredUniverse(URL userConfig)
     Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms, and at least one Viewer object.
public  ConfiguredUniverse(URL userConfig, int transformCount)
     Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms with the specified number of transforms, and at least one Viewer object.
public  ConfiguredUniverse(URL userConfig, int transformCount, boolean setVisible)
     Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms with the specified number of transforms, and at least one Viewer object with optional visibility.
public  ConfiguredUniverse(URL userConfig, LocaleFactory localeFactory)
     Reads the configuration specified by the given URL to create a Locale using the given LocaleFactory, one or more ViewingPlatforms, and at least one Viewer object.
public  ConfiguredUniverse(URL userConfig, LocaleFactory localeFactory, boolean setVisible)
     Reads the configuration specified by the given URL to create a Locale using the given LocaleFactory, one or more ViewingPlatforms, and at least one Viewer object with optional visibility.
public  ConfiguredUniverse(URL userConfig, LocaleFactory localeFactory, HiResCoord origin, int transformCount, boolean setVisible)
     Reads the configuration specified by the given URL to create a Locale using the specified LocaleFactory with the given origin, one or more ViewingPlatforms with the specified number of transforms, and at least one Viewer object with optional visibility.
public  ConfiguredUniverse(ConfigContainer userConfig)
     Retrieves view-side scenegraph components from the given container to create a universe with one Locale, one or more ViewingPlatforms, and at least one Viewer object.
public  ConfiguredUniverse(ConfigContainer userConfig, LocaleFactory localeFactory, HiResCoord origin)
     Retrieves view-side scenegraph components from the given container to create a universe with one Locale created from the specified LocaleFactory and origin, one or more ViewingPlatforms, and at least one Viewer object.
 ConfiguredUniverse(int transformCount, Canvas3D[] canvases, URL userConfig, LocaleFactory localeFactory, HiResCoord origin, boolean setVisible)
     Package-scope constructor that creates the view side of the scene graph.

Method Summary
public  voidcleanup()
     Cleanup memory references used by ConfiguredUniverse.
public  ConfigContainergetConfigContainer()
     Returns a container holding all the objects defined by the configuration file used to create the ConfiguredUniverse.
public static  URLgetConfigURL()
     Returns the config file URL based on system properties.
public static  URLgetConfigURL(String defaultURLString)
     Returns the config file URL based on system properties.
public  MapgetNamedBehaviors()
     Returns all named ViewPlatformBehaviors defined by the configuration file used to create the ConfiguredUniverse, if any.
public  MapgetNamedSensors()
     Returns all named Sensors defined by the configuration file used to create the ConfiguredUniverse, if any.
public  ViewergetViewer(int index)
     Returns the Viewer object specified by the given index.
Parameters:
  index - The index of which Viewer object to return.
public  Viewer[]getViewers()
     Returns all of the Viewer objects associated with this scene graph.
public  voidsetVisible(boolean visible)
    


Constructor Detail
ConfiguredUniverse
public ConfiguredUniverse()(Code)
Equivalent to SimpleUniverse(). Creates a Locale, a single ViewingPlatform, and a Viewer object.
See Also:   SimpleUniverse.SimpleUniverse
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



ConfiguredUniverse
public ConfiguredUniverse(int transformCount)(Code)
Equivalent to SimpleUniverse(int). Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object.
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
See Also:   SimpleUniverse.SimpleUniverse(int)
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(Canvas3D canvas)(Code)
Equivalent to SimpleUniverse(Canvas3D). Creates a Locale, a single ViewingPlatform, and a Viewer object using the given Canvas3D instance.
Parameters:
  canvas - the canvas to associate with the Viewer object;passing in null will cause this parameter to be ignored and a canvas to be created by the utility
See Also:   SimpleUniverse.SimpleUniverse(Canvas3D)
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



ConfiguredUniverse
public ConfiguredUniverse(Canvas3D canvas, int transformCount)(Code)
Equivalent to SimpleUniverse(Canvas3D, int). Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object with the given Canvas3D.
Parameters:
  canvas - the canvas to associate with the Viewer object;passing in null will cause this parameter to be ignored and a canvas to be created by the utility
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
See Also:   SimpleUniverse.SimpleUniverse(Canvas3Dint)
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(ViewingPlatform viewingPlatform, Viewer viewer)(Code)
Equivalent to SimpleUniverse(ViewingPlatform, Viewer). Creates the view side of the scene graph with the given ViewingPlatform and Viewer.
Parameters:
  viewingPlatform - the viewingPlatform to use to createthe view side of the scene graph
Parameters:
  viewer - the viewer object to use to createthe view side of the scene graph
See Also:   SimpleUniverse.SimpleUniverse(ViewingPlatformViewer)
See Also:   ViewingPlatform
See Also:   Viewer



ConfiguredUniverse
public ConfiguredUniverse(ViewingPlatform viewingPlatform, Viewer viewer, LocaleFactory localeFactory)(Code)
Equivalent to SimpleUniverse(ViewingPlatform, Viewer, LocalFactory). Creates the view side of the scene graph with the given ViewingPlatform, Viewer, and Locale created by the specified LocaleFactory.
Parameters:
  viewingPlatform - the viewingPlatform to use to createthe view side of the scene graph
Parameters:
  viewer - the viewer object to use to createthe view side of the scene graph
Parameters:
  localeFactory - the factory object used to create the Locale
See Also:   SimpleUniverse.SimpleUniverse(ViewingPlatformViewerLocaleFactory)
See Also:   ViewingPlatform
See Also:   Viewer
See Also:   LocaleFactory



ConfiguredUniverse
public ConfiguredUniverse(Canvas3D[] canvases)(Code)
Creates a Locale, a single ViewingPlatform, and a Viewer object from the given array of Canvas3D instances.
Parameters:
  canvases - the canvases to associate with the Viewer object;passing in null will cause this parameter to be ignored and a canvas to be created by the utility
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



ConfiguredUniverse
public ConfiguredUniverse(Canvas3D[] canvases, int transformCount)(Code)
Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object using the given array of Canvas3D instances.
Parameters:
  canvases - the canvases to associate with the Viewer object;passing in null will cause this parameter to be ignored and a canvas to be created by the utility
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(Canvas3D[] canvases, int transformCount, LocaleFactory localeFactory)(Code)
Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object using the given array of Canvas3D instances.
Parameters:
  canvases - the canvases to associate with the Viewer object;passing in null will cause this parameter to be ignored and a canvas to be created by the utility
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
Parameters:
  localeFactory - the factory object used to create the Locale
since:
   Java 3D 1.5.1
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(URL userConfig)(Code)
Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms, and at least one Viewer object. The configuration file may also create InputDevice, Sensor, and ViewPlatformBehavior instances.
Parameters:
  userConfig - the URL to the user's configuration file; passing innull creates a default Viewer and ViewingPlatform
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



ConfiguredUniverse
public ConfiguredUniverse(URL userConfig, int transformCount)(Code)
Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms with the specified number of transforms, and at least one Viewer object. The configuration file may also create InputDevice, Sensor, and ViewPlatformBehavior instances.
Parameters:
  userConfig - the URL to the user's configuration file; passing innull creates a default Viewer and ViewingPlatform with the specifiednumber of transforms
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup objects to be created
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(URL userConfig, int transformCount, boolean setVisible)(Code)
Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms with the specified number of transforms, and at least one Viewer object with optional visibility. AWT components used by the Viewers will remain invisible unless the setVisible flag is true. The configuration file may also create InputDevice, Sensor, and ViewPlatformBehavior instances.
Parameters:
  userConfig - the URL to the user's configuration file; passing innull creates a default Viewer with the specified visibility and aViewingPlatform with the specified number of transforms
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
Parameters:
  setVisible - if true, calls setVisible(true) on allcreated window components; otherwise, they remain invisible
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(URL userConfig, LocaleFactory localeFactory)(Code)
Reads the configuration specified by the given URL to create a Locale using the given LocaleFactory, one or more ViewingPlatforms, and at least one Viewer object. The configuration file may also create InputDevice, Sensor, and ViewPlatformBehavior instances.
Parameters:
  userConfig - the URL to the user's configuration file; passing innull creates a default Viewer and ViewingPlatform with the specifiednumber of transforms
Parameters:
  localeFactory - the factory object used to create the Locale
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



ConfiguredUniverse
public ConfiguredUniverse(URL userConfig, LocaleFactory localeFactory, boolean setVisible)(Code)
Reads the configuration specified by the given URL to create a Locale using the given LocaleFactory, one or more ViewingPlatforms, and at least one Viewer object with optional visibility. The configuration file may also create InputDevice, Sensor, and ViewPlatformBehavior instances. Window components used by the Viewers will remain invisible unless the setVisible flag is true.
Parameters:
  userConfig - the URL to the user's configuration file; passing innull creates a default Viewer with the specified visibility and adefault ViewingPlatform
Parameters:
  localeFactory - the factory object used to create the Locale
Parameters:
  setVisible - if true, calls setVisible(true) on allcreated window components; otherwise, they remain invisible
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



ConfiguredUniverse
public ConfiguredUniverse(URL userConfig, LocaleFactory localeFactory, HiResCoord origin, int transformCount, boolean setVisible)(Code)
Reads the configuration specified by the given URL to create a Locale using the specified LocaleFactory with the given origin, one or more ViewingPlatforms with the specified number of transforms, and at least one Viewer object with optional visibility. Window components used by the Viewers will remain invisible unless the setVisible flag is true. The configuration file may also create InputDevice, Sensor, and ViewPlatformBehavior instances.
Parameters:
  userConfig - the URL to the user's configuration file; passing innull creates a default Viewer with the specified visibility and aViewingPlatform with the specified number of transforms
Parameters:
  localeFactory - the factory object used to create the Locale
Parameters:
  origin - the origin used to set the origin of the Locale object;if this object is null, then 0.0 is used
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
Parameters:
  setVisible - if true, calls setVisible(true) on allcreated window components; otherwise, they remain invisible
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



ConfiguredUniverse
public ConfiguredUniverse(ConfigContainer userConfig)(Code)
Retrieves view-side scenegraph components from the given container to create a universe with one Locale, one or more ViewingPlatforms, and at least one Viewer object. Equivalent to ConfiguredUniverse(ConfigContainer, null, null).
Parameters:
  userConfig - container holding viewing configuration components;must not be null
See Also:   ConfiguredUniverse.ConfiguredUniverse(ConfigContainer,LocaleFactory,HiResCoord)
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
since:
   Java 3D 1.3.1



ConfiguredUniverse
public ConfiguredUniverse(ConfigContainer userConfig, LocaleFactory localeFactory, HiResCoord origin)(Code)
Retrieves view-side scenegraph components from the given container to create a universe with one Locale created from the specified LocaleFactory and origin, one or more ViewingPlatforms, and at least one Viewer object. The container may also provide InputDevice, Sensor, and ViewPlatformBehavior instances which will be incorporated into the universe if they are referenced by any of the Viewer or ViewingPlatform instances.

This constructor and ConfiguredUniverse(ConfigContainer) both accept ConfigContainer references directly and are the preferred interfaces for constructing universes from configuration files. They differ from the constructors that accept URL objects in the following ways:

  • A Viewer will be attached to a default ViewingPlatform only if no ViewingPlatforms are provided in the ConfigContainer. If one or more ViewingPlatforms are provided by the ConfigContainer, then Viewers must be attached to them explicitly in the configuration.

  • ViewPlatformBehaviors will be attached to their specified ViewingPlatforms before ConfiguredUniverse can set a reference to itself in the ViewingPlatform. This means that a behavior can't get a reference to the universe at the time its setViewingPlatform method is called; it must wait until its initialize method is called.

  • All Java properties used by Java 3D may be set in the beginning of the configuration file as long as there is no reference to a VirtualUniverse prior to creating the ConfigContainer. Note however, that some Java 3D utilities and objects such as Transform3D can cause static references to VirtualUniverse and trigger the evaluation of Java properties before they are set by ConfigContainer.


Parameters:
  userConfig - container holding viewing configuration components;must not be null
Parameters:
  localeFactory - the factory object used to create the Locale, ornull
Parameters:
  origin - the origin used to set the origin of the Locale object;if this object is null, then 0.0 is used
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
since:
   Java 3D 1.3.1



ConfiguredUniverse
ConfiguredUniverse(int transformCount, Canvas3D[] canvases, URL userConfig, LocaleFactory localeFactory, HiResCoord origin, boolean setVisible)(Code)
Package-scope constructor that creates the view side of the scene graph. The passed in parameters override the default values where appropriate. Note that the userCanvases parameter is ignored when the userConfig is non-null.
Parameters:
  transformCount - the number of transforms in theMultiTransformGroup object to be created
Parameters:
  canvases - the canvases to associate with the Viewer object;passing in null will cause this parameter to be ignored and a canvas to be created by the utility
Parameters:
  userConfig - the URL to the user's configuration file; passing innull causes the default values to be used.
Parameters:
  localeFactory - the factory object used to create the Locale
Parameters:
  origin - the origin used to set the origin of the Locale object;if this object is null, then 0.0 is used
Parameters:
  setVisible - if true, calls setVisible(true) on allcreated window components; otherwise, they remain invisible
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup




Method Detail
cleanup
public void cleanup()(Code)
Cleanup memory references used by ConfiguredUniverse.
since:
   Java 3D 1.3.1



getConfigContainer
public ConfigContainer getConfigContainer()(Code)
Returns a container holding all the objects defined by the configuration file used to create the ConfiguredUniverse. the container
since:
   Java 3D 1.3.1



getConfigURL
public static URL getConfigURL()(Code)
Returns the config file URL based on system properties. This is equivalent to calling ConfigContainer.getConfigURL(). The current implementation of this method parses the j3d.configURL property as a URL string. For example, the following command line would specify that the config file is taken from the file "j3dconfig" in the current directory:
    java -Dj3d.configURL=file:j3dconfig ...
the URL of the config file; null is returned if no validURL is defined by the system properties



getConfigURL
public static URL getConfigURL(String defaultURLString)(Code)
Returns the config file URL based on system properties. This is the same as calling ConfigContainer.getConfigURL(String). The current implementation of this method parses the j3d.configURL property as a URL string. For example, the following command line would specify that the config file is taken from the file "j3dconfig" in the current directory:
    java -Dj3d.configURL=file:j3dconfig ...

Parameters:
  defaultURLString - the default string used to constructthe URL if the appropriate system properties are not defined the URL of the config file; null is returned if novalid URL is defined either by the system properties or thedefault URL string



getNamedBehaviors
public Map getNamedBehaviors()(Code)
Returns all named ViewPlatformBehaviors defined by the configuration file used to create the ConfiguredUniverse, if any. Equivalent to getConfigContainer().getNamedViewPlatformBehaviors().

read-only Map which maps behavior names to the associatedViewPlatformBehavior instances, or null if none have been named.
since:
   Java 3D 1.3.1




getNamedSensors
public Map getNamedSensors()(Code)
Returns all named Sensors defined by the configuration file used to create the ConfiguredUniverse, if any. Equivalent to getConfigContainer().getNamedSensors().

With the sole exception of the Sensor assigned to the head tracker, none of the Sensors defined in the configuration file are placed into the Sensor array maintained by PhysicalEnvironment. The head tracker Sensor is the only one read by the Java 3D core and must generate reads with a full 6 degrees of freedom (3D position and 3D orientation).

Other Sensors need not generate reads with a full 6 degrees of freedom, although their reads must be expressed using Transform3D. Some joysticks may provide only 2D relative X and Y axis movement; dials, levers, and sliders are 1D devices, and some devices may combine dials and levers to generate 3D positional data.

The index names to identify left / right / dominant / non-dominant hand Sensors in the PhysicalEnvironement Sensor array are not adequate to distinguish these differences, so this method allows applications to look up Sensors based on the names bound to them in the configuration file. There are no set rules on naming. Applications that use Sensors may set up conventions for generic devices such as "mouse6D" or "joystick2D" or specific product names.

read-only Map which maps Sensor names to the associated Sensors,or null if no Sensors have been named




getViewer
public Viewer getViewer(int index)(Code)
Returns the Viewer object specified by the given index.
Parameters:
  index - The index of which Viewer object to return. The Viewer object specified by the given index.



getViewers
public Viewer[] getViewers()(Code)
Returns all of the Viewer objects associated with this scene graph. The Viewer objects associated with this scene graph.



setVisible
public void setVisible(boolean visible)(Code)
Call setVisible() on all AWT components created by this ConfiguredUniverse instance.


Parameters:
  visible - boolean to be passed to the setVisible()calls on the window components created by thisConfiguredUniverse instance




Fields inherited from com.sun.j3d.utils.universe.SimpleUniverse
protected Locale locale(Code)(Java Doc)
protected Viewer[] viewer(Code)(Java Doc)

Methods inherited from com.sun.j3d.utils.universe.SimpleUniverse
public void addBranchGraph(BranchGroup bg)(Code)(Java Doc)
public void cleanup()(Code)(Java Doc)
public Canvas3D getCanvas()(Code)(Java Doc)
public Canvas3D getCanvas(int canvasNum)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public static GraphicsConfiguration getPreferredConfiguration()(Code)(Java Doc)
public Viewer getViewer()(Code)(Java Doc)
public ViewingPlatform getViewingPlatform()(Code)(Java Doc)

Methods inherited from javax.media.j3d.VirtualUniverse
public void addGraphStructureChangeListener(GraphStructureChangeListener listener)(Code)(Java Doc)
public static void addRenderingErrorListener(RenderingErrorListener listener)(Code)(Java Doc)
public void addShaderErrorListener(ShaderErrorListener listener)(Code)(Java Doc)
public Enumeration getAllLocales()(Code)(Java Doc)
public static int getJ3DThreadPriority()(Code)(Java Doc)
final public static Map getProperties()(Code)(Java Doc)
public int numLocales()(Code)(Java Doc)
public void removeAllLocales()(Code)(Java Doc)
public void removeGraphStructureChangeListener(GraphStructureChangeListener listener)(Code)(Java Doc)
public void removeLocale(Locale locale)(Code)(Java Doc)
public static void removeRenderingErrorListener(RenderingErrorListener listener)(Code)(Java Doc)
public void removeShaderErrorListener(ShaderErrorListener listener)(Code)(Java Doc)
public static void setJ3DThreadPriority(int priority)(Code)(Java Doc)

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.