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 TypeMethodDescriptionvoidgetCenter(float[] val) Return the center value in the argument float[]booleanReturn the enabled boolean value.doubleReturn the enterTime double value.doubleReturn the exitTime double value.booleanReturn the isActive boolean value.voidgetSize(float[] val) Return the size value in the argument float[]voidsetCenter(float[] val) Set the center field.voidsetEnabled(boolean val) Set the enabled field.voidsetSize(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, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getEnabledin interfaceX3DSensorNode- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceX3DSensorNode- Parameters:
val- The boolean to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActivein interfaceX3DSensorNode- Returns:
- The isActive boolean value.
-
getCenter
public void getCenter(float[] val) Return the center value in the argument float[]- Specified by:
getCenterin interfaceX3DEnvironmentalSensorNode- Parameters:
val- The float[] to initialize.
-
setCenter
public void setCenter(float[] val) Set the center field.- Specified by:
setCenterin interfaceX3DEnvironmentalSensorNode- Parameters:
val- The float[] to set.
-
getSize
public void getSize(float[] val) Return the size value in the argument float[]- Specified by:
getSizein interfaceX3DEnvironmentalSensorNode- Parameters:
val- The float[] to initialize.
-
setSize
public void setSize(float[] val) Set the size field.- Specified by:
setSizein interfaceX3DEnvironmentalSensorNode- Parameters:
val- The float[] to set.
-
getEnterTime
public double getEnterTime()Return the enterTime double value.- Specified by:
getEnterTimein interfaceX3DEnvironmentalSensorNode- Returns:
- The enterTime double value.
-
getExitTime
public double getExitTime()Return the exitTime double value.- Specified by:
getExitTimein interfaceX3DEnvironmentalSensorNode- Returns:
- The exitTime double value.
-