|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.PhysicalEnvironment
This object contains a specification of the physical environment in which the view will be generated. It is used to set up input devices (sensors) for head-tracking and other uses, and the audio output device. Sensors are indexed starting at zero.
View
Constructor Summary | |
PhysicalEnvironment()
Constructs a PhysicalEnvironment object with default parameters. |
|
PhysicalEnvironment(int sensorCount)
Constructs and initializes a PhysicalEnvironment object with the specified number of sensors. |
Method Summary | |
void |
addInputDevice(InputDevice device)
Add an input device to the list of input devices. |
java.util.Enumeration |
getAllInputDevices()
Create an enumerator that produces all input devices. |
AudioDevice |
getAudioDevice()
Gets the audioDevice for this PhysicalEnvironment. |
int |
getCoexistenceCenterInPworldPolicy()
Returns the current coexistence center in physical world policy. |
void |
getCoexistenceToTrackerBase(Transform3D t)
Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object. |
int |
getDominantHandIndex()
Gets the sensor index of the dominant hand. |
int |
getHeadIndex()
Gets the sensor index of the head. |
int |
getLeftHandIndex()
Gets the sensor index of the left hand. |
int |
getNonDominantHandIndex()
Gets the sensor index of the non-dominant hand. |
int |
getRightHandIndex()
Gets the sensor index of the right hand. |
Sensor |
getSensor(int index)
Gets the sensor specified by the index; sensors are indexed starting at 0. |
int |
getSensorCount()
Get the current sensor count. |
boolean |
getTrackingAvailable()
Returns a status flag indicating whether or not tracking is available. |
void |
removeInputDevice(InputDevice device)
Remove an input device from the list of input devices. |
void |
setAudioDevice(AudioDevice device)
Sets the specified AudioDevice object as the device through which audio rendering for this PhysicalEnvironment will be performed. |
void |
setCoexistenceCenterInPworldPolicy(int policy)
Sets the coexistence center in physical world policy. |
void |
setCoexistenceToTrackerBase(Transform3D t)
Sets the coexistence coordinate system to tracker-base coordinate system transform. |
void |
setDominantHandIndex(int index)
Sets the index of the dominant hand to the specified sensor index. |
void |
setHeadIndex(int index)
Sets the index of the head to the specified sensor index. |
void |
setLeftHandIndex(int index)
Sets the index of the left hand to the specified sensor index. |
void |
setNonDominantHandIndex(int index)
Sets the index of the non-dominant hand to the specified sensor index. |
void |
setRightHandIndex(int index)
Sets the index of the right hand to the specified sensor index. |
void |
setSensor(int index,
Sensor sensor)
Set the sensor specified by the index to sensor provided; sensors are indexed starting at 0. |
void |
setSensorCount(int count)
Set the number of sensor objects per PhysicalEnvironmnet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PhysicalEnvironment()
public PhysicalEnvironment(int sensorCount)
sensorCount
- the number of sensors to create.Method Detail |
public void setAudioDevice(AudioDevice device)
device
- audio device object to be associated with this
PhysicalEnvironmentpublic AudioDevice getAudioDevice()
public java.util.Enumeration getAllInputDevices()
public void addInputDevice(InputDevice device)
device
- the device to be added to the list of input devices
java.lang.IllegalArgumentException
- if InputDevice.getProcessingMode()
does not return one of BLOCKING, NON_BLOCKING, or DEMAND_DRIVEN.public void removeInputDevice(InputDevice device)
device
- the device to be removedpublic void setHeadIndex(int index)
index
- the new sensor index of the headpublic int getHeadIndex()
public void setRightHandIndex(int index)
index
- the new sensor index of the right handpublic int getRightHandIndex()
public void setLeftHandIndex(int index)
index
- the new sensor index of the left handpublic int getLeftHandIndex()
public void setDominantHandIndex(int index)
index
- the new sensor index of the dominant handpublic int getDominantHandIndex()
public void setNonDominantHandIndex(int index)
index
- the new sensor index of the non dominant handpublic int getNonDominantHandIndex()
public void setSensor(int index, Sensor sensor)
index
- the sensor's indexsensor
- the new sensorpublic Sensor getSensor(int index)
index
- the sensor's indexpublic void setCoexistenceToTrackerBase(Transform3D t)
t
- the new transform
BadTransformException
- if the transform is not rigidpublic void getCoexistenceToTrackerBase(Transform3D t)
t
- the object that will receive the transformpublic boolean getTrackingAvailable()
public void setCoexistenceCenterInPworldPolicy(int policy)
policy
- the new policypublic int getCoexistenceCenterInPworldPolicy()
public int getSensorCount()
public void setSensorCount(int count)
count
- the new sensor count
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |