|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.device.DeviceState
org.web3d.vrml.device.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 |
int[] |
buttonMode
What navigation mode should this button use |
boolean[] |
buttonState
|
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 |
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 |
float[] |
worldOri
The orientation in world coordinates |
float[] |
worldPos
The position in world coordinates. |
| Constructor Summary | |
TrackerState()
Create a new default state. |
|
| Methods inherited from class org.web3d.vrml.device.DeviceState |
clearChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 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
| Constructor Detail |
public TrackerState()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||