public interface TouchSensor extends X3DTouchSensorNode
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Provide String value from inputOutput SFString field named description.
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
float[] |
getHitNormal()
Provide array of 3-tuple float results from outputOnly SFVec3f field named hitNormal_changed.
|
float[] |
getHitPoint()
Provide array of 3-tuple float results from outputOnly SFVec3f field named hitPoint_changed.
|
float[] |
getHitTexCoord()
Provide array of 2-tuple float results from outputOnly SFVec2f field named hitTexCoord_changed.
|
boolean |
getIsActive()
Provide boolean value from outputOnly SFBool field named isActive.
|
boolean |
getIsOver()
Provide boolean value from outputOnly SFBool field named isOver.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
double |
getTouchTime()
Provide double value in seconds from outputOnly SFTime field named touchTime.
|
TouchSensor |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
TouchSensor |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
TouchSensor |
setDescription(java.lang.String newValue)
Assign String value to inputOutput SFString field named description.
|
TouchSensor |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
TouchSensor |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
TouchSensor |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
java.lang.String getDescription()
getDescription in interface X3DPointingDeviceSensorNodegetDescription in interface X3DTouchSensorNodeTouchSensor setDescription(java.lang.String newValue)
setDescription in interface X3DPointingDeviceSensorNodesetDescription in interface X3DTouchSensorNodenewValue - is new value for the description field.TouchSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getEnabled()
getEnabled in interface X3DPointingDeviceSensorNodegetEnabled in interface X3DSensorNodegetEnabled in interface X3DTouchSensorNodeTouchSensor setEnabled(boolean newValue)
setEnabled in interface X3DPointingDeviceSensorNodesetEnabled in interface X3DSensorNodesetEnabled in interface X3DTouchSensorNodenewValue - is new value for the enabled field.TouchSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getHitNormal()
float[] getHitPoint()
float[] getHitTexCoord()
boolean getIsActive()
getIsActive in interface X3DPointingDeviceSensorNodegetIsActive in interface X3DSensorNodegetIsActive in interface X3DTouchSensorNodeboolean getIsOver()
getIsOver in interface X3DPointingDeviceSensorNodegetIsOver in interface X3DTouchSensorNodeX3DMetadataObject getMetadata()
getMetadata in interface X3DChildNodegetMetadata in interface X3DNodegetMetadata in interface X3DPointingDeviceSensorNodegetMetadata in interface X3DSensorNodegetMetadata in interface X3DTouchSensorNodeTouchSensor setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DChildNodesetMetadata in interface X3DNodesetMetadata in interface X3DPointingDeviceSensorNodesetMetadata in interface X3DSensorNodesetMetadata in interface X3DTouchSensorNodenewValue - is new value for the metadata field.TouchSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).double getTouchTime()
getTouchTime in interface X3DTouchSensorNodeTouchSensor setDEF(java.lang.String newValue)
setDEF in interface X3DChildNodesetDEF in interface X3DNodesetDEF in interface X3DPointingDeviceSensorNodesetDEF in interface X3DSensorNodesetDEF in interface X3DTouchSensorNodenewValue - is new value for the DEF field.TouchSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).TouchSensor setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.setUSE in interface X3DChildNodesetUSE in interface X3DNodesetUSE in interface X3DPointingDeviceSensorNodesetUSE in interface X3DSensorNodesetUSE in interface X3DTouchSensorNodenewValue - is new value for the USE field.TouchSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).TouchSensor setCssClass(java.lang.String newValue)
setCssClass in interface X3DChildNodesetCssClass in interface X3DNodesetCssClass in interface X3DPointingDeviceSensorNodesetCssClass in interface X3DSensorNodesetCssClass in interface X3DTouchSensorNodenewValue - is new value for the class field.TouchSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.