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

📄 graphicscontext3d.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 4 页
字号:
 node object. The Fog 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 Fog object is null, fog is disabled.  Both the region of influence and the hierarchical scope  of the Fog node are ignored for immediate-mode rendering.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fog</CODE> - the new Fog object<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Fog node is part of or is subsequently made part of a live scene graph.</DL></DD></DL><HR><A NAME="getFog()"><!-- --></A><H3>getFog</H3><PRE>public <A HREF="../../../javax/media/j3d/Fog.html">Fog</A> <B>getFog</B>()</PRE><DL><DD>Retrieves the current Fog leaf node object.<P><DD><DL><DT><B>Returns:</B><DD>the current Fog object</DL></DD></DL><HR><A NAME="setModelClip(javax.media.j3d.ModelClip)"><!-- --></A><H3>setModelClip</H3><PRE>public void <B>setModelClip</B>(<A HREF="../../../javax/media/j3d/ModelClip.html">ModelClip</A>&nbsp;modelClip)</PRE><DL><DD>Sets the current ModelClip leaf node to the specified object. The graphics context stores a reference to the specified ModelClip node. This means that the application may modify the model clipping attributes using the appropriate methods on the ModelClip node object. The ModelClip 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 ModelClip object is null, model clipping is disabled.  Both the region of influence and the hierarchical scope of the ModelClip node are ignored for immediate-mode rendering.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>modelClip</CODE> - the new ModelClip node<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the ModelClip node is part of or is subsequently made part of a live scene graph.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="getModelClip()"><!-- --></A><H3>getModelClip</H3><PRE>public <A HREF="../../../javax/media/j3d/ModelClip.html">ModelClip</A> <B>getModelClip</B>()</PRE><DL><DD>Retrieves the current ModelClip leaf node object.<P><DD><DL><DT><B>Returns:</B><DD>the current ModelClip object<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL><HR><A NAME="setLight(javax.media.j3d.Light, int)"><!-- --></A><H3>setLight</H3><PRE>public void <B>setLight</B>(<A HREF="../../../javax/media/j3d/Light.html">Light</A>&nbsp;light,                     int&nbsp;index)</PRE><DL><DD>Replaces the specified light with the light provided. The graphics context stores a reference to each light  object in the list of lights. This means that the  application may modify the light attributes for any of the lights using the appropriate methods on that  Light node object. None of the Light nodes in the list  of lights may be part of a live scene graph, nor may  they subsequently be made part of a live scene graph - an IllegalSharingException is thrown in such cases.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>light</CODE> - the new light<DD><CODE>index</CODE> - which light to replace<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Light node is part of or is subsequently made part of a live scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if the Light object is null.</DL></DD></DL><HR><A NAME="insertLight(javax.media.j3d.Light, int)"><!-- --></A><H3>insertLight</H3><PRE>public void <B>insertLight</B>(<A HREF="../../../javax/media/j3d/Light.html">Light</A>&nbsp;light,                        int&nbsp;index)</PRE><DL><DD>Inserts the specified light at the specified index location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>light</CODE> - the new light<DD><CODE>index</CODE> - at which location to insert<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Light node is part of or is subsequently made part of a live scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if the Light object is null.</DL></DD></DL><HR><A NAME="removeLight(int)"><!-- --></A><H3>removeLight</H3><PRE>public void <B>removeLight</B>(int&nbsp;index)</PRE><DL><DD>Removes the light at the specified index location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - which light to remove</DL></DD></DL><HR><A NAME="getLight(int)"><!-- --></A><H3>getLight</H3><PRE>public <A HREF="../../../javax/media/j3d/Light.html">Light</A> <B>getLight</B>(int&nbsp;index)</PRE><DL><DD>Retrieves the index selected light.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - which light to return<DT><B>Returns:</B><DD>the light at location index</DL></DD></DL><HR><A NAME="getAllLights()"><!-- --></A><H3>getAllLights</H3><PRE>public java.util.Enumeration <B>getAllLights</B>()</PRE><DL><DD>Retrieves the enumeration object of all the lights.<P><DD><DL><DT><B>Returns:</B><DD>the enumeration object of all the lights</DL></DD></DL><HR><A NAME="addLight(javax.media.j3d.Light)"><!-- --></A><H3>addLight</H3><PRE>public void <B>addLight</B>(<A HREF="../../../javax/media/j3d/Light.html">Light</A>&nbsp;light)</PRE><DL><DD>Appends the specified light to this graphics context's list of lights. Adding a null Light object to the list will result  in a NullPointerException. Both the region of influence  and the hierarchical scope of all lights in the list  are ignored for immediate-mode rendering.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>light</CODE> - the light to add<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Light node is part of or is subsequently made part of a live scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if the Light object is null.</DL></DD></DL><HR><A NAME="numLights()"><!-- --></A><H3>numLights</H3><PRE>public int <B>numLights</B>()</PRE><DL><DD>Retrieves the current number of lights in this graphics context.<P><DD><DL><DT><B>Returns:</B><DD>the current number of lights</DL></DD></DL><HR><A NAME="setHiRes(int[], int[], int[])"><!-- --></A><H3>setHiRes</H3><PRE>public void <B>setHiRes</B>(int[]&nbsp;x,                     int[]&nbsp;y,                     int[]&nbsp;z)</PRE><DL><DD>Sets the HiRes coordinate of this context to the location specified by the parameters provided. The parameters x, y, and z are arrays of eight 32-bit  integers that specify the high-resolution coordinates point.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - an eight element array specifying the x position<DD><CODE>y</CODE> - an eight element array specifying the y position<DD><CODE>z</CODE> - an eight element array specifying the z position<DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/HiResCoord.html"><CODE>HiResCoord</CODE></A></DL></DD></DL><HR><A NAME="setHiRes(javax.media.j3d.HiResCoord)"><!-- --></A><H3>setHiRes</H3><PRE>public void <B>setHiRes</B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A>&nbsp;hiRes)</PRE><DL><DD>Sets the HiRes coordinate of this context to the location specified by the HiRes argument.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hiRes</CODE> - the HiRes coordinate specifying the a new location</DL></DD></DL><HR><A NAME="getHiRes(javax.media.j3d.HiResCoord)"><!-- --></A><H3>getHiRes</H3><PRE>public void <B>getHiRes</B>(<A HREF="../../../javax/media/j3d/HiResCoord.html">HiResCoord</A>&nbsp;hiRes)</PRE><DL><DD>Retrieves the current HiRes coordinate of this context.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hiRes</CODE> - a HiResCoord object that will receive the HiRes coordinate of this context</DL></DD></DL><HR><A NAME="setModelTransform(javax.media.j3d.Transform3D)"><!-- --></A><H3>setModelTransform</H3><PRE>public void <B>setModelTransform</B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;t)</PRE><DL><DD>Sets the current model transform to a copy of the specified transform. A BadTransformException is thrown if an attempt is made  to specify an illegal Transform3D.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the new model transform<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/BadTransformException.html">BadTransformException</A></CODE> - if the transform is not affine.</DL></DD></DL><HR><A NAME="multiplyModelTransform(javax.media.j3d.Transform3D)"><!-- --></A><H3>multiplyModelTransform</H3><PRE>public void <B>multiplyModelTransform</B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;t)</PRE><DL><DD>Multiplies the current model transform by the specified transform and stores the result back into the current transform. The specified transformation must be affine.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the model transform to be concatenated with the current model transform<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/BadTransformException.html">BadTransformException</A></CODE> - if the transform is not affine.</DL></DD></DL><HR><A NAME="getModelTransform(javax.media.j3d.Transform3D)"><!-- --></A><H3>getModelTransform</H3><PRE>public void <B>getModelTransform</B>(<A HREF="../../../javax/media/j3d/Transform3D.html">Transform3D</A>&nbsp;t)</PRE><DL><DD>Retrieves the current model transform.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the model transform that will receive the current model transform</DL></DD></DL><HR><A NAME="setSound(javax.media.j3d.Sound, int)"><!-- --></A><H3>setSound</H3><PRE>public void <B>setSound</B>(<A HREF="../../../javax/media/j3d/Sound.html">Sound</A>&nbsp;sound,                     int&nbsp;index)</PRE><DL><DD>Replaces the specified sound with the sound provided. The graphics context stores a reference to each sound  object in the list of sounds. This means that the  application may modify the sound attributes for any of the sounds by using the appropriate methods on  that Sound node object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sound</CODE> - the new sound<DD><CODE>index</CODE> - which sound to replace<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Sound node is part of or is subsequently made part of a live scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if the Sound object is null.</DL></DD></DL><HR><A NAME="insertSound(javax.media.j3d.Sound, int)"><!-- --></A><H3>insertSound</H3><PRE>public void <B>insertSound</B>(<A HREF="../../../javax/media/j3d/Sound.html">Sound</A>&nbsp;sound,                        int&nbsp;index)</PRE><DL><DD>Inserts the specified sound at the specified index location. Inserting a sound to the list of sounds implicitly starts the sound playing. Once a sound is finished playing, it can be  restarted by setting the sound's enable flag to true.  The scheduling region of all sounds in the list is ignored  for immediate-mode rendering.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sound</CODE> - the new sound<DD><CODE>index</CODE> - at which location to insert<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html">IllegalSharingException</A></CODE> - if the Sound node is part or is subsequently made part of a live scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if the Sound object is null.</DL></DD></DL><HR><A NAME="removeSound(int)"><!-- --></A><H3>removeSound</H3><PRE>public void <B>removeSound</B>(int&nbsp;index)</PRE><DL><DD>Removes the sound at the specified index location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - which sound to remove</DL></DD></DL><HR><A NAME="getSound(int)"><!-- --></A><H3>getSound</H3><PRE>public <A HREF="../../../javax/media/j3d/Sound.html">Sound</A> <B>getSound</B>(int&nbsp;index)</PRE><DL><DD>Retrieves the index selected sound.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - which sound to return<DT><B>Returns:</B><DD>the sound at location index</DL></DD></DL><HR><A NAME="getAllSounds()"><!-- --></A><H3>getAllSounds</H3><PRE>public java.util.Enumeration <B>getAllSounds</B>()</PRE><DL><DD>Retrieves the enumeration object of all the sounds.<P>

⌨️ 快捷键说明

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