public class PhysicalEnvironment extends Object
View| Constructor and Description | 
|---|
PhysicalEnvironment()
Constructs a PhysicalEnvironment object with default parameters. 
 | 
PhysicalEnvironment(int sensorCount)
Constructs and initializes a PhysicalEnvironment object with
 the specified number of sensors. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addInputDevice(InputDevice device)
Add an input device to the list of input devices. 
 | 
Enumeration<InputDevice> | 
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. 
 | 
public PhysicalEnvironment()
public PhysicalEnvironment(int sensorCount)
sensorCount - the number of sensors to create.public void setAudioDevice(AudioDevice device)
device - audio device object to be associated with this
 PhysicalEnvironmentpublic AudioDevice getAudioDevice()
public Enumeration<InputDevice> getAllInputDevices()
public void addInputDevice(InputDevice device)
device - the device to be added to the list of input devicesIllegalArgumentException - 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 transformBadTransformException - 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  countCopyright © 2016–2022 SciJava. All rights reserved.