Class SAICollision
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.navigation.SAICollision
- All Implemented Interfaces:
Collision
,X3DBoundedObject
,X3DChildNode
,X3DGroupingNode
,X3DNode
,X3DSensorNode
A concrete implementation of the Collision 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
ConstructorsConstructorDescriptionSAICollision
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildren
(X3DNode[] val) Set the addChildren field.void
getBboxCenter
(float[] val) Return the bboxCenter value in the argument float[]void
getBboxSize
(float[] val) Return the bboxSize value in the argument float[]void
getChildren
(X3DNode[] val) Return the children value in the argument X3DNode[]boolean
Return the collide boolean value.double
Return the collideTime double value.boolean
Return the enabled boolean value.boolean
Return the isActive boolean value.int
Return the number of MFNode items in the children field.getProxy()
Return the proxy X3DNode value.void
removeChildren
(X3DNode[] val) Set the removeChildren field.void
setBboxCenter
(float[] val) Set the bboxCenter field.void
setBboxSize
(float[] val) Set the bboxSize field.void
setChildren
(X3DNode[] val) Set the children field.void
setCollide
(boolean val) Set the collide field.void
setEnabled
(boolean val) Set the enabled field.void
Set the proxy 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
-
SAICollision
public SAICollision(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getNumChildren
public int getNumChildren()Return the number of MFNode items in the children field.- Specified by:
getNumChildren
in interfaceX3DGroupingNode
- Returns:
- the number of MFNode items in the children field.
-
getChildren
Return the children value in the argument X3DNode[]- Specified by:
getChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to initialize.
-
setChildren
Set the children field.- Specified by:
setChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
addChildren
Set the addChildren field.- Specified by:
addChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] to set.
-
removeChildren
Set the removeChildren field.- Specified by:
removeChildren
in interfaceX3DGroupingNode
- Parameters:
val
- The X3DNode[] 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.
-
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.
-
getCollide
public boolean getCollide()Return the collide boolean value.- Specified by:
getCollide
in interfaceCollision
- Returns:
- The collide boolean value.
-
setCollide
public void setCollide(boolean val) Set the collide field.- Specified by:
setCollide
in interfaceCollision
- Parameters:
val
- The boolean to set.
-
getProxy
-
setProxy
-
getCollideTime
public double getCollideTime()Return the collideTime double value.- Specified by:
getCollideTime
in interfaceCollision
- Returns:
- The collideTime double value.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActive
in interfaceX3DSensorNode
- Returns:
- The isActive boolean value.
-
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.
-