| |
|
| java.lang.Object javax.media.j3d.IndexedObject javax.media.j3d.SceneGraphObjectRetained javax.media.j3d.NodeRetained javax.media.j3d.LeafRetained javax.media.j3d.SoundRetained javax.media.j3d.PointSoundRetained javax.media.j3d.ConeSoundRetained
ConeSoundRetained | class ConeSoundRetained extends PointSoundRetained (Code) | | A ConeSoundRetained node defines a point sound source located at some
location
in space whose amplitude is constrained not only by maximum and minimum
amplitude
spheres but by two concentric cone volumes directed down an vector radiating
from the sound's location.
|
Method Summary | |
void | getAngularAttenuation(Point3f[] attenuation) | void | getAngularAttenuation(float[] distance, float[] gain, float[] filter) | int | getAngularAttenuationLength() Retrieves angular attenuation array length. | void | getBackDistanceGain(Point2f[] attenuation) Retieves sound's back distance attenuation
Put the contents of the two separate distance and gain arrays into
an array of Point2f. | void | getBackDistanceGain(float[] distance, float[] gain) Retieves this sound's back attenuation distance and gain arrays,
returned in separate arrays. | void | getDirection(Vector3f direction) Retrieves this sound's direction and places it in the
vector provided. | void | getDistanceGain(Point2f[] frontAttenuation, Point2f[] backAttenuation) | void | getDistanceGain(float[] frontDistance, float[] frontGain, float[] backDistance, float[] backGain) | void | getXformDirection(Vector3f direction) | synchronized void | initMirrorObject(ConeSoundRetained ms) | void | mergeTransform(TransformGroupRetained xform) | void | setAngularAttenuation(Point2f[] attenuation) | void | setAngularAttenuation(Point3f[] attenuation) Sets this sound's angular attenuation including both gain and filter. | void | setAngularAttenuation(float[] distance, float[] gain, float[] filter) | void | setBackDistanceGain(Point2f[] attenuation) 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. | void | setBackDistanceGain(float[] distance, float[] gain) Sets this sound's back distance gain attenuation as an array of Point2fs. | void | setDirection(Vector3f direction) Sets this sound's direction from the vector provided. | void | setDirection(float x, float y, float z) Sets this sound's direction from the three values provided. | void | setDistanceGain(Point2f[] frontAttenuation, Point2f[] backAttenuation) Sets this sound's distance gain elliptical attenuation -
where gain scale factor is applied to sound based on distance listener
is from sound source. | void | setDistanceGain(float[] frontDistance, float[] frontGain, float[] backDistance, float[] backGain) Sets this sound's distance gain attenuation as an array of Point2fs. | void | updateMirrorObject(Object[] objs) This updates the Direction fields of cone sound. | void | updateTransformChange() |
LOW_PASS | final static int LOW_PASS(Code) | | |
NO_FILTERING | final static int NO_FILTERING(Code) | | |
angularDistance | float[] angularDistance(Code) | | |
angularGain | float[] angularGain(Code) | | |
backAttenuationDistance | float[] backAttenuationDistance(Code) | | |
backAttenuationGain | float[] backAttenuationGain(Code) | | |
direction | Vector3f direction(Code) | | The Cone Sound's direction vector. This is the cone axis.
|
filterType | int filterType(Code) | | |
frequencyCutoff | float[] frequencyCutoff(Code) | | |
xformDirection | Vector3f xformDirection(Code) | | |
ConeSoundRetained | ConeSoundRetained()(Code) | | |
getAngularAttenuation | void getAngularAttenuation(Point3f[] attenuation)(Code) | | Retrieves angular attenuation including gain and filter in a single array
Parameters: attenuation - applied to gain when listener is between cones |
getAngularAttenuation | void getAngularAttenuation(float[] distance, float[] gain, float[] filter)(Code) | | Retrieves angular attenuation including gain and filter
returned as separate arrays
Parameters: distance - array containing angular distance Parameters: gain - array containing angular gain attenuation Parameters: filter - array containing angular low-pass frequency cutoff values |
getAngularAttenuationLength | int getAngularAttenuationLength()(Code) | | Retrieves angular attenuation array length.
All arrays are forced to same size
exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getBackDistanceGain | void getBackDistanceGain(Point2f[] attenuation)(Code) | | Retieves sound's back distance attenuation
Put the contents of the two separate distance and gain arrays into
an array of Point2f.
Parameters: attenuation - containing distance attenuation pairs |
getBackDistanceGain | void getBackDistanceGain(float[] distance, float[] gain)(Code) | | Retieves this sound's back attenuation distance and gain arrays,
returned in separate arrays.
Parameters: distance - array of monotonically-increasing floats. Parameters: gain - array of amplitude scale factors associated with distances. |
getDirection | void getDirection(Vector3f direction)(Code) | | Retrieves this sound's direction and places it in the
vector provided.
direction vector (axis of cones) |
getDistanceGain | void getDistanceGain(Point2f[] frontAttenuation, Point2f[] backAttenuation)(Code) | | Gets this sound's elliptical distance attenuation
Parameters: frontAttenuation - arrays containing forward distances attenuation pairs Parameters: backAttenuation - arrays containing backward distances attenuation pairs exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getDistanceGain | void getDistanceGain(float[] frontDistance, float[] frontGain, float[] backDistance, float[] backGain)(Code) | | Gets this sound's elliptical distance gain attenuation values in separate arrays
Parameters: frontDistance - array of float distances along the sound axis Parameters: fronGain - array of non-negative scale factors associated with front distances Parameters: backDistance - array of float negative distances along the sound axis Parameters: backGain - array of non-negative scale factors associated with back distances exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getXformDirection | void getXformDirection(Vector3f direction)(Code) | | |
setAngularAttenuation | void setAngularAttenuation(Point2f[] attenuation)(Code) | | Sets this sound's angular gain attenuation (not including filter)
Parameters: attenuation - array containing angular distance and gain |
setAngularAttenuation | void setAngularAttenuation(Point3f[] attenuation)(Code) | | Sets this sound's angular attenuation including both gain and filter.
Parameters: attenuation - array containing angular distance, gain and filter |
setAngularAttenuation | void setAngularAttenuation(float[] distance, float[] gain, float[] filter)(Code) | | Sets angular attenuation including gain and filter using separate arrays
Parameters: distance - array containing angular distance Parameters: filter - array containing angular low-pass frequency cutoff values |
setBackDistanceGain | void setBackDistanceGain(Point2f[] attenuation)(Code) | | 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.
Parameters: attenuation - defined by pairs of (distance,gain-scale-factor) exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setBackDistanceGain | void setBackDistanceGain(float[] distance, float[] gain)(Code) | | Sets this sound's back distance gain attenuation as an array of Point2fs.
Parameters: distance - array of monotonically-increasing floats Parameters: gain - array of non-negative scale factors exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setDirection | void setDirection(Vector3f direction)(Code) | | Sets this sound's direction from the vector provided.
Parameters: direction - the new direction |
setDirection | void setDirection(float x, float y, float z)(Code) | | Sets this sound's direction from the three values provided.
Parameters: x - the new x direction Parameters: y - the new y direction Parameters: z - the new z direction |
setDistanceGain | void setDistanceGain(Point2f[] frontAttenuation, Point2f[] backAttenuation)(Code) | | Sets this sound's distance gain elliptical attenuation -
where gain scale factor is applied to sound based on distance listener
is from sound source.
Parameters: frontAttenuation - defined by pairs of (distance,gain-scale-factor) Parameters: backAttenuation - defined by pairs of (distance,gain-scale-factor) exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setDistanceGain | void setDistanceGain(float[] frontDistance, float[] frontGain, float[] backDistance, float[] backGain)(Code) | | Sets this sound's distance gain attenuation as an array of Point2fs.
Parameters: frontDistance - array of monotonically-increasing floats Parameters: frontGain - array of non-negative scale factors Parameters: backDistance - array of monotonically-increasing floats Parameters: backGain - array of non-negative scale factors exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
updateMirrorObject | void updateMirrorObject(Object[] objs)(Code) | | This updates the Direction fields of cone sound.
Neither Angular gain Attenuation and Filtering fields, nor
back distance gain not maintained in mirror object
|
updateTransformChange | void updateTransformChange()(Code) | | |
Methods inherited from javax.media.j3d.NodeRetained | void clearLive(SetLiveState s)(Code)(Java Doc) void computeCombineBounds(Bounds bounds)(Code)(Java Doc) void computeNonLiveLocalToVworld(Transform3D t, Node caller)(Code)(Java Doc) void dirtyBoundsCache()(Code)(Java Doc) void doSetLive(SetLiveState s)(Code)(Java Doc) public int equal(NnuId obj)(Code)(Java Doc) void findCollidableFlags(boolean collide)(Code)(Java Doc) void findPickableFlags(boolean pick)(Code)(Java Doc) void findTransformLevels(int transformLevels)(Code)(Java Doc) Bounds getBounds()(Code)(Java Doc) boolean getBoundsAutoCompute()(Code)(Java Doc) boolean getCollidable()(Code)(Java Doc) Transform3D getCurrentLocalToVworld()(Code)(Java Doc) Transform3D getCurrentLocalToVworld(int index)(Code)(Java Doc) Transform3D getCurrentLocalToVworld(HashKey key)(Code)(Java Doc) Bounds getEffectiveBounds()(Code)(Java Doc) public int getId()(Code)(Java Doc) Transform3D getLastLocalToVworld()(Code)(Java Doc) Transform3D getLastLocalToVworld(int index)(Code)(Java Doc) Transform3D getLastLocalToVworld(HashKey key)(Code)(Java Doc) Bounds getLocalBounds(Bounds bounds)(Code)(Java Doc) void getLocalToVworld(Transform3D t)(Code)(Java Doc) void getLocalToVworld(SceneGraphPath path, Transform3D t)(Code)(Java Doc) void getLocalToVworld(Transform3D t, HashKey key)(Code)(Java Doc) Locale getLocale()(Code)(Java Doc) NodeRetained getParent()(Code)(Java Doc) boolean getPickable()(Code)(Java Doc) VirtualUniverse getVirtualUniverse()(Code)(Java Doc) boolean isStatic()(Code)(Java Doc) void merge(CompileState compState)(Code)(Java Doc) void mergeTransform(TransformGroupRetained xform)(Code)(Java Doc) void notifySceneGraphChanged(boolean globalTraverse)(Code)(Java Doc) int[] processViewSpecificInfo(int mode, HashKey k, View v, ArrayList vsgList, int[] keyList, ArrayList leafList)(Code)(Java Doc) void recombineAbove()(Code)(Java Doc) void removeNodeData(SetLiveState s)(Code)(Java Doc) void searchGeometryAtoms(UnorderList list)(Code)(Java Doc) void setAuxData(SetLiveState s, int index, int hkIndex)(Code)(Java Doc) void setBounds(Bounds bounds)(Code)(Java Doc) void setBoundsAutoCompute(boolean autoCompute)(Code)(Java Doc) void setCollidable(boolean collidable)(Code)(Java Doc) void setLive(SetLiveState s)(Code)(Java Doc) void setNodeData(SetLiveState s)(Code)(Java Doc) void setParent(NodeRetained parent)(Code)(Java Doc) void setPickable(boolean pickable)(Code)(Java Doc) void transformBounds(SceneGraphPath path, Bounds bound)(Code)(Java Doc) void updateCollidable(HashKey keys, boolean collide)(Code)(Java Doc) synchronized void updateLocalToVworld()(Code)(Java Doc) void updatePickable(HashKey pickKeys, boolean pick)(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.IndexedObject | int[][] listIdx(Code)(Java Doc)
|
|
|
|