Xj3D VRML/X3D Code API

org.web3d.vrml.device
Class Tracker

java.lang.Object
  extended byorg.web3d.vrml.device.Tracker
Direct Known Subclasses:
MouseTracker, MouseTracker

public abstract class Tracker
extends java.lang.Object

An abstract representation of a tracker. A tracker is a sensor on a device. A device may contain many trackers.

Version:
$Revision: 1.4 $
Author:
Alan Hudson

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  int getActionMask()
          What action types does this sensor return.
abstract  void getState(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

MASK_NONE

public static final int MASK_NONE
This sensor only issues button events

See Also:
Constant Field Values

MASK_PICKING

public static final int MASK_PICKING
This sensor can pick items in the scene

See Also:
Constant Field Values

MASK_POSITION

public static final int MASK_POSITION
This sensor can change position in the scene

See Also:
Constant Field Values

MASK_ORIENTATION

public static final int MASK_ORIENTATION
This sensor can change orientation in the scene

See Also:
Constant Field Values
Constructor Detail

Tracker

public Tracker()
Method Detail

actionChanges

public boolean actionChanges()
Can the action type of this sensor change over time?

Returns:
Is this an action figure?

getActionMask

public abstract int getActionMask()
What action types does this sensor return. This a combination of ACTION masks.

Returns:
The action mask.

getState

public abstract void getState(TrackerState state)
Get the current state of this tracker.

Parameters:
state - The current state

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium