|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A listener to notify that a sensor's status has changed in relation to an input device. Any VRML/X3D node that interacts with a tracker will issue these events. TODO: This interface does not allow you to seperate events when the user has multiple picking devices like two gloves. In the future we will add parameters to determine which device was used.
| Field Summary | |
static int |
TYPE_ANCHOR
The sensor is an Anchor |
static int |
TYPE_DRAG_SENSOR
The sensor is a DragSensor |
static int |
TYPE_TOUCH_SENSOR
The sensor is a TouchSensor |
| Method Summary | |
void |
deviceActivated(int type)
Invoked when a tracker activates the sensor. |
void |
deviceNotOver(int type)
Invoked when a tracker leaves contact with a sensor. |
void |
deviceOver(int type,
java.lang.String desc)
Invoked when a sensor/anchor is in contact with a tracker capable of picking. |
void |
linkActivated(java.lang.String[] url)
Invoked when a tracker follows a link. |
| Field Detail |
public static final int TYPE_ANCHOR
public static final int TYPE_TOUCH_SENSOR
public static final int TYPE_DRAG_SENSOR
| Method Detail |
public void deviceOver(int type,
java.lang.String desc)
type - The sensor typedesc - The sensor's description stringpublic void deviceNotOver(int type)
type - The sensor typepublic void deviceActivated(int type)
type - The sensor typepublic void linkActivated(java.lang.String[] url)
url - The url to load.
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||