org.web3d.vrml.nodes
Interface VRMLTouchSensorNodeType
- All Superinterfaces:
- FrameStateListener, VRMLChildNodeType, VRMLNode, VRMLNodeType, VRMLPointingDeviceSensorNodeType, VRMLSensorNodeType
- 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.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, 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 |
notifyPressed
public 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 pressedsimTime - The VRML simulation time it happenedhitPoint - The location clicked in object space coordinateshitNormal - Surface normal vector at the intersection pointhitTexCoord - The texture coordinate at the intersection point
notifyReleased
public 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 releasedsimTime - The VRML simulation time it happenedhitPoint - The location clicked in object space coordinateshitNormal - Surface normal vector at the intersection pointhitTexCoord - The texture coordinate at the intersection point
notifyHitChanged
public 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 coordinateshitNormal - Surface normal vector at the intersection pointhitTexCoord - The texture coordinate at the intersection point
Copyright © 2001 - 2005 Web3D Consortium