📄 viewer.html
字号:
<DT><B>Returns:</B><DD>The View object of this Viewer.</DL></DD></DL><HR><A NAME="setViewingPlatform(com.sun.j3d.utils.universe.ViewingPlatform)"><!-- --></A><H3>setViewingPlatform</H3><PRE>public void <B>setViewingPlatform</B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html">ViewingPlatform</A> platform)</PRE><DL><DD>Set the ViewingPlatform object used by this Viewer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>platform</CODE> - The ViewingPlatform object to set for this Viewer object. Use null to unset the current value and not assign assign a new ViewingPlatform object.</DL></DD></DL><HR><A NAME="getViewingPlatform()"><!-- --></A><H3>getViewingPlatform</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html">ViewingPlatform</A> <B>getViewingPlatform</B>()</PRE><DL><DD>Get the ViewingPlatform object used by this Viewer.<P><DD><DL><DT><B>Returns:</B><DD>The ViewingPlatform object used by this Viewer object.</DL></DD></DL><HR><A NAME="setAvatar(com.sun.j3d.utils.universe.ViewerAvatar)"><!-- --></A><H3>setAvatar</H3><PRE>public void <B>setAvatar</B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ViewerAvatar.html">ViewerAvatar</A> avatar)</PRE><DL><DD>Sets the geometry to be associated with the viewer's avatar. The avatar is the geometry used to represent the viewer in the virtual world.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>avatar</CODE> - The geometry to associate with this Viewer object. Passing in null will cause any geometry associated with the Viewer to be removed from the scen graph.</DL></DD></DL><HR><A NAME="getAvatar()"><!-- --></A><H3>getAvatar</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/universe/ViewerAvatar.html">ViewerAvatar</A> <B>getAvatar</B>()</PRE><DL><DD>Gets the geometry associated with the viewer's avatar. The avatar is the geometry used to represent the viewer in the virtual world.<P><DD><DL><DT><B>Returns:</B><DD>The root of the scene graph that is used to represent the viewer's avatar.</DL></DD></DL><HR><A NAME="getPhysicalBody()"><!-- --></A><H3>getPhysicalBody</H3><PRE>public <A HREF="../../../../../javax/media/j3d/PhysicalBody.html">PhysicalBody</A> <B>getPhysicalBody</B>()</PRE><DL><DD>Returns the PhysicalBody object associated with the Viewer object.<P><DD><DL><DT><B>Returns:</B><DD>A reference to the PhysicalBody object.</DL></DD></DL><HR><A NAME="getPhysicalEnvironment()"><!-- --></A><H3>getPhysicalEnvironment</H3><PRE>public <A HREF="../../../../../javax/media/j3d/PhysicalEnvironment.html">PhysicalEnvironment</A> <B>getPhysicalEnvironment</B>()</PRE><DL><DD>Returns the PhysicalEnvironment object associated with the Viewer object.<P><DD><DL><DT><B>Returns:</B><DD>A reference to the PhysicalEnvironment object.</DL></DD></DL><HR><A NAME="getCanvas3D()"><!-- --></A><H3>getCanvas3D</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A> <B>getCanvas3D</B>()</PRE><DL><DD>Returns the 0th Canvas3D object associated with this Viewer object<P><DD><DL><DT><B>Returns:</B><DD>a reference to the 0th Canvas3D object associated with this Viewer object<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getCanvas3D(int)"><!-- --></A><H3>getCanvas3D</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A> <B>getCanvas3D</B>(int canvasNum)</PRE><DL><DD>Returns the Canvas3D object at the specified index associated with this Viewer object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>canvasNum</CODE> - the index of the Canvas3D object to retrieve; if there is no Canvas3D object for the given index, null is returned<DT><B>Returns:</B><DD>a reference to a Canvas3D object associated with this Viewer object<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getCanvas3Ds()"><!-- --></A><H3>getCanvas3Ds</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>[] <B>getCanvas3Ds</B>()</PRE><DL><DD>Returns all the Canvas3D objects associated with this Viewer object.<P><DD><DL><DT><B>Returns:</B><DD>an array of references to the Canvas3D objects associated with this Viewer object<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getCanvases()"><!-- --></A><H3>getCanvases</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A> <B>getCanvases</B>()</PRE><DL><DD><B>Deprecated.</B> <I>superceded by getCanvas3D()</I><P><DD>Returns the canvas associated with this Viewer object.<P><DD><DL></DL></DD></DL><HR><A NAME="getFrame()"><!-- --></A><H3>getFrame</H3><PRE>public java.awt.Frame <B>getFrame</B>()</PRE><DL><DD><B>Deprecated.</B> <I>AWT Frame components are no longer created by the Viewer class.</I><P><DD>This method is no longer supported since Java 3D 1.3.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.UnsupportedOperationException</CODE> - if called.</DL></DD></DL><HR><A NAME="getJFrame(int)"><!-- --></A><H3>getJFrame</H3><PRE>public javax.swing.JFrame <B>getJFrame</B>(int frameNum)</PRE><DL><DD>Returns the JFrame object created by this Viewer object at the specified index. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object, a JPanel containing the Canvas3D object, and a JFrame to place the JPanel in. <p> NOTE: When running under JDK 1.4 or newer, the JFrame always directly contains the JPanel which contains the Canvas3D. When running under JDK 1.3.1 and creating a borderless full screen through a configuration file, the JFrame will instead contain a JWindow which will contain the JPanel and Canvas3D. <p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>frameNum</CODE> - the index of the JFrame object to retrieve; if there is no JFrame object for the given index, null is returned<DT><B>Returns:</B><DD>a reference to JFrame object created by this Viewer object<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getJFrames()"><!-- --></A><H3>getJFrames</H3><PRE>public javax.swing.JFrame[] <B>getJFrames</B>()</PRE><DL><DD>Returns all the JFrames created by this Viewer object. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object, a JPanel containing the Canvas3D object, and a JFrame to place the JPanel in.<p> NOTE: When running under JDK 1.4 or newer, the JFrame always directly contains the JPanel which contains the Canvas3D. When running under JDK 1.3.1 and creating a borderless full screen through a configuration file, the JFrame will instead contain a JWindow which will contain the JPanel and Canvas3D.<p><P><DD><DL><DT><B>Returns:</B><DD>an array of references to the JFrame objects created by this Viewer object, or null if no JFrame objects were created<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getPanel()"><!-- --></A><H3>getPanel</H3><PRE>public java.awt.Panel <B>getPanel</B>()</PRE><DL><DD><B>Deprecated.</B> <I>AWT Panel components are no longer created by the Viewer class.</I><P><DD>This method is no longer supported since Java 3D 1.3.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.UnsupportedOperationException</CODE> - if called.</DL></DD></DL><HR><A NAME="getJPanel(int)"><!-- --></A><H3>getJPanel</H3><PRE>public javax.swing.JPanel <B>getJPanel</B>(int panelNum)</PRE><DL><DD>Returns the JPanel object created by this Viewer object at the specified index. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object and a JPanel into which to place the Canvas3D object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>panelNum</CODE> - the index of the JPanel object to retrieve; if there is no JPanel object for the given index, null is returned<DT><B>Returns:</B><DD>a reference to a JPanel object created by this Viewer object<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getJPanels()"><!-- --></A><H3>getJPanels</H3><PRE>public javax.swing.JPanel[] <B>getJPanels</B>()</PRE><DL><DD>Returns all the JPanel objects created by this Viewer object. If a Viewer is constructed without any Canvas3D objects then the Viewer object will create a Canva3D object and a JPanel into which to place the Canvas3D object.<P><DD><DL><DT><B>Returns:</B><DD>an array of references to the JPanel objects created by this Viewer object, or null or no JPanel objects were created<DT><B>Since:</B><DD>Java3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="createAudioDevice()"><!-- --></A><H3>createAudioDevice</H3><PRE>public <A HREF="../../../../../javax/media/j3d/AudioDevice.html">AudioDevice</A> <B>createAudioDevice</B>()</PRE><DL><DD>Used to create and initialize a default AudioDevice3D used for sound rendering.<P><DD><DL><DT><B>Returns:</B><DD>reference to created AudioDevice, or null if error occurs.</DL></DD></DL><HR><A NAME="getUniverse()"><!-- --></A><H3>getUniverse</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html">SimpleUniverse</A> <B>getUniverse</B>()</PRE><DL><DD>Returns the Universe to which this Viewer is attached<P><DD><DL><DT><B>Returns:</B><DD>the Universe to which this Viewer is attached<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/j3d/utils/universe/ViewerAvatar.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> <A HREF="Viewer.html" TARGET="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -