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

Variable Index

 o HEADPHONES
 o MONO_SPEAKER
 o STEREO_SPEAKERS

Constructor Index

 o PhysicalEnvironment()
Constructs and initializes a new physical environment object.

Method Index

 o addInputDevice(InputDevice)
Add an input device to the list of input devices
 o allInputDevices()
Create an enumerator that produces all available devices
 o getAngleOffsetToSpeaker()
Get Angle Offset To Speaker
 o getAudioPlaybackType()
Get Type of Audio Playback Output Device
 o getCenterEarToSpeaker()
Get Distance from Center Ear to Speakers
 o getCoexistenceCenterInPworldPolicy()
Returns the current coexistence center in physical world policy.
 o getCoexistenceToTrackerBase(Transform3D)
Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object.
 o getSensor(int)
Get the specified sensor
 o getSensorCount()
Get the current sensor count.
 o getTrackingAvailable()
Returns a status flag indicating whether or not tracking is available.
 o setAngleOffsetToSpeaker(float)
Set Angle Offset To Speaker
 o setAudioPlaybackType(int)
Set Type of Audio Playback physical transducer(s) sound is output to.
 o setCenterEarToSpeaker(float)
Set Distance from Center Ear to Speakers
 o setCoexistenceCenterInPworldPolicy(int)
Sets the coexistence center in physical world policy.
 o setCoexistenceToTrackerBase(Transform3D)
Sets the coexistence coordinate system to tracker-base coordinate system transform.
 o setSensorCount(int)
Set the number of sensor objects per PhysicalEnvironmnet.

Variables

 o HEADPHONES
 public static final int HEADPHONES
 o MONO_SPEAKER
 public static final int MONO_SPEAKER
 o STEREO_SPEAKERS
 public static final int STEREO_SPEAKERS

Constructors

 o PhysicalEnvironment
 public PhysicalEnvironment()
Constructs and initializes a new physical environment object.

Methods

 o addInputDevice
 public void addInputDevice(InputDevice device)
Add an input device to the list of input devices

 o allInputDevices
 public Enumeration allInputDevices()
Create an enumerator that produces all available devices

Returns:
an enumerator of all available devices
 o 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
 o 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
 o getTrackingAvailable
 public boolean getTrackingAvailable()
Returns a status flag indicating whether or not tracking is available.

Returns:
a flag telling whether tracking is available
 o 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
 o 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
 o getSensorCount
 public int getSensorCount()
Get the current sensor count.

Returns:
s the number of sensor objects per PhysicalEnvironment object
 o 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
 o getSensor
 public Sensor getSensor(int i)
Get the specified sensor

Returns:
s a reference to the specified sensor
 o 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
 o getAudioPlaybackType
 public int getAudioPlaybackType()
Get Type of Audio Playback Output Device

Returns:
s audio playback type to which sound is currently output
 o setCenterEarToSpeaker
 public void setCenterEarToSpeaker(float distance)
Set Distance from Center Ear to Speakers

Parameters:
distance - from center ear and speaker(s)
 o getCenterEarToSpeaker
 public float getCenterEarToSpeaker()
Get Distance from Center Ear to Speakers

Returns:
s value set as distance from listener to speaker(s)
 o setAngleOffsetToSpeaker
 public void setAngleOffsetToSpeaker(float angle)
Set Angle Offset To Speaker

Parameters:
angle - in radian between head coordinate Z axis and vector to speaker
 o 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