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

📄 viewer.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 is enabled.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html">Viewer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#removeViewerMapEntry(javax.media.j3d.View)">removeViewerMapEntry</A></B>(<A HREF="../../../../../javax/media/j3d/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the entry associated with the view object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setAvatar(com.sun.j3d.utils.universe.ViewerAvatar)">setAvatar</A></B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ViewerAvatar.html">ViewerAvatar</A>&nbsp;avatar)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the geometry to be associated with the viewer's avatar.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setDvrEnable(boolean)">setDvrEnable</A></B>(boolean&nbsp;dvr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turns on or off dynamic video size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setDvrFactor(float)">setDvrFactor</A></B>(float&nbsp;dvr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the dynamic video resize factor for this viewer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setDvrResizeCompensationEnable(boolean)">setDvrResizeCompensationEnable</A></B>(boolean&nbsp;dvrRCE)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turns on or off dynamic video resize compensation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setViewingPlatform(com.sun.j3d.utils.universe.ViewingPlatform)">setViewingPlatform</A></B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html">ViewingPlatform</A>&nbsp;platform)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the ViewingPlatform object used by this Viewer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setVisible(boolean)">setVisible</A></B>(boolean&nbsp;visible)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call setVisible() on all Window components created by this Viewer.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Viewer()"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>()</PRE><DL><DD>Creates a default viewer object. The default values are used to create the PhysicalBody and PhysicalEnvironment.  A single RGB, double buffered and depth buffered Canvas3D object is created.  The View is created with a front clip distance of 0.1f and a back clip distance of 10.0f.<P></DL><HR><A NAME="Viewer(javax.media.j3d.Canvas3D)"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>&nbsp;userCanvas)</PRE><DL><DD>Creates a default viewer object. The default values are used to create the PhysicalBody and PhysicalEnvironment.  The View is created with a front clip distance of 0.1f and a back clip distance of 10.0f.<P><DT><B>Parameters:</B><DD><CODE>userCanvas</CODE> - the Canvas3D object to be used for rendering;  if this is null then a single RGB, double buffered and depth buffered  Canvas3D object is created<DT><B>Since:</B><DD>Java3D 1.1</DD></DD></DL><HR><A NAME="Viewer(javax.media.j3d.Canvas3D[])"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>[]&nbsp;userCanvases)</PRE><DL><DD>Creates a default viewer object. The default values are used to create the PhysicalBody and PhysicalEnvironment.  The View is created with a front clip distance of 0.1f and a back clip distance of 10.0f.<P><DT><B>Parameters:</B><DD><CODE>userCanvases</CODE> - the Canvas3D objects to be used for rendering;  if this is null then a single RGB, double buffered and depth buffered  Canvas3D object is created<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL><HR><A NAME="Viewer(javax.media.j3d.Canvas3D[], javax.media.j3d.PhysicalBody, javax.media.j3d.PhysicalEnvironment, boolean)"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>[]&nbsp;userCanvases,              <A HREF="../../../../../javax/media/j3d/PhysicalBody.html">PhysicalBody</A>&nbsp;userBody,              <A HREF="../../../../../javax/media/j3d/PhysicalEnvironment.html">PhysicalEnvironment</A>&nbsp;userEnvironment,              boolean&nbsp;setVisible)</PRE><DL><DD>Creates a viewer object. The Canvas3D objects, PhysicalEnvironment, and PhysicalBody are taken from the arguments.<P><DT><B>Parameters:</B><DD><CODE>userCanvases</CODE> - the Canvas3D objects to be used for rendering;  if this is null then a single RGB, double buffered and depth buffered  Canvas3D object is created<DD><CODE>userBody</CODE> - the PhysicalBody to use for this Viewer; if it is  null, a default PhysicalBody object is created<DD><CODE>userEnvironment</CODE> - the PhysicalEnvironment to use for this Viewer;  if it is null, a default PhysicalEnvironment object is created<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL><HR><A NAME="Viewer(java.net.URL)"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>(java.net.URL&nbsp;userConfig)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>create a ConfiguredUniverse to use a configuration file</I><P><DD>Creates a default Viewer object. The default values are used to create the PhysicalEnvironment and PhysicalBody.  A single RGB, double buffered and depth buffered Canvas3D object is created.  The View is created with a front clip distance of 0.1f and a back clip distance of 10.0f.<P><DT><B>Parameters:</B><DD><CODE>userConfig</CODE> - the URL of the user configuration file used to  initialize the PhysicalBody object; this is always ignored<DT><B>Since:</B><DD>Java3D 1.1</DD></DD></DL><HR><A NAME="Viewer(javax.media.j3d.Canvas3D, java.net.URL)"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>(<A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>&nbsp;userCanvas,              java.net.URL&nbsp;userConfig)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>create a ConfiguredUniverse to use a configuration file</I><P><DD>Creates a default viewer object. The default values are used to create the PhysicalEnvironment and PhysicalBody.  The View is created with a front clip distance of 0.1f and a back clip distance of 10.0f.<P><DT><B>Parameters:</B><DD><CODE>userCanvas</CODE> - the Canvas3D object to be used for rendering;  if this is null then a single RGB, double buffered and depth buffered  Canvas3D object is created<DD><CODE>userConfig</CODE> - the URL of the user configuration file used to  initialize the PhysicalBody object; this is always ignored<DT><B>Since:</B><DD>Java3D 1.1</DD></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getViewer(javax.media.j3d.View)"><!-- --></A><H3>getViewer</H3><PRE>public static <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html">Viewer</A> <B>getViewer</B>(<A HREF="../../../../../javax/media/j3d/View.html">View</A>&nbsp;view)</PRE><DL><DD>Get the Viewer associated with the view object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The View object for inquiry.<DT><B>Returns:</B><DD>The Viewer object associated with this View object.  Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="removeViewerMapEntry(javax.media.j3d.View)"><!-- --></A><H3>removeViewerMapEntry</H3><PRE>public static <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html">Viewer</A> <B>removeViewerMapEntry</B>(<A HREF="../../../../../javax/media/j3d/View.html">View</A>&nbsp;view)</PRE><DL><DD>Removes the entry associated with the view object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The View object to be removed.<DT><B>Returns:</B><DD>The Viewer object associated with this View object.  Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="clearViewerMap()"><!-- --></A><H3>clearViewerMap</H3><PRE>public static void <B>clearViewerMap</B>()</PRE><DL><DD>Removes all Viewer mappings from the Viewer map. Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="isDvrEnabled()"><!-- --></A><H3>isDvrEnabled</H3><PRE>public boolean <B>isDvrEnabled</B>()</PRE><DL><DD>Returns a status flag indicating whether or not dynamic video size is enabled. Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="setDvrEnable(boolean)"><!-- --></A><H3>setDvrEnable</H3><PRE>public void <B>setDvrEnable</B>(boolean&nbsp;dvr)</PRE><DL><DD>Turns on or off dynamic video size. Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dvr</CODE> - enables or disables dynamic video size.<DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="getDvrFactor()"><!-- --></A><H3>getDvrFactor</H3><PRE>public float <B>getDvrFactor</B>()</PRE><DL><DD>Retrieves the dynamic video resize factor of this viewer. Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="setDvrFactor(float)"><!-- --></A><H3>setDvrFactor</H3><PRE>public void <B>setDvrFactor</B>(float&nbsp;dvr)</PRE><DL><DD>Set the dynamic video resize factor for this viewer. Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dvr</CODE> - set the dynamic video resize factor for this viewer.<DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="setDvrResizeCompensationEnable(boolean)"><!-- --></A><H3>setDvrResizeCompensationEnable</H3><PRE>public void <B>setDvrResizeCompensationEnable</B>(boolean&nbsp;dvrRCE)</PRE><DL><DD>Turns on or off dynamic video resize compensation.  Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dvrRCE</CODE> - enables or disables dynamic video resize compensation.<DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="getDvrResizeCompensationEnable()"><!-- --></A><H3>getDvrResizeCompensationEnable</H3><PRE>public boolean <B>getDvrResizeCompensationEnable</B>()</PRE><DL><DD>Returns a status flag indicating whether or not dynamic video resize  compensation is enabled. Note: This method is targeted for SUN framebuffer XVR-4000 and later  hardware that support video size extension.<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.3.1</DD></DD></DL></DD></DL><HR><A NAME="setVisible(boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</B>(boolean&nbsp;visible)</PRE><DL><DD>Call setVisible() on all Window components created by this Viewer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>visible</CODE> - boolean to be passed to the setVisible() calls on the  Window components created by this Viewer<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getView()"><!-- --></A><H3>getView</H3><PRE>public <A HREF="../../../../../javax/media/j3d/View.html">View</A> <B>getView</B>()</PRE><DL><DD>Returns the View object associated with the Viewer object.<P><DD><DL>

⌨️ 快捷键说明

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