📄 pointsound.html
字号:
Constructs a PointSound node object using only the provided parameter values for sound data, sample gain, and position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/PointSound.html#PointSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, float, float, float, float[], float[])">PointSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html" title="class in javax.media.j3d">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> region, float priority, float posX, float posY, float posZ, float[] attenuationDistance, float[] attenuationGain)</CODE><BR> Construct a PointSound object accepting individual float parameters for the elements of the position points, and accepting separate arrays for the distance and gain scale factors components of distance attenuation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/PointSound.html#PointSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, float, float, float, javax.vecmath.Point2f[])">PointSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html" title="class in javax.media.j3d">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> region, float priority, float posX, float posY, float posZ, <A HREF="../../../javax/vecmath/Point2f.html" title="class in javax.vecmath">Point2f</A>[] distanceGain)</CODE><BR> Construct a PointSound object accepting individual float parameters for the elements of the position point, and accepting an array of Point2f for the distance attenuation values where each pair in the array contains a distance and a gain scale factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/PointSound.html#PointSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, javax.vecmath.Point3f, float[], float[])">PointSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html" title="class in javax.media.j3d">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> region, float priority, <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> position, float[] attenuationDistance, float[] attenuationGain)</CODE><BR> Construct a PointSound object accepting points as input for the position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/PointSound.html#PointSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, javax.vecmath.Point3f, javax.vecmath.Point2f[])">PointSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html" title="class in javax.media.j3d">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html" title="class in javax.media.j3d">Bounds</A> region, float priority, <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> position, <A HREF="../../../javax/vecmath/Point2f.html" title="class in javax.vecmath">Point2f</A>[] distanceGain)</CODE><BR> Construct a PointSound object accepting Point3f as input for the position and accepting an array of Point2f for the distance attenuation values where each pair in the array contains a distance and a gain scale factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/PointSound.html#PointSound(javax.media.j3d.MediaContainer, float, javax.vecmath.Point3f)">PointSound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html" title="class in javax.media.j3d">MediaContainer</A> soundData, float initialGain, <A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> position)</CODE><BR> Constructs a PointSound node object using only the provided parameter values for sound data, sample gain, and position.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/PointSound.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/PointSound.html#duplicateNode(javax.media.j3d.Node, boolean)">duplicateNode</A></B>(<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">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/PointSound.html#getDistanceGain(float[], float[])">getDistanceGain</A></B>(float[] distance, float[] gain)</CODE><BR> Gets this sound's 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/PointSound.html#getDistanceGain(javax.vecmath.Point2f[])">getDistanceGain</A></B>(<A HREF="../../../javax/vecmath/Point2f.html" title="class in javax.vecmath">Point2f</A>[] attenuation)</CODE><BR> Gets this sound's distance attenuation.</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/PointSound.html#getDistanceGainLength()">getDistanceGainLength</A></B>()</CODE><BR> Get the length of this node's distance gain attenuation 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/PointSound.html#getPosition(javax.vecmath.Point3f)">getPosition</A></B>(<A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> position)</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/PointSound.html#setDistanceGain(float[], float[])">setDistanceGain</A></B>(float[] distance, float[] gain)</CODE><BR> Sets this sound's distance gain attenuation as an array of Point2fs.</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/PointSound.html#setDistanceGain(javax.vecmath.Point2f[])">setDistanceGain</A></B>(<A HREF="../../../javax/vecmath/Point2f.html" title="class in javax.vecmath">Point2f</A>[] attenuation)</CODE><BR> Sets this sound's distance gain attenuation - where gain scale factor is applied to sound based on distance listener is 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/PointSound.html#setPosition(float, float, float)">setPosition</A></B>(float x, float y, float z)</CODE><BR> Sets this sound's position 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/PointSound.html#setPosition(javax.vecmath.Point3f)">setPosition</A></B>(<A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> position)</CODE><BR> Sets this sound's location from the vector provided.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.Sound"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/Sound.html" title="class in javax.media.j3d">Sound</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/Sound.html#getContinuousEnable()">getContinuousEnable</A>, <A HREF="../../../javax/media/j3d/Sound.html#getDuration()">getDuration</A>, <A HREF="../../../javax/media/j3d/Sound.html#getEnable()">getEnable</A>, <A HREF="../../../javax/media/j3d/Sound.html#getInitialGain()">getInitialGain</A>, <A HREF="../../../javax/media/j3d/Sound.html#getLoop()">getLoop</A>, <A HREF="../../../javax/media/j3d/Sound.html#getMute()">getMute</A>, <A HREF="../../../javax/media/j3d/Sound.html#getNumberOfChannelsUsed()">getNumberOfChannelsUsed</A>, <A HREF="../../../javax/media/j3d/Sound.html#getNumberOfChannelsUsed(javax.media.j3d.View)">getNumberOfChannelsUsed</A>, <A HREF="../../../javax/media/j3d/Sound.html#getPause()">getPause</A>, <A HREF="../../../javax/media/j3d/Sound.html#getPriority()">getPriority</A>, <A HREF="../../../javax/media/j3d/Sound.html#getRateScaleFactor()">getRateScaleFactor</A>, <A HREF="../../../javax/media/j3d/Sound.html#getReleaseEnable()">getReleaseEnable</A>, <A HREF="../../../javax/media/j3d/Sound.html#getSchedulingBoundingLeaf()">getSchedulingBoundingLeaf</A>, <A HREF="../../../javax/media/j3d/Sound.html#getSchedulingBounds()">getSchedulingBounds</A>, <A HREF="../../../javax/media/j3d/Sound.html#getSoundData()">getSoundData</A>, <A HREF="../../../javax/media/j3d/Sound.html#isPlaying()">isPlaying</A>, <A HREF="../../../javax/media/j3d/Sound.html#isPlaying(javax.media.j3d.View)">isPlaying</A>, <A HREF="../../../javax/media/j3d/Sound.html#isPlayingSilently()">isPlayingSilently</A>, <A HREF="../../../javax/media/j3d/Sound.html#isPlayingSilently(javax.media.j3d.View)">isPlayingSilently</A>, <A HREF="../../../javax/media/j3d/Sound.html#isReady()">isReady</A>, <A HREF="../../../javax/media/j3d/Sound.html#isReady(javax.media.j3d.View)">isReady</A>, <A HREF="../../../javax/media/j3d/Sound.html#setContinuousEnable(boolean)">setContinuousEnable</A>, <A HREF="../../../javax/media/j3d/Sound.html#setEnable(boolean)">setEnable</A>, <A HREF="../../../javax/media/j3d/Sound.html#setInitialGain(float)">setInitialGain</A>, <A HREF="../../../javax/media/j3d/Sound.html#setLoop(int)">setLoop</A>, <A HREF="../../../javax/media/j3d/Sound.html#setMute(boolean)">setMute</A>, <A HREF="../../../javax/media/j3d/Sound.html#setPause(boolean)">setPause</A>, <A HREF="../../../javax/media/j3d/Sound.html#setPriority(float)">setPriority</A>, <A HREF="../../../javax/media/j3d/Sound.html#setRateScaleFactor(float)">setRateScaleFactor</A>, <A HREF="../../../javax/media/j3d/Sound.html#setReleaseEnable(boolean)">setReleaseEnable</A>, <A HREF="../../../javax/media/j3d/Sound.html#setSchedulingBoundingLeaf(javax.media.j3d.BoundingLeaf)">setSchedulingBoundingLeaf</A>, <A HREF="../../../javax/media/j3d/Sound.html#setSchedulingBounds(javax.media.j3d.Bounds)">setSchedulingBounds</A>, <A HREF="../../../javax/media/j3d/Sound.html#setSoundData(javax.media.j3d.MediaContainer)">setSoundData</A>, <A HREF="../../../javax/media/j3d/Sound.html#updateNodeReferences(javax.media.j3d.NodeReferenceTable)">updateNodeReferences</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.Node"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/Node.html#cloneTree()">cloneTree</A>, <A HREF="../../../javax/media/j3d/Node.html#cloneTree(boolean)">cloneTree</A>, <A HREF="../../../javax/media/j3d/Node.html#cloneTree(boolean, boolean)">cloneTree</A>, <A HREF="../../../javax/media/j3d/Node.html#cloneTree(javax.media.j3d.NodeReferenceTable)">cloneTree</A>, <A HREF="../../../javax/media/j3d/Node.html#cloneTree(javax.media.j3d.NodeReferenceTable, boolean)">cloneTree</A>, <A HREF="../../../javax/media/j3d/Node.html#cloneTree(javax.media.j3d.NodeReferenceTable, boolean, boolean)">cloneTree</A>, <A HREF="../../../javax/media/j3d/Node.html#getBounds()">getBounds</A>, <A HREF="../../../javax/media/j3d/Node.html#getBoundsAutoCompute()">getBoundsAutoCompute</A>, <A HREF="../../../javax/media/j3d/Node.html#getCollidable()">getCollidable</A>, <A HREF="../../../javax/media/j3d/Node.html#getLocale()">getLocale</A>, <A HREF="../../../javax/media/j3d/Node.html#getLocalToVworld(javax.media.j3d.SceneGraphPath, javax.media.j3d.Transform3D)">getLocalToVworld</A>, <A HREF="../../../javax/media/j3d/Node.html#getLocalToVworld(javax.media.j3d.Transform3D)">getLocalToVworld</A>, <A HREF="../../../javax/media/j3d/Node.html#getParent()">getParent</A>, <A HREF="../../../javax/media/j3d/Node.html#getPickable()">getPickable</A>, <A HREF="../../../javax/media/j3d/Node.html#setBounds(javax.media.j3d.Bounds)">setBounds</A>, <A HREF="../../../javax/media/j3d/Node.html#setBoundsAutoCompute(boolean)">setBoundsAutoCompute</A>, <A HREF="../../../javax/media/j3d/Node.html#setCollidable(boolean)">setCollidable</A>, <A HREF="../../../javax/media/j3d/Node.html#setPickable(boolean)">setPickable</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.SceneGraphObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/SceneGraphObject.html" title="class in javax.media.j3d">SceneGraphObject</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapability(int)">clearCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapabilityIsFrequent(int)">clearCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#duplicateSceneGraphObject(javax.media.j3d.SceneGraphObject)">duplicateSceneGraphObject</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapability(int)">getCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapabilityIsFrequent(int)">getCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getName()">getName</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getUserData()">getUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isCompiled()">isCompiled</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isLive()">isLive</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapability(int)">setCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapabilityIsFrequent(int)">setCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setName(java.lang.String)">setName</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setUserData(java.lang.Object)">setUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#toString()">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="ALLOW_POSITION_READ"><!-- --></A><H3>ALLOW_POSITION_READ</H3><PRE>public static final int <B>ALLOW_POSITION_READ</B></PRE><DL><DD>Specifies that this node allows access to its object's position information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.PointSound.ALLOW_POSITION_READ">Constant Field Values</A></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -