📄 conesound.html
字号:
int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A> region, float priority, <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A> position, <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] frontDistanceAttenuation, <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] backDistanceAttenuation, <A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A> direction, <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>[] angularAttenuation)</CODE><BR> Constructs and initializes a new Cone Sound node explicitly setting all PointSound and ConeSound fields as arguments: the PointSound position, front and back distance attenuation Point2f array, and ConeSound direction vector and Point3f angular attenuation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#ConeSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, javax.vecmath.Point3f, javax.vecmath.Point2f[], javax.vecmath.Vector3f, javax.vecmath.Point3f[])">ConeSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A> region, float priority, <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A> position, <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] distanceAttenuation, <A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A> direction, <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>[] angularAttenuation)</CODE><BR> Constructs a ConeSound node object using all the provided PointSound parameter values, which include a single spherical distance attenuation array, but includes an angular attenuation array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#ConeSound(javax.media.j3d.MediaContainer, float, javax.vecmath.Point3f, javax.vecmath.Vector3f)">ConeSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A> soundData, float initialGain, <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A> position, <A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A> direction)</CODE><BR> Constructs a ConeSound node object using only the provided parameter values for sound, overall initial gain, position, and direction.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/Node.html">Node</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#cloneNode(boolean)">cloneNode</A></B>(boolean forceDuplicate)</CODE><BR> Creates a new instance of the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#duplicateNode(javax.media.j3d.Node, boolean)">duplicateNode</A></B>(<A HREF="../../../javax/media/j3d/Node.html">Node</A> originalNode, boolean forceDuplicate)</CODE><BR> Copies all node information from <code>originalNode</code> into the current node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#getAngularAttenuation(float[], float[], float[])">getAngularAttenuation</A></B>(float[] distance, float[] gain, float[] filter)</CODE><BR> Copies the array of attenuation values from this sound, including gain and filter, into the separate arrays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#getAngularAttenuation(javax.vecmath.Point3f[])">getAngularAttenuation</A></B>(<A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>[] attenuation)</CODE><BR> Copies the array of attenuation values from this sound, including gain and filter, into the specified array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#getAngularAttenuationLength()">getAngularAttenuationLength</A></B>()</CODE><BR> Retrieves angular attenuation array length.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#getDirection(javax.vecmath.Vector3f)">getDirection</A></B>(<A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A> direction)</CODE><BR> Retrieves this sound's direction and places it in the vector provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#getDistanceGain(float[], float[], float[], float[])">getDistanceGain</A></B>(float[] frontDistance, float[] frontGain, float[] backDistance, float[] backGain)</CODE><BR> Gets this sound's elliptical distance gain attenuation values in separate arrays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#getDistanceGain(javax.vecmath.Point2f[], javax.vecmath.Point2f[])">getDistanceGain</A></B>(<A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] frontAttenuation, <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] backAttenuation)</CODE><BR> Gets this sound's elliptical distance attenuation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setAngularAttenuation(float[], float[], float[])">setAngularAttenuation</A></B>(float[] distance, float[] gain, float[] filter)</CODE><BR> Sets angular attenuation including gain and filter using separate arrays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setAngularAttenuation(javax.vecmath.Point2f[])">setAngularAttenuation</A></B>(<A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] attenuation)</CODE><BR> Sets this sound's angular gain attenuation (not including filter).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setAngularAttenuation(javax.vecmath.Point3f[])">setAngularAttenuation</A></B>(<A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>[] attenuation)</CODE><BR> In the second form of setAngularAttenuation, an array of all three values is supplied.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setBackDistanceGain(float[], float[])">setBackDistanceGain</A></B>(float[] distance, float[] gain)</CODE><BR> Sets this sound's back distance gain attenuation as separate arrays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setBackDistanceGain(javax.vecmath.Point2f[])">setBackDistanceGain</A></B>(<A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[] attenuation)</CODE><BR> Sets this sound's back distance gain attenuation - where gain scale factor is applied to sound based on distance listener along the negative sound direction axis from sound source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setDirection(float, float, float)">setDirection</A></B>(float x, float y, float z)</CODE><BR> Sets this sound's direction from the three values provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/ConeSound.html#setDirection(javax.vecmath.Vector3f)">setDirection</A></B>(<A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A> direction)</CODE><BR> Sets this sound's direction from the vector provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -