All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.PhysicalEnvironment
java.lang.Object
|
+----java.media.j3d.PhysicalEnvironment
- public class PhysicalEnvironment
- extends Object
-
HEADPHONES
-
-
MONO_SPEAKER
-
-
STEREO_SPEAKERS
-
-
PhysicalEnvironment()
- Constructs and initializes a new physical environment object.
-
addInputDevice(InputDevice)
- Add an input device to the list of input devices
-
allInputDevices()
- Create an enumerator that produces all available devices
-
getAngleOffsetToSpeaker()
- Get Angle Offset To Speaker
-
getAudioPlaybackType()
- Get Type of Audio Playback Output Device
-
getCenterEarToSpeaker()
- Get Distance from Center Ear to Speakers
-
getCoexistenceCenterInPworldPolicy()
- Returns the current coexistence center in physical world policy.
-
getCoexistenceToTrackerBase(Transform3D)
- Retrieves the coexistence coordinate system to tracker-base
coordinate system transform and copies it into the specified
Transform3D object.
-
getSensor(int)
- Get the specified sensor
-
getSensorCount()
- Get the current sensor count.
-
getTrackingAvailable()
- Returns a status flag indicating whether or not tracking
is available.
-
setAngleOffsetToSpeaker(float)
- Set Angle Offset To Speaker
-
setAudioPlaybackType(int)
- Set Type of Audio Playback physical transducer(s) sound is output to.
-
setCenterEarToSpeaker(float)
- Set Distance from Center Ear to Speakers
-
setCoexistenceCenterInPworldPolicy(int)
- Sets the coexistence center in physical world policy.
-
setCoexistenceToTrackerBase(Transform3D)
- Sets the coexistence coordinate system to tracker-base coordinate
system transform.
-
setSensorCount(int)
- Set the number of sensor objects per PhysicalEnvironmnet.
HEADPHONES
public static final int HEADPHONES
MONO_SPEAKER
public static final int MONO_SPEAKER
STEREO_SPEAKERS
public static final int STEREO_SPEAKERS
PhysicalEnvironment
public PhysicalEnvironment()
- Constructs and initializes a new physical environment object.
addInputDevice
public void addInputDevice(InputDevice device)
- Add an input device to the list of input devices
allInputDevices
public Enumeration allInputDevices()
- Create an enumerator that produces all available devices
- Returns:
- an enumerator of all available devices
setCoexistenceToTrackerBase
public void setCoexistenceToTrackerBase(Transform3D t)
- Sets the coexistence coordinate system to tracker-base coordinate
system transform. If head tracking is enabled, this transform
is a calibration constant. If head tracking is not enabled,
this transform is not used.
This is used in both SCREEN_VIEW and HMD_VIEW modes.
- Parameters:
- t - the new transform
getCoexistenceToTrackerBase
public void getCoexistenceToTrackerBase(Transform3D t)
- Retrieves the coexistence coordinate system to tracker-base
coordinate system transform and copies it into the specified
Transform3D object.
- Parameters:
- t - the object that will receive the transform
getTrackingAvailable
public boolean getTrackingAvailable()
- Returns a status flag indicating whether or not tracking
is available.
- Returns:
- a flag telling whether tracking is available
setCoexistenceCenterInPworldPolicy
public void setCoexistenceCenterInPworldPolicy(int policy)
- Sets the coexistence center in physical world policy.
This setting determines how Java 3D places the
user's eye point as a function of head position during the
calibration process. The variable can contain one of:
View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or View.NOMINAL_FEET.
- Parameters:
- policy - the new policy
getCoexistenceCenterInPworldPolicy
public int getCoexistenceCenterInPworldPolicy()
- Returns the current coexistence center in physical world policy.
- Returns:
- one of: View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or
View.NOMINAL_FEET
getSensorCount
public int getSensorCount()
- Get the current sensor count.
- Returns:
- s the number of sensor objects per PhysicalEnvironment object
setSensorCount
public void setSensorCount(int count)
- Set the number of sensor objects per PhysicalEnvironmnet. This is a
calibration parameter that should be set before initializing Java 3D.
- Parameters:
- count - the new sensor count
getSensor
public Sensor getSensor(int i)
- Get the specified sensor
- Returns:
- s a reference to the specified sensor
setAudioPlaybackType
public void setAudioPlaybackType(int type)
- Set Type of Audio Playback physical transducer(s) sound is output to.
Valid types are HEADPHONE, MONO_SPEAKER, STEREO_SPEAKERS
- Parameters:
- type - of audio output device
getAudioPlaybackType
public int getAudioPlaybackType()
- Get Type of Audio Playback Output Device
- Returns:
- s audio playback type to which sound is currently output
setCenterEarToSpeaker
public void setCenterEarToSpeaker(float distance)
- Set Distance from Center Ear to Speakers
- Parameters:
- distance - from center ear and speaker(s)
getCenterEarToSpeaker
public float getCenterEarToSpeaker()
- Get Distance from Center Ear to Speakers
- Returns:
- s value set as distance from listener to speaker(s)
setAngleOffsetToSpeaker
public void setAngleOffsetToSpeaker(float angle)
- Set Angle Offset To Speaker
- Parameters:
- angle - in radian between head coordinate Z axis and vector to speaker
getAngleOffsetToSpeaker
public float getAngleOffsetToSpeaker()
- Get Angle Offset To Speaker
- Returns:
- s value set as angle between vector to speaker and Z head axis
All Packages Class Hierarchy This Package Previous Next Index