|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.SoundRetained
javax.media.j3d.PointSoundRetained
class PointSoundRetained
The PointSoundRetained node (a sub-class of the SoundRetained node) defines a spatially-located sound source whose waves radiate uniformly in all directions from a given location in space.
| Field Summary | |
|---|---|
(package private) float[] |
attenuationDistance
|
(package private) float[] |
attenuationGain
|
(package private) Point3f |
position
Origin of Sound source in Listener's space. |
(package private) Transform3D |
trans
|
(package private) Point3f |
xformPosition
The transformed position of this sound |
| Fields inherited from class javax.media.j3d.LeafRetained |
|---|
boundsDirty, switchState |
| Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
|---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
| Fields inherited from class javax.media.j3d.IndexedObject |
|---|
listIdx |
| Constructor Summary | |
|---|---|
PointSoundRetained()
|
|
| Method Summary | |
|---|---|
(package private) void |
getDistanceGain(float[] distance,
float[] gain)
Retieves this sound's attenuation distance and gain arrays, returned in separate arrays. |
(package private) void |
getDistanceGain(Point2f[] attenuation)
Retieves sound's distance attenuation Put the contents of the two separate distance and gain arrays into an array of Point2f. |
(package private) int |
getDistanceGainLength()
Gets this sound's distance attenuation array length |
(package private) void |
getPosition(Point3f position)
Retrieves this sound's location and places it in the vector provided. |
(package private) void |
getXformPosition(Point3f position)
|
(package private) void |
initMirrorObject(PointSoundRetained ms)
|
(package private) void |
mergeTransform(TransformGroupRetained xform)
|
(package private) void |
setDistanceGain(float[] distance,
float[] gain)
Sets this sound's distance gain given separate arrays. |
(package private) void |
setDistanceGain(Point2f[] attenuation)
Sets this sound's distance gain attenuation - where gain scale factor is applied to sound based on distance listener is from sound source. |
(package private) void |
setPosition(float x,
float y,
float z)
Sets this sound's position from the three values provided. |
(package private) void |
setPosition(Point3f position)
Sets this sound's location from the vector provided. |
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
This updates the positional fields of point sound. |
(package private) void |
updateTransformChange()
|
| Methods inherited from class javax.media.j3d.LeafRetained |
|---|
clone, updateBoundingLeaf, updateBounds |
| Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
|---|
clearLive, clearLive, clone, compile, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse |
| Methods inherited from class javax.media.j3d.IndexedObject |
|---|
getIdxUsed, incIdxUsed |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Point3f position
Point3f xformPosition
Transform3D trans
float[] attenuationDistance
float[] attenuationGain
| Constructor Detail |
|---|
PointSoundRetained()
| Method Detail |
|---|
void setPosition(Point3f position)
position - the new location
void setPosition(float x,
float y,
float z)
x - the new x positiony - the new y positionz - the new z positionvoid getPosition(Point3f position)
position - the variable to receive the location vectorvoid getXformPosition(Point3f position)
void setDistanceGain(Point2f[] attenuation)
distance - attenuation pairs of (distance,gain-scale-factor)
void setDistanceGain(float[] distance,
float[] gain)
distance - array of monotonically-increasing floats.gain - array of amplitude scale factors associated with distances.int getDistanceGainLength()
void getDistanceGain(Point2f[] attenuation)
attenuation - containing distance attenuation pairs
void getDistanceGain(float[] distance,
float[] gain)
distance - array of monotonically-increasing floats.gain - array of amplitude scale factors associated with distances.void updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject in class SoundRetainedvoid initMirrorObject(PointSoundRetained ms)
void updateTransformChange()
updateTransformChange in class SoundRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class SoundRetained
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||