All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.SensorRead
java.lang.Object
|
+----java.media.j3d.SensorRead
- public class SensorRead
- extends Object
A SensorRead encapsulates all the information associated with a single
reading of a sensor.
-
MAXIMUM_SENSOR_BUTTON_COUNT
- The maximum number of sensor-attached buttons tracked on a per
sensor basis.
-
SensorRead()
- Creates a new SensorRead object.
-
SensorRead(int)
- Creates a new SensorRead object.
-
get(Transform3D)
- Retrieve the SensorRead's transform and place it in result
-
getButtonCount()
- Retrieve the number of buttons values assocaited with this SensorRead.
-
getButtons(boolean[])
- Retrieve this SensorRead's associated button states
-
getTime()
- Retrieve this SensorRead's associated timestamp
-
set(Transform3D)
- Set the SensorRead's transform to the value specified
-
setButtons(boolean[])
- Sets this SensorRead's button state values to the values in the
arguments
-
setTime(long)
- Sets this SensorRead's time to the specified argument
MAXIMUM_SENSOR_BUTTON_COUNT
public static final int MAXIMUM_SENSOR_BUTTON_COUNT
- The maximum number of sensor-attached buttons tracked on a per
sensor basis.
SensorRead
public SensorRead()
- Creates a new SensorRead object.
- Returns:
- s a new SensorRead object.
SensorRead
public SensorRead(int buttonCount)
- Creates a new SensorRead object.
- Parameters:
- buttonCount - The number of buttons associated with this device's
sensor.
- Returns:
- s a new SensorRead object.
set
public final void set(Transform3D t1)
- Set the SensorRead's transform to the value specified
- Parameters:
- t1 - this sensor's reading
get
public final void get(Transform3D result)
- Retrieve the SensorRead's transform and place it in result
- Parameters:
- result - the recipient of the this sensor's reading
setTime
public final void setTime(long time)
- Sets this SensorRead's time to the specified argument
- Parameters:
- time - the time to associate with this reading
getTime
public final long getTime()
- Retrieve this SensorRead's associated timestamp
- Returns:
- the SensorRead's time as a long
setButtons
public final void setButtons(boolean values[])
- Sets this SensorRead's button state values to the values in the
arguments
- Parameters:
- value - a array of button state values
getButtons
public final void getButtons(boolean values[])
- Retrieve this SensorRead's associated button states
- Parameters:
- values - an array that will receive the SensorRead button states.
getButtonCount
public final int getButtonCount()
- Retrieve the number of buttons values assocaited with this SensorRead.
- Returns:
- a count of the number of buffer reads for this SensorRead Object
All Packages Class Hierarchy This Package Previous Next Index