public class SensorRead extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_SENSOR_BUTTON_COUNT
The maximum number of sensor-attached buttons tracked on a per
sensor basis.
|
Constructor and Description |
---|
SensorRead()
Constructs a SensorRead object with default parameters.
|
SensorRead(int numButtons)
Constructs a SensorRead object with the specified number
of buttons.
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final int MAXIMUM_SENSOR_BUTTON_COUNT
public SensorRead()
public SensorRead(int numButtons)
numButtons
- the number of buttons for this SensorReadpublic 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 SensorReadArrayIndexOutOfBoundsException
- 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()
Copyright © 2016–2022 SciJava. All rights reserved.