public interface CollisionSpace extends X3DNBodyCollisionSpaceNode
| Modifier and Type | Method and Description |
|---|---|
void |
addCollidables(X3DNode[] newValue)
Add array of child collidables nodes to array of existing nodes (if any).
|
float[] |
getBboxCenter()
Provide array of 3-tuple float results from initializeOnly SFVec3f field named bboxCenter.
|
float[] |
getBboxSize()
Provide array of 3-tuple float results within allowed range of [0,infinity), or default value [-1 -1 -1], from initializeOnly SFVec3f field named bboxSize.
|
X3DNode[] |
getCollidables()
Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) with acceptable node types limited to X3DNBodyCollisionSpaceNode|X3DNBodyCollidableNode, from inputOutput MFNode field collidables.
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
boolean |
getUseGeometry()
Provide boolean value from inputOutput SFBool field named useGeometry.
|
CollisionSpace |
setBboxCenter(float[] newValue)
Assign 3-tuple float array to initializeOnly SFVec3f field named bboxCenter.
|
CollisionSpace |
setBboxSize(float[] newValue)
Assign 3-tuple float array within allowed range of [0,infinity), or default value [-1 -1 -1], to initializeOnly SFVec3f field named bboxSize.
|
void |
setCollidables(X3DNode newValue)
Set single child collidables node, replacing prior array of existing nodes (if any).
|
CollisionSpace |
setCollidables(X3DNode[] newValue)
Assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) with acceptable node types limited to X3DNBodyCollisionSpaceNode|X3DNBodyCollidableNode, to inputOutput MFNode field collidables.
// newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1
boolean isNodeTypeAllowed =
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.RigidBodyPhysics.X3DNBodyCollisionSpaceNode) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.RigidBodyPhysics.X3DNBodyCollidableNode);
if (!
|
CollisionSpace |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
CollisionSpace |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
CollisionSpace |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
CollisionSpace |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
CollisionSpace |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
CollisionSpace |
setUseGeometry(boolean newValue)
Assign boolean value to inputOutput SFBool field named useGeometry.
|
float[] getBboxCenter()
getBboxCenter in interface X3DBoundedObjectgetBboxCenter in interface X3DNBodyCollisionSpaceNodeCollisionSpace setBboxCenter(float[] newValue)
setBboxCenter in interface X3DBoundedObjectsetBboxCenter in interface X3DNBodyCollisionSpaceNodenewValue - is new value for the bboxCenter field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getBboxSize()
getBboxSize in interface X3DBoundedObjectgetBboxSize in interface X3DNBodyCollisionSpaceNodeCollisionSpace setBboxSize(float[] newValue)
setBboxSize in interface X3DBoundedObjectsetBboxSize in interface X3DNBodyCollisionSpaceNodenewValue - is new value for the bboxSize field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DNode[] getCollidables()
X3DNBodyCollisionSpaceNode,
X3DNBodyCollidableNodeCollisionSpace setCollidables(X3DNode[] newValue)
newValue - is new value for the collidables field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).void addCollidables(X3DNode[] newValue)
newValue - is new value array to be appended the collidables field.void setCollidables(X3DNode newValue)
newValue - is new node for the collidables fieldboolean getEnabled()
getEnabled in interface X3DNBodyCollisionSpaceNodeCollisionSpace setEnabled(boolean newValue)
setEnabled in interface X3DNBodyCollisionSpaceNodenewValue - is new value for the enabled field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DMetadataObject getMetadata()
getMetadata in interface X3DNBodyCollisionSpaceNodegetMetadata in interface X3DNodeCollisionSpace setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DNBodyCollisionSpaceNodesetMetadata in interface X3DNodenewValue - is new value for the metadata field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getUseGeometry()
CollisionSpace setUseGeometry(boolean newValue)
newValue - is new value for the useGeometry field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionSpace setDEF(java.lang.String newValue)
setDEF in interface X3DNBodyCollisionSpaceNodesetDEF in interface X3DNodenewValue - is new value for the DEF field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionSpace setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.setUSE in interface X3DNBodyCollisionSpaceNodesetUSE in interface X3DNodenewValue - is new value for the USE field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionSpace setCssClass(java.lang.String newValue)
setCssClass in interface X3DNBodyCollisionSpaceNodesetCssClass in interface X3DNodenewValue - is new value for the class field.CollisionSpace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.