iicm.vrml.pw
Class TouchSensor

java.lang.Object
  extended by iicm.vrml.pw.Node
      extended by iicm.vrml.pw.Sensor
          extended by iicm.vrml.pw.TouchSensor
All Implemented Interfaces:
PointerSensor

public class TouchSensor
extends Sensor
implements PointerSensor


Field Summary
 SFBool enabled
           
 SFVec3f hitNormal_changed
           
 SFVec3f hitPoint_changed
           
 SFVec2f hitTexCoord_changed
           
 SFBool isActive
           
 SFBool isOver
           
 SFTime touchTime
           
 
Fields inherited from class iicm.vrml.pw.Node
DEF_KEYWORD, EXTERNPROTO_KEYWORD, fieldIScontent, newISname, newISnum, objname, PROTO_KEYWORD, ROUTE_KEYWORD, SCRIPT_KEYWORD, subfields, USE_KEYWORD, userdata
 
Constructor Summary
TouchSensor()
           
 
Method Summary
 void mouseDown(float downx, float downy, Hitpoint hit, double timestamp)
          handle mouse down in interaction mode
 void mouseDrag(float downx, float downy, Hitpoint hit, double timestamp)
          handle mouse drag in interaction mode
 void mouseExit(double timestamp)
          handle mouse exit
 void mouseMove(float downx, float downy, Hitpoint hit, double timestamp)
          handle mouse move in interaction mode
 void mouseUp(double timestamp)
          handle mouse up in interaction mode
 java.lang.String nodeName()
          the node's name
 void traverse(Traverser t)
          must call appropriate method of Traverser for node traversal
 
Methods inherited from class iicm.vrml.pw.Sensor
evaluate
 
Methods inherited from class iicm.vrml.pw.Node
addField, addRoute, atCurrLine, createInstanceFromName, deleteRoute, getEvent, readFields, readNode, readNodeBody, readNodeBody, tab, traverseNode, writeNode, writeSubfield, writeSubfields, writeX3dISfields, writeX3dNode, writeX3dNode, writeX3dNode, writeX3dSubfield, writeX3dSubfields, writeX3dSubfields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

public SFBool enabled

hitNormal_changed

public SFVec3f hitNormal_changed

hitPoint_changed

public SFVec3f hitPoint_changed

hitTexCoord_changed

public SFVec2f hitTexCoord_changed

isActive

public SFBool isActive

isOver

public SFBool isOver

touchTime

public SFTime touchTime
Constructor Detail

TouchSensor

TouchSensor()
Method Detail

nodeName

public java.lang.String nodeName()
Description copied from class: Node
the node's name

Specified by:
nodeName in class Node

traverse

public void traverse(Traverser t)
Description copied from class: Node
must call appropriate method of Traverser for node traversal

Specified by:
traverse in class Node

mouseMove

public void mouseMove(float downx,
                      float downy,
                      Hitpoint hit,
                      double timestamp)
handle mouse move in interaction mode

Specified by:
mouseMove in interface PointerSensor

mouseDrag

public void mouseDrag(float downx,
                      float downy,
                      Hitpoint hit,
                      double timestamp)
handle mouse drag in interaction mode

Specified by:
mouseDrag in interface PointerSensor

mouseDown

public void mouseDown(float downx,
                      float downy,
                      Hitpoint hit,
                      double timestamp)
handle mouse down in interaction mode

Specified by:
mouseDown in interface PointerSensor

mouseUp

public void mouseUp(double timestamp)
handle mouse up in interaction mode

Specified by:
mouseUp in interface PointerSensor

mouseExit

public void mouseExit(double timestamp)
handle mouse exit

Specified by:
mouseExit in interface PointerSensor