⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configureduniverse.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Fri Apr 18 11:17:02 PDT 2003 --><TITLE>ConfiguredUniverse (Java 3D API)</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="ConfiguredUniverse (Java 3D API)";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/sun/j3d/utils/universe/ConfigContainer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/sun/j3d/utils/universe/MultiTransformGroup.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ConfiguredUniverse.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.sun.j3d.utils.universe.SimpleUniverse">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.sun.j3d.utils.universe</FONT><BR>Class  ConfiguredUniverse</H2><PRE>java.lang.Object  |  +--<A HREF="../../../../../javax/media/j3d/VirtualUniverse.html">javax.media.j3d.VirtualUniverse</A>        |        +--<A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html">com.sun.j3d.utils.universe.SimpleUniverse</A>              |              +--<B>com.sun.j3d.utils.universe.ConfiguredUniverse</B></PRE><HR><DL><DT>public class <B>ConfiguredUniverse</B><DT>extends <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html">SimpleUniverse</A></DL><P>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.<p> 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.<p> 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.<p> 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.<p> 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.<p>  The syntax and description of the configuration file may be found <A href="doc-files/config-syntax.html">here.</a> Example config files can be found <A href="doc-files/config-examples.html">here.</a><P><P><DL><DT><B>Since:</B><DD>Java 3D 1.3</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../../../javax/media/j3d/Locale.html"><CODE>Locale</CODE></A>, <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html"><CODE>Viewer</CODE></A>, <A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html"><CODE>ViewingPlatform</CODE></A>, <A HREF="../../../../../com/sun/j3d/utils/universe/ConfigContainer.html"><CODE>ConfigContainer</CODE></A>, <a href="doc-files/config-syntax.html">      The Java 3D Configuration File</a>, <a href="doc-files/config-examples.html">      Example Configuration Files</a></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_com.sun.j3d.utils.universe.SimpleUniverse"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class com.sun.j3d.utils.universe.<A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html">SimpleUniverse</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html#locale">locale</A>, <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html#viewer">viewer</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse()">ConfiguredUniverse</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <code>SimpleUniverse()</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(javax.media.j3d.Canvas3D)">ConfiguredUniverse</A></B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>&nbsp;canvas)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <code>SimpleUniverse(Canvas3D)</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(javax.media.j3d.Canvas3D[])">ConfiguredUniverse</A></B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>[]&nbsp;canvases)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Locale, a single ViewingPlatform, and a Viewer object from the given array of Canvas3D instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(javax.media.j3d.Canvas3D[], int)">ConfiguredUniverse</A></B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>[]&nbsp;canvases,                   int&nbsp;transformCount)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Locale, a single ViewingPlatform with the specified number of transforms, and a Viewer object using the given array of Canvas3D instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(javax.media.j3d.Canvas3D, int)">ConfiguredUniverse</A></B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>&nbsp;canvas,                   int&nbsp;transformCount)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <code>SimpleUniverse(Canvas3D, int)</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(com.sun.j3d.utils.universe.ConfigContainer)">ConfiguredUniverse</A></B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ConfigContainer.html">ConfigContainer</A>&nbsp;userConfig)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(com.sun.j3d.utils.universe.ConfigContainer, com.sun.j3d.utils.universe.LocaleFactory, javax.media.j3d.HiResCoord)">ConfiguredUniverse</A></B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ConfigContainer.html">ConfigContainer</A>&nbsp;userConfig,                   <A HREF="../../../../../com/sun/j3d/utils/universe/LocaleFactory.html">LocaleFactory</A>&nbsp;localeFactory,                   <A HREF="../../../../../javax/media/j3d/HiResCoord.html">HiResCoord</A>&nbsp;origin)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(int)">ConfiguredUniverse</A></B>(int&nbsp;transformCount)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <code>SimpleUniverse(int)</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(java.net.URL)">ConfiguredUniverse</A></B>(java.net.URL&nbsp;userConfig)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms, and at least one Viewer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(java.net.URL, int)">ConfiguredUniverse</A></B>(java.net.URL&nbsp;userConfig,                   int&nbsp;transformCount)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ConfiguredUniverse.html#ConfiguredUniverse(java.net.URL, int, boolean)">ConfiguredUniverse</A></B>(java.net.URL&nbsp;userConfig,                   int&nbsp;transformCount,                   boolean&nbsp;setVisible)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the configuration specified by the given URL to create a Locale, one or more ViewingPlatforms with the specified number of transforms,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -