|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.SensorRead
public class SensorRead
A SensorRead encapsulates all the information associated with a single reading of a sensor, including a timestamp, a transform, and, optionally, button values.
| Field Summary | |
|---|---|
static int |
MAXIMUM_SENSOR_BUTTON_COUNT
The maximum number of sensor-attached buttons tracked on a per sensor basis. |
| Constructor Summary | |
|---|---|
SensorRead()
Constructs a SensorRead object with default parameters. |
|
SensorRead(int numButtons)
Constructs a SensorRead object with the specified number of buttons. |
|
| Method Summary | |
|---|---|
void |
get(Transform3D result)
Retrieve the SensorRead's transform and place it in result |
void |
getButtons(int[] values)
Copies the array of button values for this SensorRead object into the specified array. |
int |
getNumButtons()
Returns the number of buttons associated with this SensorRead object. |
long |
getTime()
Retrieve this SensorRead's associated time stamp |
void |
set(Transform3D t1)
Set the SensorRead's transform to the value specified |
void |
setButtons(int[] values)
Sets the values of all buttons for this SensorRead object. |
void |
setTime(long time)
Sets this SensorRead's time stamp to the specified argument |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAXIMUM_SENSOR_BUTTON_COUNT
| Constructor Detail |
|---|
public SensorRead()
public SensorRead(int numButtons)
numButtons - the number of buttons for this SensorRead| Method Detail |
|---|
public void set(Transform3D t1)
t1 - this sensor's readingpublic void get(Transform3D result)
result - the recipient of the this sensor's readingpublic void setTime(long time)
time - the time to associate with this readingpublic long getTime()
public void setButtons(int[] values)
values - array contining the new buttons for this SensorRead
java.lang.ArrayIndexOutOfBoundsException - if this object
has 0 buttons or if values.length is less than the number of
buttons in this object.public void getButtons(int[] values)
values - array that will receive the values of all buttons
for this SensorReadpublic int getNumButtons()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||