All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.SensorRead

java.lang.Object
   |
   +----javax.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.

Method Index

 o get(Transform3D)
Retrieve the SensorRead's transform and place it in result
 o getButtons()
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(int)
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.

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(int values)
Sets this SensorRead's button state values to the values in the arguments

Parameters:
value - a int encoding the state of buttons
 o getButtons
 public final int getButtons()
Retrieve this SensorRead's associated button states

Returns:
the button state of this SensorRead.

All Packages  Class Hierarchy  This Package  Previous  Next  Index