Class SAICollisionSpace
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAICollisionSpace
- All Implemented Interfaces:
CollisionSpace
,X3DBoundedObject
,X3DNBodyCollisionSpaceNode
,X3DNode
A concrete implementation of the CollisionSpace 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
ConstructorsConstructorDescriptionSAICollisionSpace
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getBboxCenter
(float[] val) Return the bboxCenter value in the argument float[]void
getBboxSize
(float[] val) Return the bboxSize value in the argument float[]void
getCollidables
(X3DNode[] val) Return the collidables value in the argument X3DNode[]boolean
Return the enabled boolean value.int
Return the number of MFNode items in the collidables field.boolean
Return the useGeometry boolean value.void
setBboxCenter
(float[] val) Set the bboxCenter field.void
setBboxSize
(float[] val) Set the bboxSize field.void
setCollidables
(X3DNode[] val) Set the collidables field.void
setEnabled
(boolean val) Set the enabled field.void
setUseGeometry
(boolean val) Set the useGeometry 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
-
SAICollisionSpace
public SAICollisionSpace(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getBboxSize
public void getBboxSize(float[] val) Return the bboxSize value in the argument float[]- Specified by:
getBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxSize
public void setBboxSize(float[] val) Set the bboxSize field.- Specified by:
setBboxSize
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getBboxCenter
public void getBboxCenter(float[] val) Return the bboxCenter value in the argument float[]- Specified by:
getBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to initialize.
-
setBboxCenter
public void setBboxCenter(float[] val) Set the bboxCenter field.- Specified by:
setBboxCenter
in interfaceX3DBoundedObject
- Parameters:
val
- The float[] to set.
-
getNumCollidables
public int getNumCollidables()Return the number of MFNode items in the collidables field.- Specified by:
getNumCollidables
in interfaceCollisionSpace
- Returns:
- the number of MFNode items in the collidables field.
-
getCollidables
Return the collidables value in the argument X3DNode[]- Specified by:
getCollidables
in interfaceCollisionSpace
- Parameters:
val
- The X3DNode[] to initialize.
-
setCollidables
Set the collidables field.- Specified by:
setCollidables
in interfaceCollisionSpace
- Parameters:
val
- The X3DNode[] to set.
-
getUseGeometry
public boolean getUseGeometry()Return the useGeometry boolean value.- Specified by:
getUseGeometry
in interfaceCollisionSpace
- Returns:
- The useGeometry boolean value.
-
setUseGeometry
public void setUseGeometry(boolean val) Set the useGeometry field.- Specified by:
setUseGeometry
in interfaceCollisionSpace
- Parameters:
val
- The boolean to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceX3DNBodyCollisionSpaceNode
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceX3DNBodyCollisionSpaceNode
- Parameters:
val
- The boolean to set.
-