Class SAICollidableShape
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAICollidableShape
- All Implemented Interfaces:
CollidableShape
,X3DBoundedObject
,X3DChildNode
,X3DNBodyCollidableNode
,X3DNode
A concrete implementation of the CollidableShape 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
ConstructorsConstructorDescriptionSAICollidableShape
(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[]boolean
Return the enabled boolean value.void
getRotation
(float[] val) Return the rotation value in the argument float[]getShape()
Return the shape X3DNode value.void
getTranslation
(float[] val) Return the translation value in the argument float[]void
setBboxCenter
(float[] val) Set the bboxCenter field.void
setBboxSize
(float[] val) Set the bboxSize field.void
setEnabled
(boolean val) Set the enabled field.void
setRotation
(float[] val) Set the rotation field.void
Set the shape field.void
setTranslation
(float[] val) Set the translation 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
-
SAICollidableShape
public SAICollidableShape(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.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceX3DNBodyCollidableNode
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceX3DNBodyCollidableNode
- Parameters:
val
- The boolean to set.
-
getRotation
public void getRotation(float[] val) Return the rotation value in the argument float[]- Specified by:
getRotation
in interfaceX3DNBodyCollidableNode
- Parameters:
val
- The float[] to initialize.
-
setRotation
public void setRotation(float[] val) Set the rotation field.- Specified by:
setRotation
in interfaceX3DNBodyCollidableNode
- Parameters:
val
- The float[] to set.
-
getTranslation
public void getTranslation(float[] val) Return the translation value in the argument float[]- Specified by:
getTranslation
in interfaceX3DNBodyCollidableNode
- Parameters:
val
- The float[] to initialize.
-
setTranslation
public void setTranslation(float[] val) Set the translation field.- Specified by:
setTranslation
in interfaceX3DNBodyCollidableNode
- Parameters:
val
- The float[] to set.
-
getShape
Return the shape X3DNode value.- Specified by:
getShape
in interfaceCollidableShape
- Returns:
- The shape X3DNode value.
-
setShape
Set the shape field.- Specified by:
setShape
in interfaceCollidableShape
- Parameters:
val
- The X3DNode to set.
-