wobs.scene3d.nodes
Class TouchSensor

java.lang.Object
  extended by X3DDefaultNode
      extended by wobs.scene3d.nodes.TouchSensor

public class TouchSensor
extends X3DDefaultNode

This class contains index constants to access fields in a TouchSensor node using the X3DNode.getField(int fieldIndex) method.

In X3D/VRML, a TouchSensor node tracks the location and state of the pointing device and detects when the user points at geometry contained by the TouchSensor node's parent group.


Field Summary
static int active
          The constant used to access the active field of a TouchSensor node.
static int enabled
          The constant used to access the enabled field of a TouchSensor node.
static int hitPoint
          The constant used to access the hitPoint field of a TouchSensor node.
static int hitTexCoord
          The constant used to access the hitTexCoord field of a TouchSensor node.
static int over
          The constant used to access the over field of a TouchSensor node.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

public static final int enabled
The constant used to access the enabled field of a TouchSensor node.
In X3D/VRML, this field turns the TouchSensor node on and off. If the TouchSensor node is disabled, it does not track user input or send events.

This field is of X3D/VRML-type SFBool.

See Also:
Constant Field Values

hitPoint

public static final int hitPoint
The constant used to access the hitPoint field of a TouchSensor node.
In X3D/VRML, this field contains the 3D point on the surface of the underlying geometry, given in the TouchSensor node's coordinate system. Original VRML node name is hitPoint_changed.

This field is of X3D/VRML-type SFVec3f.

See Also:
Constant Field Values

hitTexCoord

public static final int hitTexCoord
The constant used to access the hitTexCoord field of a TouchSensor node.
In X3D/VRML, this field contains the texture coordinates. Original VRML node name is hitTextCoord_changed.

This field is of X3D/VRML-type SFVec2f.

See Also:
Constant Field Values

active

public static final int active
The constant used to access the active field of a TouchSensor node.
In X3D/VRML, this field is set to TRUE when the primary button is pressed over the TouchSensor node's geometry and FALSE when it is released. When a TouchSensor has this field signalling TRUE, it grabs all motion events from the mouse so that no other TouchSensors will be modified by mouse motion. Original VRML node name is isActive.

This field is of X3D/VRML-type SFBool.

See Also:
Constant Field Values

over

public static final int over
The constant used to access the over field of a TouchSensor node.
In X3D/VRML, this field is set to True if the mouse cursor moves within (or in contact with) the TouchSensor node's geometry and FALSE when the cursor is moved outside the geometry. Original VRML node name is isOver.

This field is of X3D/VRML-type SFBool.

See Also:
Constant Field Values