graphicscontext3d.html
来自「JAVA多媒体开发类库说明」· HTML 代码 · 共 1,510 行 · 第 1/5 页
HTML
1,510 行
</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" title="class in javax.media.j3d">Light</A> 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" title="class in javax.media.j3d">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[] x, int[] y, int[] 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" title="class in javax.media.j3d"><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" title="class in javax.media.j3d">HiResCoord</A> 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" title="class in javax.media.j3d">HiResCoord</A> 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" title="class in javax.media.j3d">Transform3D</A> 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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">Transform3D</A> 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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">Transform3D</A> 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" title="class in javax.media.j3d">Sound</A> sound, int 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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">Sound</A> sound, int 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" title="class in javax.media.j3d">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 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" title="class in javax.media.j3d">Sound</A> <B>getSound</B>(int 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><DD><DL><DT><B>Returns:</B><DD>the enumeration object of all the sounds</DL></DD></DL><HR><A NAME="addSound(javax.media.j3d.Sound)"><!-- --></A><H3>addSound</H3><PRE>public void <B>addSound</B>(<A HREF="../../../javax/media/j3d/Sound.html" title="class in javax.media.j3d">Sound</A> sound)</PRE><DL><DD>Appends the specified sound to this graphics context's list of sounds. Adding 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 sound to add<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html" title="class in javax.media.j3d">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="numSounds()"><!-- --></A><H3>numSounds</H3><PRE>public int <B>numSounds</B>()</PRE><DL><DD>Retrieves the current number of sounds in this graphics context.<P><DD><DL><DT><B>Returns:</B><DD>the current number of sounds</DL></DD></DL><HR><A NAME="isSoundPlaying(int)"><!-- --></A><H3>isSoundPlaying</H3><PRE>public boolean <B>isSoundPlaying</B>(int index)</PRE><DL><DD>Retrieves the sound playing flag.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - which sound<DT><B>Returns:</B><DD>flag denoting if sound is currently playing</DL></DD></DL><HR><A NAME="setAuralAttributes(javax.media.j3d.AuralAttributes)"><!-- --></A><H3>setAuralAttributes</H3><PRE>public void <B>setAuralAttributes</B>(<A HREF="../../../javax/media/j3d/AuralAttributes.html" title="class in javax.media.j3d">AuralAttributes</A> attributes)</PRE><DL><DD>Sets the current AuralAttributes object to the specified AuralAttributes component object. This means that the application may modify individual audio attributes by using the appropriate methods in the Aural-Attributes object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the new AuralAttributes object</DL></DD></DL><HR><A NAME="getAuralAttributes()"><!-- --></A><H3>getAuralAttributes</H3><PRE>public <A HREF="../../../javax/media/j3d/AuralAttributes.html" title="class in javax.media.j3d">AuralAttributes</A> <B>getAuralAttributes</B>()</PRE><DL><DD>Retrieves the current AuralAttributes component object.<P><DD><DL><DT><B>Returns:</B><DD>the current AuralAttributes object</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?