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

📄 graphicscontext3d.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the specified light at the specified index location.</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="../../../javax/media/j3d/GraphicsContext3D.html#insertSound(javax.media.j3d.Sound, int)">insertSound</A></B>(<A HREF="../../../javax/media/j3d/Sound.html">Sound</A>&nbsp;sound,            int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the specified sound at the specified index location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/GraphicsContext3D.html#isSoundPlaying(int)">isSoundPlaying</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the sound playing flag.</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="../../../javax/media/j3d/GraphicsContext3D.html#multiplyModelTransform(javax.media.j3d.Transform3D)">multiplyModelTransform</A></B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Multiplies the current model transform by the specified transform and stores the result back into the current transform.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/GraphicsContext3D.html#numLights()">numLights</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the current number of lights in this graphics context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/GraphicsContext3D.html#numSounds()">numSounds</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the current number of sounds in this graphics context.</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="../../../javax/media/j3d/GraphicsContext3D.html#readRaster(javax.media.j3d.Raster)">readRaster</A></B>(<A HREF="../../../javax/media/j3d/Raster.html">Raster</A>&nbsp;raster)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read an image from the frame buffer and copy it into the ImageComponent and/or DepthComponent objects referenced by the specified Raster 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="../../../javax/media/j3d/GraphicsContext3D.html#removeLight(int)">removeLight</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the light at the specified index location.</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="../../../javax/media/j3d/GraphicsContext3D.html#removeSound(int)">removeSound</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the sound at the specified index location.</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="../../../javax/media/j3d/GraphicsContext3D.html#setAppearance(javax.media.j3d.Appearance)">setAppearance</A></B>(<A HREF="../../../javax/media/j3d/Appearance.html">Appearance</A>&nbsp;appearance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current Appearance object to the specified Appearance component 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="../../../javax/media/j3d/GraphicsContext3D.html#setAuralAttributes(javax.media.j3d.AuralAttributes)">setAuralAttributes</A></B>(<A HREF="../../../javax/media/j3d/AuralAttributes.html">AuralAttributes</A>&nbsp;attributes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current AuralAttributes object to the specified AuralAttributes component 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="../../../javax/media/j3d/GraphicsContext3D.html#setBackground(javax.media.j3d.Background)">setBackground</A></B>(<A HREF="../../../javax/media/j3d/Background.html">Background</A>&nbsp;background)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current Background to the specified Background leaf node 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="../../../javax/media/j3d/GraphicsContext3D.html#setBufferOverride(boolean)">setBufferOverride</A></B>(boolean&nbsp;bufferOverride)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag that specifies whether the double buffering and stereo mode from the Canvas3D are overridden.</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="../../../javax/media/j3d/GraphicsContext3D.html#setFog(javax.media.j3d.Fog)">setFog</A></B>(<A HREF="../../../javax/media/j3d/Fog.html">Fog</A>&nbsp;fog)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current Fog to the specified Fog leaf node 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="../../../javax/media/j3d/GraphicsContext3D.html#setFrontBufferRendering(boolean)">setFrontBufferRendering</A></B>(boolean&nbsp;frontBufferRendering)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a flag that enables or disables immediate mode rendering into the front buffer of a double buffered Canvas3D.</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="../../../javax/media/j3d/GraphicsContext3D.html#setHiRes(javax.media.j3d.HiResCoord)">setHiRes</A></B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A>&nbsp;hiRes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the HiRes coordinate of this context to the location specified by the HiRes argument.</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="../../../javax/media/j3d/GraphicsContext3D.html#setHiRes(int[], int[], int[])">setHiRes</A></B>(int[]&nbsp;x,         int[]&nbsp;y,         int[]&nbsp;z)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the HiRes coordinate of this context to the location specified by the parameters provided.</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="../../../javax/media/j3d/GraphicsContext3D.html#setLight(javax.media.j3d.Light, int)">setLight</A></B>(<A HREF="../../../javax/media/j3d/Light.html">Light</A>&nbsp;light,         int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the specified light with the light provided.</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="../../../javax/media/j3d/GraphicsContext3D.html#setModelClip(javax.media.j3d.ModelClip)">setModelClip</A></B>(<A HREF="../../../javax/media/j3d/ModelClip.html">ModelClip</A>&nbsp;modelClip)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current ModelClip leaf node to the specified 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="../../../javax/media/j3d/GraphicsContext3D.html#setModelTransform(javax.media.j3d.Transform3D)">setModelTransform</A></B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current model transform to a copy of the specified transform.</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="../../../javax/media/j3d/GraphicsContext3D.html#setSound(javax.media.j3d.Sound, int)">setSound</A></B>(<A HREF="../../../javax/media/j3d/Sound.html">Sound</A>&nbsp;sound,         int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the specified sound with the sound provided.</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="../../../javax/media/j3d/GraphicsContext3D.html#setStereoMode(int)">setStereoMode</A></B>(int&nbsp;stereoMode)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the stereo mode for immediate mode rendering.</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 =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="STEREO_LEFT"><!-- --></A><H3>STEREO_LEFT</H3><PRE>public static final int <B>STEREO_LEFT</B></PRE><DL><DD>Specifies that rendering is done to the left eye.<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/GraphicsContext3D.html#setStereoMode(int)"><CODE>setStereoMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.GraphicsContext3D.STEREO_LEFT">Constant Field Values</A></DL></DL><HR><A NAME="STEREO_RIGHT"><!-- --></A><H3>STEREO_RIGHT</H3><PRE>public static final int <B>STEREO_RIGHT</B></PRE><DL><DD>Specifies that rendering is done to the right eye.<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/GraphicsContext3D.html#setStereoMode(int)"><CODE>setStereoMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.GraphicsContext3D.STEREO_RIGHT">Constant Field Values</A></DL></DL><HR><A NAME="STEREO_BOTH"><!-- --></A><H3>STEREO_BOTH</H3><PRE>public static final int <B>STEREO_BOTH</B></PRE><DL><DD>Specifies that rendering is done to both eyes.  This is the default.<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/GraphicsContext3D.html#setStereoMode(int)"><CODE>setStereoMode(int)</CODE></A>, <A HREF="../../../constant-values.html#javax.media.j3d.GraphicsContext3D.STEREO_BOTH">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getCanvas3D()"><!-- --></A><H3>getCanvas3D</H3><PRE>public <A HREF="../../../javax/media/j3d/Canvas3D.html">Canvas3D</A> <B>getCanvas3D</B>()</PRE><DL><DD>Gets the Canvas3D that created this GraphicsContext3D.<P><DD><DL><DT><B>Returns:</B><DD>the Canvas3D that created this GraphicsContext3D</DL></DD></DL><HR><A NAME="setAppearance(javax.media.j3d.Appearance)"><!-- --></A><H3>setAppearance</H3><PRE>public void <B>setAppearance</B>(<A HREF="../../../javax/media/j3d/Appearance.html">Appearance</A>&nbsp;appearance)</PRE><DL><DD>Sets the current Appearance object to the specified Appearance component object. The graphics context stores a reference to the specified  Appearance object. This means that the application may modify  individual appearance attributes by using the appropriate  methods on the Appearance object. If the Appearance object is null, default values will be used  for all appearance attributes - it is as if an Appearance node were created using the default constructor.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>appearance</CODE> - the new Appearance object</DL></DD></DL><HR><A NAME="getAppearance()"><!-- --></A><H3>getAppearance</H3><PRE>public <A HREF="../../../javax/media/j3d/Appearance.html">Appearance</A> <B>getAppearance</B>()</PRE><DL><DD>Retrieves the current Appearance component object.<P><DD><DL><DT><B>Returns:</B><DD>the current Appearance object</DL></DD></DL><HR><A NAME="setBackground(javax.media.j3d.Background)"><!-- --></A><H3>setBackground</H3><PRE>public void <B>setBackground</B>(<A HREF="../../../javax/media/j3d/Background.html">Background</A>&nbsp;background)</PRE><DL><DD>Sets the current Background to the specified Background leaf node object. The graphics context stores a reference to the specified  Background node. This means that the application may modify  the background color or image by using the appropriate  methods on the Background node. The Background node must  not be part of a live scene graph, nor may it subsequently  be made part of a live scene graph-an IllegalSharingException  is thrown in such cases. If the Background object is null,  the default background color of black (0,0,0) is used to clear the canvas prior to rendering a new frame. The Background  node's application region is ignored for immediate-mode  rendering.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>background</CODE> - the new Background object<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Background node is part of or is subsequently made part of a live scene graph.</DL></DD></DL><HR><A NAME="getBackground()"><!-- --></A><H3>getBackground</H3><PRE>public <A HREF="../../../javax/media/j3d/Background.html">Background</A> <B>getBackground</B>()</PRE><DL><DD>Retrieves the current Background leaf node object.<P><DD><DL><DT><B>Returns:</B><DD>the current Background object</DL></DD></DL><HR><A NAME="setFog(javax.media.j3d.Fog)"><!-- --></A><H3>setFog</H3><PRE>public void <B>setFog</B>(<A HREF="../../../javax/media/j3d/Fog.html">Fog</A>&nbsp;fog)</PRE><DL><DD>Sets the current Fog to the specified Fog leaf node object. The graphics context stores a reference to the specified  Fog node. This means that the application may modify the  fog attributes using the appropriate methods on the Fog 

⌨️ 快捷键说明

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