Class SAIVisibilitySensor
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.environmentalsensor.SAIVisibilitySensor
- All Implemented Interfaces:
VisibilitySensor
,X3DChildNode
,X3DEnvironmentalSensorNode
,X3DNode
,X3DSensorNode
A concrete implementation of the VisibilitySensor node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIVisibilitySensor
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getCenter
(float[] val) Return the center value in the argument float[]boolean
Return the enabled boolean value.double
Return the enterTime double value.double
Return the exitTime double value.boolean
Return the isActive boolean value.void
getSize
(float[] val) Return the size value in the argument float[]void
setCenter
(float[] val) Set the center field.void
setEnabled
(boolean val) Set the enabled field.void
setSize
(float[] val) Set the size field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIVisibilitySensor
public SAIVisibilitySensor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
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.
-
getCenter
public void getCenter(float[] val) Return the center value in the argument float[]- Specified by:
getCenter
in interfaceX3DEnvironmentalSensorNode
- Parameters:
val
- The float[] to initialize.
-
setCenter
public void setCenter(float[] val) Set the center field.- Specified by:
setCenter
in interfaceX3DEnvironmentalSensorNode
- Parameters:
val
- The float[] to set.
-
getSize
public void getSize(float[] val) Return the size value in the argument float[]- Specified by:
getSize
in interfaceX3DEnvironmentalSensorNode
- Parameters:
val
- The float[] to initialize.
-
setSize
public void setSize(float[] val) Set the size field.- Specified by:
setSize
in interfaceX3DEnvironmentalSensorNode
- Parameters:
val
- The float[] to set.
-
getEnterTime
public double getEnterTime()Return the enterTime double value.- Specified by:
getEnterTime
in interfaceX3DEnvironmentalSensorNode
- Returns:
- The enterTime double value.
-
getExitTime
public double getExitTime()Return the exitTime double value.- Specified by:
getExitTime
in interfaceX3DEnvironmentalSensorNode
- Returns:
- The exitTime double value.
-