public interface InputDevice
| Modifier and Type | Field and Description | 
|---|---|
static int | 
BLOCKING
Signifies that the driver for a device is a blocking driver and that
 it should be scheduled for regular reads by Java 3D. 
 | 
static int | 
DEMAND_DRIVEN
Signifies that the Java 3D implementation should not schedule
 regular reads on the sensors of this device; the Java 3D
 implementation will only call pollAndProcessInput when one of the
 device's sensors' getRead methods is called. 
 | 
static int | 
NON_BLOCKING
Signifies that the driver for a device is a non-blocking driver and
 that it should be scheduled for regular reads by Java 3D. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Code to process the clean up of the device and relinquish associated
 resources. 
 | 
int | 
getProcessingMode()
This method retrieves the device's processing mode: one of BLOCKING,
 NON_BLOCKING, or DEMAND_DRIVEN. 
 | 
Sensor | 
getSensor(int sensorIndex)
Gets the specified Sensor associated with the device. 
 | 
int | 
getSensorCount()
This method gets the number of sensors associated with the device. 
 | 
boolean | 
initialize()
This method initializes the device. 
 | 
void | 
pollAndProcessInput()
This method causes the device's sensor readings to be updated by the
 device driver. 
 | 
void | 
processStreamInput()
This method will not be called by the Java 3D implementation and
 should be implemented as an empty method. 
 | 
void | 
setNominalPositionAndOrientation()
This method sets the device's current position and orientation as the
 devices nominal position and orientation (establish its reference
 frame relative to the "Tracker base" reference frame). 
 | 
void | 
setProcessingMode(int mode)
This method sets the device's processing mode to one of: BLOCKING,
 NON_BLOCKING, or DEMAND_DRIVEN. 
 | 
static final int BLOCKING
static final int NON_BLOCKING
static final int DEMAND_DRIVEN
boolean initialize()
void setNominalPositionAndOrientation()
void pollAndProcessInput()
void processStreamInput()
void close()
int getProcessingMode()
void setProcessingMode(int mode)
NOTE: this method should not be called after the input device has been added to a PhysicalEnvironment. The processingMode must remain constant while a device is attached to a PhysicalEnvironment.
mode - One of BLOCKING, NON_BLOCKING, or DEMAND_DRIVENint getSensorCount()
Sensor getSensor(int sensorIndex)
sensorIndex - the sensor to retrieveCopyright © 2016–2022 SciJava. All rights reserved.