|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.device.input.DeviceState org.j3d.device.input.TrackerState
public class TrackerState
Holds a single tracker's state.
A sensor is responsible for converting its coordinates into worldCoordinates Needs to return position, orientation and button state action(Picking, Navigation, Orientation)
Field Summary | |
---|---|
int |
actionMask
A mask of actions this tracker might return. |
int |
actionType
What action is this state record for |
boolean |
altModifier
Alt key modifier |
int[] |
buttonMode
What navigation mode should this button use |
boolean[] |
buttonState
|
boolean |
ctrlModifier
Ctrl key modifier |
float[] |
deviceOri
An orientation vector in device coords |
float[] |
devicePos
The position of the tracker in device coordinates |
int |
numButtons
The number of buttons the tracker has |
boolean[] |
pickingEnabled
Is picking enabled for this button |
boolean |
shiftModifier
Shift key modifier |
static int |
TYPE_BUTTON
Only a button changed state, nothing else |
static int |
TYPE_CLICK
The action type was a click |
static int |
TYPE_DRAG
The action type was a drag |
static int |
TYPE_MOVE
The action type was a movement |
static int |
TYPE_NONE
No type event was processed |
static int |
TYPE_ORIENTATION
The action type was a orientation change |
static int |
TYPE_PRESS
The action type was a press |
static int |
TYPE_RELEASE
The action type was a release |
static int |
TYPE_WHEEL
The action type was a wheel rotation |
int |
wheelClicks
The number of 'clicks' a wheel has rotated by |
float[] |
worldOri
The orientation in world coordinates |
float[] |
worldPos
The position in world coordinates. |
Constructor Summary | |
---|---|
TrackerState()
Create a new default state. |
Method Summary | |
---|---|
java.lang.String |
toString()
Generate a string representation of this tracker's current state. |
Methods inherited from class org.j3d.device.input.DeviceState |
---|
clearChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_NONE
public static final int TYPE_PRESS
public static final int TYPE_DRAG
public static final int TYPE_CLICK
public static final int TYPE_RELEASE
public static final int TYPE_MOVE
public static final int TYPE_ORIENTATION
public static final int TYPE_BUTTON
public static final int TYPE_WHEEL
public int actionMask
public int actionType
public float[] devicePos
public float[] deviceOri
public float[] worldPos
public float[] worldOri
public boolean[] buttonState
public boolean[] pickingEnabled
public int[] buttonMode
public int numButtons
public int wheelClicks
public boolean shiftModifier
public boolean altModifier
public boolean ctrlModifier
Constructor Detail |
---|
public TrackerState()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |