|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Node
org.j3d.aviatrix3d.Leaf
org.j3d.aviatrix3d.Sound
org.j3d.aviatrix3d.PointSound
org.j3d.aviatrix3d.ConeSound
A ConeSound class which emits a conical sound in one direction.
By default this class is mimics a ConeSound. You must provide parameters for the direction and cone angles to make it directional. The sound will attenuate by distance based on the refDistance and maxDistance parameters.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.PointSound |
maxDistance, refDistance, rolloffFactor |
Fields inherited from class org.j3d.aviatrix3d.Sound |
buffer, dataChanged, enabled, format, freq, loop, paramsChanged, paused, pitch, playChanged, playing, seq, soundSource, values |
Fields inherited from class org.j3d.aviatrix3d.Node |
bounds, implicitBounds, INVALID_BOUNDS, parent |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
ConeSound()
Creates a sound. |
Method Summary | |
int |
compareTo(ConeSound cs)
Compares this object with the specified object for order. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(ConeSound cs)
Compares this object with the specified object to check for equivalence. |
boolean |
equals(java.lang.Object o)
Compare this object for equality to the given object. |
void |
getRefDistance(float[] dir)
Retrieve the direction of the cone. |
void |
postRender(net.java.games.joal.AL al)
This method is called after a node has been rendered. |
void |
render(net.java.games.joal.AL al,
javax.vecmath.Matrix4f transform)
This method is called to render this node. |
void |
setInnerAngle(float angle)
Set the inner angle for the cone. |
void |
setOuterAngle(float angle)
Set the outer angle for the cone. |
void |
setRefDistance(float[] dir)
Set the direction the cone is facing. |
Methods inherited from class org.j3d.aviatrix3d.PointSound |
compareTo, equals, setMaxDistance, setRefDistance, setRolloffFactor |
Methods inherited from class org.j3d.aviatrix3d.Sound |
audioUpdated, compareTo, equals, getBounds, getRenderable, isEnabled, isPaused, isPlaying, markBoundsDirty, paramsUpdated, pauseSound, recomputeBounds, requestBoundsUpdate, setAudioSource, setEnabled, startSound, stopSound |
Methods inherited from class org.j3d.aviatrix3d.Node |
boundsChanged, checkForCyclicParent, getParent, removeParent, setBounds, setLive, setParent, updateBounds, updateParentBounds |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, dataChanged, getUserData, isLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConeSound()
Method Detail |
public void render(net.java.games.joal.AL al, javax.vecmath.Matrix4f transform)
render
in interface AudioRenderable
render
in class PointSound
al
- The OpenAL context to render withtransform
- The transformation stack to this nodepublic void postRender(net.java.games.joal.AL al)
AudioRenderable
postRender
in interface AudioRenderable
postRender
in class PointSound
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
compareTo
in class PointSound
o
- The objec to be compared
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Objectpublic boolean equals(java.lang.Object o)
equals
in interface Renderable
equals
in class PointSound
o
- The object to be compared
public void setRefDistance(float[] dir)
dir
- The direction to emit sound.public void getRefDistance(float[] dir)
dir
- An array length 3 to copy the direction value intopublic void setInnerAngle(float angle)
angle
- The inner anglepublic void setOuterAngle(float angle)
angle
- The outer anglepublic int compareTo(ConeSound cs)
cs
- The argument instance to be compared
public boolean equals(ConeSound cs)
cs
- The background instance to be compared
|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |