All Packages Class Hierarchy This Package Previous Next Index
Interface javax.media.j3d.InputDevice
- public interface InputDevice
A InputDevice object encapsulates the InputDevice's basic information.
-
POLLED
- Specifies that the associated devices works in polled mode
-
STREAMING
- Specifies that the associated devices works in streaming mode
-
close()
- Code to process the clean up the device and close associated files
-
getProcessingMode()
- Retrieve the Device's processing mode
-
getSensor(int)
- Get the specified Sensor associated with the Device.
-
getSensorCount()
- Get the Device's sensorCount.
-
initialize()
- Code to initialize the device
-
pollAndProcessInput()
- Code to poll and process the device's input.
-
processStreamInput()
- Code to process the device's streaming input.
-
setNominalPositionAndOrientation()
- Code to set 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).
-
setProcessingMode(int)
- Retrieve the Device's processing mode
POLLED
public static final int POLLED
- Specifies that the associated devices works in polled mode
STREAMING
public static final int STREAMING
- Specifies that the associated devices works in streaming mode
initialize
public abstract boolean initialize()
- Code to initialize the device
setNominalPositionAndOrientation
public abstract void setNominalPositionAndOrientation()
- Code to set 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).
pollAndProcessInput
public abstract void pollAndProcessInput()
- Code to poll and process the device's input.
processStreamInput
public abstract void processStreamInput()
- Code to process the device's streaming input.
close
public abstract void close()
- Code to process the clean up the device and close associated files
getProcessingMode
public abstract int getProcessingMode()
- Retrieve the Device's processing mode
- Returns:
- Returns the devices processing mode one of POLLED or STREAMING
setProcessingMode
public abstract void setProcessingMode(int mode)
- Retrieve the Device's processing mode
- Parameters:
- mode - One of POLLED or STREAMING
getSensorCount
public abstract int getSensorCount()
- Get the Device's sensorCount. Initially set in the Device's
constructor.
- Returns:
- the input device's sensor count.
getSensor
public abstract Sensor getSensor(int sensorIndex)
- Get the specified Sensor associated with the Device.
- Parameters:
- sensorIndex - the sensor to retrieve
- Returns:
- Returns the specified sensor.
All Packages Class Hierarchy This Package Previous Next Index