📄 simpleuniverse.html
字号:
<P><DT><B>Parameters:</B><DD><CODE>origin</CODE> - The origin used to set the origin of the Locale object. If this object is null, then 0.0 is used.<DD><CODE>numTransforms</CODE> - The number of transforms to be in the MultiTransformGroup object.<DD><CODE>canvas</CODE> - The canvas to draw into. If this is null, it is ignored and a canvas will be created by the utility.<DD><CODE>userConfig</CODE> - The URL to the user's configuration file, used by the Viewer object. This is never examined and default values are always taken.<DD><CODE>localeFactory</CODE> - The Locale Factory which will instantiate the locale(s) for this universe.<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/MultiTransformGroup.html"><CODE>MultiTransformGroup</CODE></A></DL><HR><A NAME="SimpleUniverse(com.sun.j3d.utils.universe.ViewingPlatform, com.sun.j3d.utils.universe.Viewer)"><!-- --></A><H3>SimpleUniverse</H3><PRE>public <B>SimpleUniverse</B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html">ViewingPlatform</A> viewingPlatform, <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html">Viewer</A> viewer)</PRE><DL><DD>Creates the "view" side of the scene graph. The passed in parameters override the default values where appropriate.<P><DT><B>Parameters:</B><DD><CODE>viewingPlatform</CODE> - The viewingPlatform to use to create the "view" side of the scene graph.<DD><CODE>viewer</CODE> - The viewer object to use to create the "view" side of the scene graph.</DL><HR><A NAME="SimpleUniverse(com.sun.j3d.utils.universe.ViewingPlatform, com.sun.j3d.utils.universe.Viewer, com.sun.j3d.utils.universe.LocaleFactory)"><!-- --></A><H3>SimpleUniverse</H3><PRE>public <B>SimpleUniverse</B>(<A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html">ViewingPlatform</A> viewingPlatform, <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html">Viewer</A> viewer, <A HREF="../../../../../com/sun/j3d/utils/universe/LocaleFactory.html">LocaleFactory</A> localeFactory)</PRE><DL><DD>Creates the "view" side of the scene graph. The passed in parameters override the default values where appropriate.<P><DT><B>Parameters:</B><DD><CODE>viewingPlatform</CODE> - The viewingPlatform to use to create the "view" side of the scene graph.<DD><CODE>viewer</CODE> - The viewer object to use to create the "view" side of the scene graph.<DD><CODE>localeFactory</CODE> - The factory used to create the Locale Object</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="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Locale.html">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Returns the Locale object associated with this scene graph.<P><DD><DL><DT><B>Returns:</B><DD>The Locale object used in the construction of this scene graph.</DL></DD></DL><HR><A NAME="getViewer()"><!-- --></A><H3>getViewer</H3><PRE>public <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html">Viewer</A> <B>getViewer</B>()</PRE><DL><DD>Returns the Viewer object associated with this scene graph. SimpleUniverse creates a single Viewer object for use in the scene graph.<P><DD><DL><DT><B>Returns:</B><DD>The Viewer object associated with this scene graph.</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>Returns the ViewingPlatform object associated with this scene graph.<P><DD><DL><DT><B>Returns:</B><DD>The ViewingPlatform object of this scene graph.</DL></DD></DL><HR><A NAME="getCanvas()"><!-- --></A><H3>getCanvas</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A> <B>getCanvas</B>()</PRE><DL><DD>Returns the Canvas3D object associated with this Java 3D Universe.<P><DD><DL><DT><B>Returns:</B><DD>A reference to the Canvas3D object associated with the Viewer object. This method is equivalent to calling getCanvas(0).<DT><B>See Also:</B><DD><A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html"><CODE>Viewer</CODE></A></DL></DD></DL><HR><A NAME="getCanvas(int)"><!-- --></A><H3>getCanvas</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A> <B>getCanvas</B>(int canvasNum)</PRE><DL><DD>Returns the Canvas3D object at the specified index associated with this Java 3D Universe.<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 the Canvas3D object associated with the Viewer object.</DL></DD></DL><HR><A NAME="addBranchGraph(javax.media.j3d.BranchGroup)"><!-- --></A><H3>addBranchGraph</H3><PRE>public void <B>addBranchGraph</B>(<A HREF="../../../../../javax/media/j3d/BranchGroup.html">BranchGroup</A> bg)</PRE><DL><DD>Used to add Nodes to the geometry side (as opposed to the view side) of the scene graph. This is a short cut to getting the Locale object and calling that object's addBranchGraph() method.<P><DD><DL></DL></DD></DL><HR><A NAME="getPreferredConfiguration()"><!-- --></A><H3>getPreferredConfiguration</H3><PRE>public static java.awt.GraphicsConfiguration <B>getPreferredConfiguration</B>()</PRE><DL><DD>Finds the preferred <code>GraphicsConfiguration</code> object for the system. This object can then be used to create the Canvas3D objet for this system.<P><DD><DL><DT><B>Returns:</B><DD>The best <code>GraphicsConfiguration</code> object for the system.</DL></DD></DL><HR><A NAME="cleanup()"><!-- --></A><H3>cleanup</H3><PRE>public void <B>cleanup</B>()</PRE><DL><DD>Cleanup memory use and reference by SimpleUniverse. Typically it should be invoked by the applet's destroy method.<P><DD><DL></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/PlatformGeometry.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.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="SimpleUniverse.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -