Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLTouchSensorNodeType

All Superinterfaces:
FrameStateListener, VRMLChildNodeType, VRMLNode, VRMLNodeType, VRMLPointingDeviceSensorNodeType, VRMLSensorNodeType, VRMLWorldRootChildNodeType

public interface VRMLTouchSensorNodeType
extends VRMLPointingDeviceSensorNodeType

Nodes which can be activated by clicking with a pointing device sensor

Version:
$Revision: 1.5 $
Author:
Alan Hudson

Method Summary
 void notifyHitChanged(float[] hitPoint, float[] hitNormal, float[] hitTexCoord)
          Notify the node that the device moved while pressed.
 void notifyPressed(int button, double simTime, float[] hitPoint, float[] hitNormal, float[] hitTexCoord)
          Notify the node that a button was pushed down.
 void notifyReleased(int button, double simTime, float[] hitPoint, float[] hitNormal, float[] hitTexCoord)
          Notify the node that a button was released.
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLPointingDeviceSensorNodeType
getDescription, getIsOver, requiresPointOnly, setDescription, setIsOver
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLSensorNodeType
getEnabled, getIsActive, setEnabled
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
 
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
 
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
 

Method Detail

notifyPressed

void notifyPressed(int button,
                   double simTime,
                   float[] hitPoint,
                   float[] hitNormal,
                   float[] hitTexCoord)
Notify the node that a button was pushed down.

Parameters:
button - The button that was pressed
simTime - The VRML simulation time it happened
hitPoint - The location clicked in object space coordinates
hitNormal - Surface normal vector at the intersection point
hitTexCoord - The texture coordinate at the intersection point

notifyReleased

void notifyReleased(int button,
                    double simTime,
                    float[] hitPoint,
                    float[] hitNormal,
                    float[] hitTexCoord)
Notify the node that a button was released.

Parameters:
button - The button that was released
simTime - The VRML simulation time it happened
hitPoint - The location clicked in object space coordinates
hitNormal - Surface normal vector at the intersection point
hitTexCoord - The texture coordinate at the intersection point

notifyHitChanged

void notifyHitChanged(float[] hitPoint,
                      float[] hitNormal,
                      float[] hitTexCoord)
Notify the node that the device moved while pressed.

Parameters:
hitPoint - The current location in object space coordinates
hitNormal - Surface normal vector at the intersection point
hitTexCoord - The texture coordinate at the intersection point

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium