Class SAICollisionSensor
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.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
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAICollisionSensor
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the collidables X3DNode value.void
getContacts
(X3DNode[] val) Return the contacts value in the argument X3DNode[]boolean
Return the enabled boolean value.void
getIntersections
(X3DNode[] val) Return the intersections value in the argument X3DNode[]boolean
Return the isActive boolean value.int
Return the number of MFNode items in the contacts field.int
Return the number of MFNode items in the intersections field.void
setCollidables
(X3DNode val) Set the collidables 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
-
SAICollisionSensor
public SAICollisionSensor(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActive
in interfaceX3DSensorNode
- Returns:
- The isActive boolean value.
-
getCollidables
Return the collidables X3DNode value.- Specified by:
getCollidables
in interfaceCollisionSensor
- Returns:
- The collidables X3DNode value.
-
setCollidables
Set the collidables field.- Specified by:
setCollidables
in interfaceCollisionSensor
- Parameters:
val
- The X3DNode to set.
-
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.
-
getNumContacts
public int getNumContacts()Return the number of MFNode items in the contacts field.- Specified by:
getNumContacts
in interfaceCollisionSensor
- Returns:
- the number of MFNode items in the contacts field.
-
getContacts
Return the contacts value in the argument X3DNode[]- Specified by:
getContacts
in interfaceCollisionSensor
- Parameters:
val
- The X3DNode[] to initialize.
-
getNumIntersections
public int getNumIntersections()Return the number of MFNode items in the intersections field.- Specified by:
getNumIntersections
in interfaceCollisionSensor
- Returns:
- the number of MFNode items in the intersections field.
-
getIntersections
Return the intersections value in the argument X3DNode[]- Specified by:
getIntersections
in interfaceCollisionSensor
- Parameters:
val
- The X3DNode[] to initialize.
-