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

📄 simpleuniverse.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<P><DL><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" title="class in javax.media.j3d"><CODE>Locale</CODE></A>, <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html" title="class in com.sun.j3d.utils.universe"><CODE>Viewer</CODE></A>, <A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html" title="class in com.sun.j3d.utils.universe"><CODE>ViewingPlatform</CODE></A>, <A HREF="../../../../../com/sun/j3d/utils/universe/MultiTransformGroup.html" title="class in com.sun.j3d.utils.universe"><CODE>MultiTransformGroup</CODE></A></DL></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" title="class in com.sun.j3d.utils.universe">ViewingPlatform</A>&nbsp;viewingPlatform,                      <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html" title="class in com.sun.j3d.utils.universe">Viewer</A>&nbsp;viewer)</PRE><DL><DD>Creates the "view" side of the scene graph.  The passed in parameters override the default values where appropriate.<P><DL><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></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" title="class in com.sun.j3d.utils.universe">ViewingPlatform</A>&nbsp;viewingPlatform,                      <A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html" title="class in com.sun.j3d.utils.universe">Viewer</A>&nbsp;viewer,                      <A HREF="../../../../../com/sun/j3d/utils/universe/LocaleFactory.html" title="interface in com.sun.j3d.utils.universe">LocaleFactory</A>&nbsp;localeFactory)</PRE><DL><DD>Creates the "view" side of the scene graph.  The passed in parameters override the default values where appropriate.<P><DL><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></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Locale.html" title="class in javax.media.j3d">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" title="class in com.sun.j3d.utils.universe">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" title="class in com.sun.j3d.utils.universe">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" title="class in javax.media.j3d">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" title="class in com.sun.j3d.utils.universe"><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" title="class in javax.media.j3d">Canvas3D</A> <B>getCanvas</B>(int&nbsp;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" title="class in javax.media.j3d">BranchGroup</A>&nbsp;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><DT><B>Parameters:</B><DD><CODE>bg</CODE> - The BranchGroup to attach to this Universe's Locale.</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 BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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/PlatformGeometry.html" title="class in com.sun.j3d.utils.universe"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/sun/j3d/utils/universe/Viewer.html" title="class in com.sun.j3d.utils.universe"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?com/sun/j3d/utils/universe/SimpleUniverse.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SimpleUniverse.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../../allclasses-noframe.html"><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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>

⌨️ 快捷键说明

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