Class SAITouchSensor
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.pointingdevicesensor.SAITouchSensor
- All Implemented Interfaces:
TouchSensor
,X3DChildNode
,X3DNode
,X3DPointingDeviceSensorNode
,X3DSensorNode
,X3DTouchSensorNode
A concrete implementation of the TouchSensor node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAITouchSensor
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the description String value.boolean
Return the enabled boolean value.void
getHitNormal
(float[] val) Return the hitNormal_changed value in the argument float[]void
getHitPoint
(float[] val) Return the hitPoint_changed value in the argument float[]void
getHitTexCoord
(float[] val) Return the hitTexCoord_changed value in the argument float[]boolean
Return the isActive boolean value.boolean
Return the isOver boolean value.double
Return the touchTime double value.void
setDescription
(String val) Set the description field.void
setEnabled
(boolean val) Set the enabled field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAITouchSensor
public SAITouchSensor(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceX3DSensorNode
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceX3DSensorNode
- Parameters:
val
- The boolean to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActive
in interfaceX3DSensorNode
- Returns:
- The isActive boolean value.
-
getHitNormal
public void getHitNormal(float[] val) Return the hitNormal_changed value in the argument float[]- Specified by:
getHitNormal
in interfaceTouchSensor
- Parameters:
val
- The float[] to initialize.
-
getHitPoint
public void getHitPoint(float[] val) Return the hitPoint_changed value in the argument float[]- Specified by:
getHitPoint
in interfaceTouchSensor
- Parameters:
val
- The float[] to initialize.
-
getHitTexCoord
public void getHitTexCoord(float[] val) Return the hitTexCoord_changed value in the argument float[]- Specified by:
getHitTexCoord
in interfaceTouchSensor
- Parameters:
val
- The float[] to initialize.
-
getIsOver
public boolean getIsOver()Return the isOver boolean value.- Specified by:
getIsOver
in interfaceX3DPointingDeviceSensorNode
- Returns:
- The isOver boolean value.
-
getTouchTime
public double getTouchTime()Return the touchTime double value.- Specified by:
getTouchTime
in interfaceX3DTouchSensorNode
- Returns:
- The touchTime double value.
-
getDescription
Return the description String value.- Specified by:
getDescription
in interfaceX3DPointingDeviceSensorNode
- Returns:
- The description String value.
-
setDescription
Set the description field.- Specified by:
setDescription
in interfaceX3DPointingDeviceSensorNode
- Parameters:
val
- The String to set.
-