Class SAICollisionSensor
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAICollisionSensor
- All Implemented Interfaces:
CollisionSensor,X3DChildNode,X3DNode,X3DSensorNode
A concrete implementation of the CollisionSensor node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAICollisionSensor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the collidables X3DNode value.voidgetContacts(X3DNode[] val) Return the contacts value in the argument X3DNode[]booleanReturn the enabled boolean value.voidgetIntersections(X3DNode[] val) Return the intersections value in the argument X3DNode[]booleanReturn the isActive boolean value.intReturn the number of MFNode items in the contacts field.intReturn the number of MFNode items in the intersections field.voidsetCollidables(X3DNode val) Set the collidables field.voidsetEnabled(boolean val) Set the enabled 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
-
SAICollisionSensor
public SAICollisionSensor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue-
-
-
Method Details
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActivein interfaceX3DSensorNode- Returns:
- The isActive boolean value.
-
getCollidables
Return the collidables X3DNode value.- Specified by:
getCollidablesin interfaceCollisionSensor- Returns:
- The collidables X3DNode value.
-
setCollidables
Set the collidables field.- Specified by:
setCollidablesin interfaceCollisionSensor- Parameters:
val- The X3DNode to set.
-
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.
-
getNumContacts
public int getNumContacts()Return the number of MFNode items in the contacts field.- Specified by:
getNumContactsin interfaceCollisionSensor- Returns:
- the number of MFNode items in the contacts field.
-
getContacts
Return the contacts value in the argument X3DNode[]- Specified by:
getContactsin interfaceCollisionSensor- Parameters:
val- The X3DNode[] to initialize.
-
getNumIntersections
public int getNumIntersections()Return the number of MFNode items in the intersections field.- Specified by:
getNumIntersectionsin interfaceCollisionSensor- Returns:
- the number of MFNode items in the intersections field.
-
getIntersections
Return the intersections value in the argument X3DNode[]- Specified by:
getIntersectionsin interfaceCollisionSensor- Parameters:
val- The X3DNode[] to initialize.
-