iicm.vrml.pw
Class CylinderSensor

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

public class CylinderSensor
extends Sensor
implements PointerSensor


Field Summary
(package private) static int ANG
           
 SFBool autoOffset
           
static int CYLINDERMODE
           
 float cylRadius_
           
 SFFloat diskAngle
           
static int DISKMODE
           
 int dragMode_
           
 SFBool enabled
           
 SFBool isActive
           
 SFFloat maxAngle
           
 SFFloat minAngle
           
 SFFloat offset
           
(package private)  float oldTrackAng_
           
 float oldx_
           
 float oldy_
           
 Ray ray_
           
 SFRotation rotation_changed
           
(package private)  float trackingPlan_
           
 SFVec3f trackPoint_changed
           
(package private)  float[] trfmat_
           
(package private) static int X
           
(package private) static int Y
           
(package private) static int Z
           
 
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
CylinderSensor()
           
 
Method Summary
private  float diskrotangle(float x, float z)
          diskrotangle calculates the angle of the point (x,z) + angle = counterclockwise z+ = up x+ = right - angle = clockwise z- = down x- - left
 void mouseDown(float downx, float downy, Hitpoint hit, double timestamp)
          handle mouse down in interaction mode
 void mouseDrag(float dragx, float dragy, 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

offset

public SFFloat offset

diskAngle

public SFFloat diskAngle

maxAngle

public SFFloat maxAngle

minAngle

public SFFloat minAngle

enabled

public SFBool enabled

autoOffset

public SFBool autoOffset

isActive

public SFBool isActive

rotation_changed

public SFRotation rotation_changed

trackPoint_changed

public SFVec3f trackPoint_changed

oldx_

public float oldx_

oldy_

public float oldy_

cylRadius_

public float cylRadius_

dragMode_

public int dragMode_

CYLINDERMODE

public static final int CYLINDERMODE
See Also:
Constant Field Values

DISKMODE

public static final int DISKMODE
See Also:
Constant Field Values

trfmat_

float[] trfmat_

ray_

public Ray ray_

trackingPlan_

float trackingPlan_

oldTrackAng_

float oldTrackAng_

X

static final int X
See Also:
Constant Field Values

Y

static final int Y
See Also:
Constant Field Values

Z

static final int Z
See Also:
Constant Field Values

ANG

static final int ANG
See Also:
Constant Field Values
Constructor Detail

CylinderSensor

CylinderSensor()
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 dragx,
                      float dragy,
                      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

diskrotangle

private float diskrotangle(float x,
                           float z)
diskrotangle calculates the angle of the point (x,z) + angle = counterclockwise z+ = up x+ = right - angle = clockwise z- = down x- - left