📄 viewer.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> javax.swing.JFrame</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getJFrame(int)">getJFrame</A></B>(int frameNum)</CODE><BR> Returns the JFrame object created by this Viewer object at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> javax.swing.JFrame[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getJFrames()">getJFrames</A></B>()</CODE><BR> Returns all the JFrames created by this Viewer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> javax.swing.JPanel</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getJPanel(int)">getJPanel</A></B>(int panelNum)</CODE><BR> Returns the JPanel object created by this Viewer object at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> javax.swing.JPanel[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getJPanels()">getJPanels</A></B>()</CODE><BR> Returns all the JPanel objects created by this Viewer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Panel</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getPanel()">getPanel</A></B>()</CODE><BR> <B>Deprecated.</B> <I>AWT Panel components are no longer created by the Viewer class.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/PhysicalBody.html" title="class in javax.media.j3d">PhysicalBody</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getPhysicalBody()">getPhysicalBody</A></B>()</CODE><BR> Returns the PhysicalBody object associated with the Viewer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/PhysicalEnvironment.html" title="class in javax.media.j3d">PhysicalEnvironment</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getPhysicalEnvironment()">getPhysicalEnvironment</A></B>()</CODE><BR> Returns the PhysicalEnvironment object associated with the Viewer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html" title="class in com.sun.j3d.utils.universe">SimpleUniverse</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getUniverse()">getUniverse</A></B>()</CODE><BR> Returns the Universe to which this Viewer is attached</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/View.html" title="class in javax.media.j3d">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getView()">getView</A></B>()</CODE><BR> Returns the View object associated with the Viewer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html" title="class in com.sun.j3d.utils.universe">Viewer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getViewer(javax.media.j3d.View)">getViewer</A></B>(<A HREF="../../../../../javax/media/j3d/View.html" title="class in javax.media.j3d">View</A> view)</CODE><BR> Get the Viewer associated with the view object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html" title="class in com.sun.j3d.utils.universe">ViewingPlatform</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#getViewingPlatform()">getViewingPlatform</A></B>()</CODE><BR> Get 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#isDvrEnabled()">isDvrEnabled</A></B>()</CODE><BR> Returns a status flag indicating whether or not dynamic video size is enabled.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html" title="class in com.sun.j3d.utils.universe">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" title="class in javax.media.j3d">View</A> view)</CODE><BR> 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> 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" title="class in com.sun.j3d.utils.universe">ViewerAvatar</A> avatar)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setDvrEnable(boolean)">setDvrEnable</A></B>(boolean dvr)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setDvrFactor(float)">setDvrFactor</A></B>(float dvr)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setDvrResizeCompensationEnable(boolean)">setDvrResizeCompensationEnable</A></B>(boolean dvrRCE)</CODE><BR> 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> 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" title="class in com.sun.j3d.utils.universe">ViewingPlatform</A> platform)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html#setVisible(boolean)">setVisible</A></B>(boolean visible)</CODE><BR> Call setVisible() on all Window components created by this Viewer.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></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" title="class in javax.media.j3d">Canvas3D</A> 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><DL><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></DT> <DD>Java3D 1.1</DD></DL></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" title="class in javax.media.j3d">Canvas3D</A>[] 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><DL><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></DT> <DD>Java3D 1.3</DD></DL></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" title="class in javax.media.j3d">Canvas3D</A>[] userCanvases, <A HREF="../../../../../javax/media/j3d/PhysicalBody.html" title="class in javax.media.j3d">PhysicalBody</A> userBody, <A HREF="../../../../../javax/media/j3d/PhysicalEnvironment.html" title="class in javax.media.j3d">PhysicalEnvironment</A> userEnvironment, boolean setVisible)</PRE><DL><DD>Creates a viewer object. The Canvas3D objects, PhysicalEnvironment, and PhysicalBody are taken from the arguments.<P><DL><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<DD><CODE>setVisible</CODE> - determines if the Frames should be set to visible once created<DT><B>Since:</B></DT> <DD>Java3D 1.3</DD></DL></DL><HR><A NAME="Viewer(java.net.URL)"><!-- --></A><H3>Viewer</H3><PRE>public <B>Viewer</B>(java.net.URL userConfig)</PRE><DL><DD><B>Deprecated.</B> <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><DL><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></DT> <DD>Java3D 1.1</DD></DL></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" title="class in javax.media.j3d">Canvas3D</A> userCanvas, java.net.URL userConfig)</PRE><DL><DD><B>Deprecated.</B> <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><DL><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></DT> <DD>Java3D 1.1</DD></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -