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.


Variable Index

 o MAXIMUM_SENSOR_BUTTON_COUNT
The maximum number of sensor-attached buttons tracked on a per sensor basis.

Constructor Index

 o SensorRead()
Creates a new SensorRead object.
 o SensorRead(int)
Creates a new SensorRead object.

Method Index

 o get(Transform3D)
Retrieve the SensorRead's transform and place it in result
 o getButtonCount()
Retrieve the number of buttons values assocaited with this SensorRead.
 o getButtons(boolean[])
Retrieve this SensorRead's associated button states
 o getTime()
Retrieve this SensorRead's associated timestamp
 o set(Transform3D)
Set the SensorRead's transform to the value specified
 o setButtons(boolean[])
Sets this SensorRead's button state values to the values in the arguments
 o setTime(long)
Sets this SensorRead's time to the specified argument

Variables

 o 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.

Constructors

 o SensorRead
 public SensorRead()
Creates a new SensorRead object.

Returns:
s a new SensorRead object.
 o 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.

Methods

 o set
 public final void set(Transform3D t1)
Set the SensorRead's transform to the value specified

Parameters:
t1 - this sensor's reading
 o 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
 o 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
 o getTime
 public final long getTime()
Retrieve this SensorRead's associated timestamp

Returns:
the SensorRead's time as a long
 o 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
 o 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.
 o 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