|
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.Tracker
public abstract class Tracker
An abstract representation of a tracker. A tracker is a sensor on a device. A device may contain many trackers.
With the introduction of layers and compositing, tracker state in the world coordinates is dependent on the layer that is being processed. For each layer, the device will have a different set of world coordinates. Within a given rendered frame a tracker may be called multiple times; once for each layer/sublayer combo and asked for the state information relative to that layer.
Field Summary | |
---|---|
static int |
MASK_NONE
This sensor only issues button events |
static int |
MASK_ORIENTATION
This sensor can change orientation in the scene |
static int |
MASK_PICKING
This sensor can pick items in the scene |
static int |
MASK_POSITION
This sensor can change position in the scene |
Constructor Summary | |
---|---|
Tracker()
|
Method Summary | |
---|---|
boolean |
actionChanges()
Can the action type of this sensor change over time? |
abstract void |
beginPolling()
Notification that tracker polling is beginning. |
abstract void |
endPolling()
Notification that tracker polling is ending. |
abstract int |
getActionMask()
What action types does this sensor return. |
abstract void |
getState(int layer,
int subLayer,
TrackerState state)
Get the current state of this tracker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MASK_NONE
public static final int MASK_PICKING
public static final int MASK_POSITION
public static final int MASK_ORIENTATION
Constructor Detail |
---|
public Tracker()
Method Detail |
---|
public boolean actionChanges()
public abstract int getActionMask()
public abstract void beginPolling()
public abstract void endPolling()
public abstract void getState(int layer, int subLayer, TrackerState state)
layer
- The ID of the layer to get the state forsubLayer
- The ID of the sub layer within the parent layerstate
- The current state
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |