All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Sound
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.ChildrenNode
|
+----vlc.vrml.internal.geometry.Sound
- public class Sound
- extends ChildrenNode
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Sound node please see the
VRML 97 Sound specification
- Author:
- Justin Couch justin@vlc.com.au
-
Sound()
- Set the Appearance node attribute of this shape.
-
Sound(boolean)
- Constructor used when you don't want to use the default fields
-
Sound(Browser)
- Default constructor when supplying your own Browser reference
-
Sound(Browser, boolean)
- Constructor used when you don't want to use the default fields and you
wish to supply your own browser reference.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_direction()
- Gets the direction vector field of the node
-
get_intensity()
- Gets the intensity field of the node
-
get_location()
- Gets the location of the sound source
-
get_maxBack()
- Get the current maxBack setting
-
get_maxFront()
- Get the current maxFront setting
-
get_minBack()
- Get the current minBack setting
-
get_minFront()
- Get the current minFront setting
-
get_priority()
- Get the priority of this sound source
-
get_source()
- Set the source node for this sound.
-
get_spatialize()
- Get the setting of the spatialize field.
-
set_direction(float[])
- Sets the direction vector field of the node
-
set_intensity(float)
- Sets the intensity field of the node
-
set_location(float[])
- Sets the location of the sound source
-
set_maxBack(float)
- Set the maxBack field of the node
-
set_maxFront(float)
- Get the current maxBack setting
-
set_minBack(float)
- Set the minBack field of the node
-
set_minFront(float)
- Set the minFront field of the node
-
set_priority(float)
- Set the priority of this sound source
-
set_source(AudioNode)
-
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Sound
public Sound()
- Set the Appearance node attribute of this shape.
- Parameters:
- app - A valid JVerge Appearance node or null if to remove the
currently set one.
Sound
public Sound(Browser b)
- Default constructor when supplying your own Browser reference
- Parameters:
- b - A valid Browser reference
Sound
public Sound(boolean spatialize)
- Constructor used when you don't want to use the default fields
- Parameters:
- spatialize - true if you want to use spaitalized sound
Sound
public Sound(Browser b,
boolean spatialize)
- Constructor used when you don't want to use the default fields and you
wish to supply your own browser reference.
- Parameters:
- spatialize - true if you want to use spaitalized sound
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_direction
public void set_direction(float direction[])
- Sets the direction vector field of the node
- Parameters:
- direction - Array representing the x, y and z components of the vector
get_direction
public float[] get_direction()
- Gets the direction vector field of the node
- Returns:
- Array representing the current x, y and z components of the vector
set_intensity
public void set_intensity(float val)
- Sets the intensity field of the node
- Parameters:
- val - The required intensity value
get_intensity
public float get_intensity()
- Gets the intensity field of the node
- Returns:
- The current intensity value
set_location
public void set_location(float location[])
- Sets the location of the sound source
- Parameters:
- location - An array representing the x, y, and z coordinates
get_location
public float[] get_location()
- Gets the location of the sound source
- Returns:
- An array representing the current x, y, and z coordinates
set_maxBack
public void set_maxBack(float val)
- Set the maxBack field of the node
- Parameters:
- val - The new value to be set.
get_maxBack
public float get_maxBack()
- Get the current maxBack setting
- Returns:
- the maxBack value
set_maxFront
public void set_maxFront(float val)
- Get the current maxBack setting
- Returns:
- the maxBack value
get_maxFront
public float get_maxFront()
- Get the current maxFront setting
- Returns:
- The current maxFront value
set_minBack
public void set_minBack(float val)
- Set the minBack field of the node
- Parameters:
- val - The new value to be set.
get_minBack
public float get_minBack()
- Get the current minBack setting
- Returns:
- The current minBack value
set_minFront
public void set_minFront(float val)
- Set the minFront field of the node
- Parameters:
- val - The new value to be set.
get_minFront
public float get_minFront()
- Get the current minFront setting
- Returns:
- The current minFront value
set_priority
public void set_priority(float priority)
- Set the priority of this sound source
- Parameters:
- priority - A value between 0 (low) and 1 (high)
get_priority
public float get_priority()
- Get the priority of this sound source
- Returns:
- The current priority. A value between 0 (low) and 1 (high)
set_source
public void set_source(AudioNode source)
get_source
public AudioNode get_source()
- Set the source node for this sound. As per the VRML 97 sepcification,
This could be either a MovieTexture or a AudioClip.
- Parameters:
- source - A subclass of the AudioNode.
- See Also:
- MovieTexture, AudioClip
get_spatialize
public boolean get_spatialize()
- Get the setting of the spatialize field. This was set during construction
of this node
- Returns:
- The current spatialize setting
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index