public class CollisionCollectionObject extends X3DConcreteNode implements CollisionCollection
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLIEDPARAMETERS_BOUNCE
Tooltip: The bounce field value is used.
|
static java.lang.String |
APPLIEDPARAMETERS_CONSTANT_FORCE
Tooltip: Apply softnessConstantForceMix value.
|
static java.util.ArrayList<java.lang.String> |
APPLIEDPARAMETERS_DEFAULT_VALUE
MFString field named appliedParameters has default quoted value new String[] {"BOUNCE"} (Java syntax) or quoted value "BOUNCE" (XML syntax).
|
static java.lang.String |
APPLIEDPARAMETERS_ERROR_REDUCTION
Tooltip: Apply softnessErrorCorrection value.
|
static java.lang.String |
APPLIEDPARAMETERS_FRICTION_COEFFICIENT_2
Tooltip: Apply frictionCoefficients values.
|
static java.lang.String |
APPLIEDPARAMETERS_SLIP_1
Tooltip: Apply first component of slipFactors array.
|
static java.lang.String |
APPLIEDPARAMETERS_SLIP_2
Tooltip: Apply second component of slipFactors array.
|
static java.lang.String |
APPLIEDPARAMETERS_SPEED_1
Tooltip: Apply first component of surfaceSpeed array.
|
static java.lang.String |
APPLIEDPARAMETERS_SPEED_2
Tooltip: Apply second component of surfaceSpeed array.
|
static java.lang.String |
APPLIEDPARAMETERS_USER_FRICTION
Tooltip: The system will normally calculate the friction direction vector that is perpendicular to the contact normal.
|
static float |
BOUNCE_DEFAULT_VALUE
SFFloat field named bounce has default value 0f (Java syntax) or 0 (XML syntax).
|
static java.lang.String |
COMPONENT
String constant COMPONENT defines X3D component for the CollisionCollection element: RigidBodyPhysics
|
static java.lang.String |
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent.
|
static boolean |
ENABLED_DEFAULT_VALUE
SFBool field named enabled has default value true (Java syntax) or true (XML syntax).
|
static float[] |
FRICTIONCOEFFICIENTS_DEFAULT_VALUE
SFVec2f field named frictionCoefficients has default value {0f,0f} (Java syntax) or 0 0 (XML syntax).
|
static java.lang.String |
fromField_APPLIEDPARAMETERS
fromField ROUTE name for MFString field named appliedParameters.
|
static java.lang.String |
fromField_BOUNCE
fromField ROUTE name for SFFloat field named bounce.
|
static java.lang.String |
fromField_COLLIDABLES
fromField ROUTE name for MFNode field named collidables.
|
static java.lang.String |
fromField_ENABLED
fromField ROUTE name for SFBool field named enabled.
|
static java.lang.String |
fromField_FRICTIONCOEFFICIENTS
fromField ROUTE name for SFVec2f field named frictionCoefficients.
|
static java.lang.String |
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
fromField_MINBOUNCESPEED
fromField ROUTE name for SFFloat field named minBounceSpeed.
|
static java.lang.String |
fromField_SLIPFACTORS
fromField ROUTE name for SFVec2f field named slipFactors.
|
static java.lang.String |
fromField_SOFTNESSCONSTANTFORCEMIX
fromField ROUTE name for SFFloat field named softnessConstantForceMix.
|
static java.lang.String |
fromField_SOFTNESSERRORCORRECTION
fromField ROUTE name for SFFloat field named softnessErrorCorrection.
|
static java.lang.String |
fromField_SURFACESPEED
fromField ROUTE name for SFVec2f field named surfaceSpeed.
|
static int |
LEVEL
Integer constant LEVEL provides default X3D RigidBodyPhysics component level for this element: 1
|
static float |
MINBOUNCESPEED_DEFAULT_VALUE
SFFloat field named minBounceSpeed has default value 0.1f (Java syntax) or 0.1 (XML syntax).
|
static java.lang.String |
NAME
String constant NAME provides name of this element: CollisionCollection.
|
static float[] |
SLIPFACTORS_DEFAULT_VALUE
SFVec2f field named slipFactors has default value {0f,0f} (Java syntax) or 0 0 (XML syntax).
|
static float |
SOFTNESSCONSTANTFORCEMIX_DEFAULT_VALUE
SFFloat field named softnessConstantForceMix has default value 0.0001f (Java syntax) or 0.0001 (XML syntax).
|
static float |
SOFTNESSERRORCORRECTION_DEFAULT_VALUE
SFFloat field named softnessErrorCorrection has default value 0.8f (Java syntax) or 0.8 (XML syntax).
|
static float[] |
SURFACESPEED_DEFAULT_VALUE
SFVec2f field named surfaceSpeed has default value {0f,0f} (Java syntax) or 0 0 (XML syntax).
|
static java.lang.String |
toField_APPLIEDPARAMETERS
toField ROUTE name for MFString field named appliedParameters.
|
static java.lang.String |
toField_BOUNCE
toField ROUTE name for SFFloat field named bounce.
|
static java.lang.String |
toField_COLLIDABLES
toField ROUTE name for MFNode field named collidables.
|
static java.lang.String |
toField_ENABLED
toField ROUTE name for SFBool field named enabled.
|
static java.lang.String |
toField_FRICTIONCOEFFICIENTS
toField ROUTE name for SFVec2f field named frictionCoefficients.
|
static java.lang.String |
toField_METADATA
toField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
toField_MINBOUNCESPEED
toField ROUTE name for SFFloat field named minBounceSpeed.
|
static java.lang.String |
toField_SLIPFACTORS
toField ROUTE name for SFVec2f field named slipFactors.
|
static java.lang.String |
toField_SOFTNESSCONSTANTFORCEMIX
toField ROUTE name for SFFloat field named softnessConstantForceMix.
|
static java.lang.String |
toField_SOFTNESSERRORCORRECTION
toField ROUTE name for SFFloat field named softnessErrorCorrection.
|
static java.lang.String |
toField_SURFACESPEED
toField ROUTE name for SFVec2f field named surfaceSpeed.
|
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE
validationResult
Constructor and Description |
---|
CollisionCollectionObject()
Constructor for CollisionCollectionObject to initialize member variables with default values.
|
CollisionCollectionObject(java.lang.String DEFlabel)
Utility constructor that assigns DEF label after initializing member variables with default values.
|
Modifier and Type | Method and Description |
---|---|
CollisionCollectionObject |
addAppliedParameters(SFStringObject newValue)
Add singleton SFStringObject value to MFString appliedParameters field.
|
CollisionCollectionObject |
addAppliedParameters(java.lang.String newValue)
Add singleton String value to MFString appliedParameters field.
|
CollisionCollectionObject |
addCollidables(ProtoInstanceObject newValue)
Add single ProtoInstanceObject (with appropriate node type and containerField value) to MFNode array for collidables field.
|
CollisionCollectionObject |
addCollidables(X3DNode newValue)
Add single child node to existing array of collidables nodes (if any).
|
void |
addCollidables(X3DNode[] newValue)
Add array of child collidables nodes to array of existing nodes (if any).
|
CollisionCollectionObject |
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
CollisionCollectionObject |
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
CollisionCollectionObject |
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
CollisionCollectionObject |
clearAppliedParameters()
Utility method to clear MFString value of appliedParameters field.
|
CollisionCollectionObject |
clearCollidables()
Utility method to clear MFNode value of collidables field.
|
CollisionCollectionObject |
clearMetadata()
Utility method to clear SFNode value of metadata field.
|
X3DConcreteElement |
findElementByNameValue(java.lang.String nameValue)
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.
|
X3DConcreteElement |
findElementByNameValue(java.lang.String nameValue,
java.lang.String elementName)
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.
|
X3DConcreteNode |
findNodeByDEF(java.lang.String DEFvalue)
Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
|
java.lang.String |
getAccessType(java.lang.String fieldName)
Indicate accessType corresponding to given fieldName.
|
java.lang.String[] |
getAppliedParameters()
Provide array of String enumeration results (appliedParameters baseType appliedParametersChoices) ['"BOUNCE"'|'"USER_FRICTION"'|'"FRICTION_COEFFICIENT-2"'|'"ERROR_REDUCTION"'|'"CONSTANT_FORCE"'|'"SPEED-1"'|'"SPEED-2"'|'"SLIP-1"'|'"SLIP-2"'] from inputOutput MFString field named appliedParameters.
|
java.util.ArrayList<java.lang.String> |
getAppliedParametersList()
Utility method to get ArrayList value of MFString appliedParameters field, similar to
getAppliedParameters() . |
float |
getBounce()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named bounce.
|
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.
|
java.util.ArrayList<X3DNode> |
getCollidablesList()
Utility method to get ArrayList value of MFNode collidables field, similar to
getCollidables() . |
java.lang.String |
getComponent()
Defines X3D component for the CollisionCollection element: RigidBodyPhysics
|
int |
getComponentLevel()
Provides default X3D component level for this element: 1
|
java.lang.String |
getContainerFieldDefault()
containerField describes typical field relationship of a node to its parent.
|
java.lang.String |
getElementName()
Provides name of this element: CollisionCollection
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
java.lang.String |
getFieldType(java.lang.String fieldName)
Indicate type corresponding to given fieldName.
|
float[] |
getFrictionCoefficients()
Provide array of 2-tuple float results within allowed range of [0,infinity) from inputOutput SFVec2f field named frictionCoefficients.
|
ISObject |
getIS()
Provide field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
float |
getMinBounceSpeed()
Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named minBounceSpeed.
|
float[] |
getSlipFactors()
Provide array of 2-tuple float results from inputOutput SFVec2f field named slipFactors.
|
float |
getSoftnessConstantForceMix()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named softnessConstantForceMix.
|
float |
getSoftnessErrorCorrection()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named softnessErrorCorrection.
|
float[] |
getSurfaceSpeed()
Provide array of 2-tuple float results from inputOutput SFVec2f field named surfaceSpeed.
|
boolean |
hasCollidables()
Indicate whether an object is available for inputOutput MFNode field collidables.
|
boolean |
hasElementByNameValue(java.lang.String nameValue,
java.lang.String elementName)
Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.
|
boolean |
hasMetadata()
Indicate whether an object is available for inputOutput SFNode field metadata.
|
boolean |
hasNodeByDEF(java.lang.String DEFvalue)
Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.
|
void |
initialize()
Initialize all member variables to default values.
|
CollisionCollectionObject |
setAppliedParameters(java.util.ArrayList<java.lang.String> newValue)
Assign ArrayList value of MFString appliedParameters field, similar to
setAppliedParameters(String[]) . |
CollisionCollectionObject |
setAppliedParameters(MFStringObject newValue)
Assign typed object value to MFString appliedParameters field, similar to
setAppliedParameters(String[]) . |
CollisionCollectionObject |
setAppliedParameters(SFStringObject newValue)
Assign single SFString object value to MFString appliedParameters field, similar to
setAppliedParameters(String[]) . |
CollisionCollectionObject |
setAppliedParameters(java.lang.String newValue)
Assign singleton String value to MFString appliedParameters field, similar to
setAppliedParameters(String[]) . |
CollisionCollectionObject |
setAppliedParameters(java.lang.String[] newValue)
Accessor method to assign String enumeration array (""BOUNCE""|""USER_FRICTION""|""FRICTION_COEFFICIENT-2""|""ERROR_REDUCTION""|""CONSTANT_FORCE""|""SPEED-1""|""SPEED-2""|""SLIP-1""|""SLIP-2"") to inputOutput MFString field named appliedParameters.
|
CollisionCollectionObject |
setBounce(float newValue)
Accessor method to assign float value to inputOutput SFFloat field named bounce.
|
CollisionCollectionObject |
setBounce(SFFloatObject newValue)
Assign typed object value to SFFloat bounce field, similar to
setBounce(float) . |
CollisionCollectionObject |
setCollidables(java.util.ArrayList<X3DNode> newValue)
Assign ArrayList value of MFNode collidables field, similar to
setCollidables(X3DNode[]) . |
CollisionCollectionObject |
setCollidables(X3DConcreteNode newValue)
Utility method to set single SFNode as CollisionCollectionObject collidables.
|
void |
setCollidables(X3DNode newValue)
Set single child collidables node, replacing prior array of existing nodes (if any).
|
CollisionCollectionObject |
setCollidables(X3DNode[] newValue)
Accessor method to assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) 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 (!
|
CollisionCollectionObject |
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String) . |
CollisionCollectionObject |
setCssClass(java.lang.String newValue)
Accessor method to assign String value to inputOutput SFString field named class.
|
CollisionCollectionObject |
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String) . |
CollisionCollectionObject |
setDEF(java.lang.String newValue)
Accessor method to assign String value to inputOutput SFString field named DEF.
|
CollisionCollectionObject |
setEnabled(boolean newValue)
Accessor method to assign boolean value to inputOutput SFBool field named enabled.
|
CollisionCollectionObject |
setEnabled(SFBoolObject newValue)
Assign typed object value to SFBool enabled field, similar to
setEnabled(boolean) . |
CollisionCollectionObject |
setFrictionCoefficients(float[] newValue)
Accessor method to assign 2-tuple float array to inputOutput SFVec2f field named frictionCoefficients.
|
CollisionCollectionObject |
setFrictionCoefficients(float x,
float y)
Assign values to SFVec2f frictionCoefficients field, similar to
setFrictionCoefficients(float[]) . |
CollisionCollectionObject |
setFrictionCoefficients(SFVec2fObject newValue)
Assign typed object value to SFVec2f frictionCoefficients field, similar to
setFrictionCoefficients(float[]) . |
CollisionCollectionObject |
setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
CollisionCollectionObject |
setMetadata(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.
|
CollisionCollectionObject |
setMetadata(X3DMetadataObject newValue)
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
CollisionCollectionObject |
setMinBounceSpeed(float newValue)
Accessor method to assign float value to inputOutput SFFloat field named minBounceSpeed.
|
CollisionCollectionObject |
setMinBounceSpeed(SFFloatObject newValue)
Assign typed object value to SFFloat minBounceSpeed field, similar to
setMinBounceSpeed(float) . |
CollisionCollectionObject |
setSlipFactors(float[] newValue)
Accessor method to assign 2-tuple float array to inputOutput SFVec2f field named slipFactors.
|
CollisionCollectionObject |
setSlipFactors(float x,
float y)
Assign values to SFVec2f slipFactors field, similar to
setSlipFactors(float[]) . |
CollisionCollectionObject |
setSlipFactors(SFVec2fObject newValue)
Assign typed object value to SFVec2f slipFactors field, similar to
setSlipFactors(float[]) . |
CollisionCollectionObject |
setSoftnessConstantForceMix(float newValue)
Accessor method to assign float value to inputOutput SFFloat field named softnessConstantForceMix.
|
CollisionCollectionObject |
setSoftnessConstantForceMix(SFFloatObject newValue)
Assign typed object value to SFFloat softnessConstantForceMix field, similar to
setSoftnessConstantForceMix(float) . |
CollisionCollectionObject |
setSoftnessErrorCorrection(float newValue)
Accessor method to assign float value to inputOutput SFFloat field named softnessErrorCorrection.
|
CollisionCollectionObject |
setSoftnessErrorCorrection(SFFloatObject newValue)
Assign typed object value to SFFloat softnessErrorCorrection field, similar to
setSoftnessErrorCorrection(float) . |
CollisionCollectionObject |
setSurfaceSpeed(float[] newValue)
Accessor method to assign 2-tuple float array to inputOutput SFVec2f field named surfaceSpeed.
|
CollisionCollectionObject |
setSurfaceSpeed(float x,
float y)
Assign values to SFVec2f surfaceSpeed field, similar to
setSurfaceSpeed(float[]) . |
CollisionCollectionObject |
setSurfaceSpeed(SFVec2fObject newValue)
Assign typed object value to SFVec2f surfaceSpeed field, similar to
setSurfaceSpeed(float[]) . |
CollisionCollectionObject |
setUSE(CollisionCollectionObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String) . |
CollisionCollectionObject |
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String) . |
CollisionCollectionObject |
setUSE(java.lang.String newValue)
Accessor method to assign String value to inputOutput SFString field named USE.
|
java.lang.String |
toStringClassicVRML(int indentLevel)
Recursive method to provide ClassicVRML string serialization.
|
java.lang.String |
toStringVRML97(int indentLevel)
Recursive method to provide VRML97 string serialization.
|
java.lang.String |
toStringX3D(int indentLevel)
Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.
|
java.lang.String |
validate()
Recursive method to validate this element plus all contained nodes and statements,
using both datatype-specification value checks and regular expression (regex) checking of corresponding string values.
|
getContainerFieldAlternateValues, getContainerFieldOverride, getCssClass, getDEF, getUSE, isNode, isStatement, isUSE, resetContainerFieldOverride, setConcreteCssClass, setConcreteDEF, setConcreteUSE, setContainerFieldOverride
clearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3D
public static final java.lang.String APPLIEDPARAMETERS_BOUNCE
public static final java.lang.String APPLIEDPARAMETERS_USER_FRICTION
public static final java.lang.String APPLIEDPARAMETERS_FRICTION_COEFFICIENT_2
public static final java.lang.String APPLIEDPARAMETERS_ERROR_REDUCTION
public static final java.lang.String APPLIEDPARAMETERS_CONSTANT_FORCE
public static final java.lang.String APPLIEDPARAMETERS_SPEED_1
public static final java.lang.String APPLIEDPARAMETERS_SPEED_2
public static final java.lang.String APPLIEDPARAMETERS_SLIP_1
public static final java.lang.String APPLIEDPARAMETERS_SLIP_2
public static final java.lang.String NAME
public static final java.lang.String COMPONENT
public static final int LEVEL
public static final java.util.ArrayList<java.lang.String> APPLIEDPARAMETERS_DEFAULT_VALUE
public static final float BOUNCE_DEFAULT_VALUE
public static final boolean ENABLED_DEFAULT_VALUE
public static final float[] FRICTIONCOEFFICIENTS_DEFAULT_VALUE
public static final float MINBOUNCESPEED_DEFAULT_VALUE
public static final float[] SLIPFACTORS_DEFAULT_VALUE
public static final float SOFTNESSCONSTANTFORCEMIX_DEFAULT_VALUE
public static final float SOFTNESSERRORCORRECTION_DEFAULT_VALUE
public static final float[] SURFACESPEED_DEFAULT_VALUE
public static final java.lang.String containerField_DEFAULT_VALUE
public static final java.lang.String fromField_APPLIEDPARAMETERS
public static final java.lang.String toField_APPLIEDPARAMETERS
public static final java.lang.String fromField_BOUNCE
public static final java.lang.String toField_BOUNCE
public static final java.lang.String fromField_COLLIDABLES
public static final java.lang.String toField_COLLIDABLES
public static final java.lang.String fromField_ENABLED
public static final java.lang.String toField_ENABLED
public static final java.lang.String fromField_FRICTIONCOEFFICIENTS
public static final java.lang.String toField_FRICTIONCOEFFICIENTS
public static final java.lang.String fromField_METADATA
public static final java.lang.String toField_METADATA
public static final java.lang.String fromField_MINBOUNCESPEED
public static final java.lang.String toField_MINBOUNCESPEED
public static final java.lang.String fromField_SLIPFACTORS
public static final java.lang.String toField_SLIPFACTORS
public static final java.lang.String fromField_SOFTNESSCONSTANTFORCEMIX
public static final java.lang.String toField_SOFTNESSCONSTANTFORCEMIX
public static final java.lang.String fromField_SOFTNESSERRORCORRECTION
public static final java.lang.String toField_SOFTNESSERRORCORRECTION
public static final java.lang.String fromField_SURFACESPEED
public static final java.lang.String toField_SURFACESPEED
public CollisionCollectionObject()
public CollisionCollectionObject(java.lang.String DEFlabel)
DEFlabel
- unique DEF name for this X3D nodepublic final java.lang.String getElementName()
getElementName
in class X3DConcreteElement
public final java.lang.String getComponent()
getComponent
in class X3DConcreteElement
public final int getComponentLevel()
getComponentLevel
in class X3DConcreteElement
public java.lang.String getFieldType(java.lang.String fieldName)
getFieldType
in class X3DConcreteElement
fieldName
- name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE
public java.lang.String getAccessType(java.lang.String fieldName)
getAccessType
in class X3DConcreteElement
fieldName
- name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE
public final java.lang.String getContainerFieldDefault()
getContainerFieldDefault
in class X3DConcreteNode
public final void initialize()
initialize
in class X3DConcreteNode
public java.lang.String[] getAppliedParameters()
BOUNCE
, USER_FRICTION
, FRICTION_COEFFICIENT_2
, ERROR_REDUCTION
, CONSTANT_FORCE
, SPEED_1
, SPEED_2
, SLIP_1
, SLIP_2
.getAppliedParameters
in interface CollisionCollection
public java.util.ArrayList<java.lang.String> getAppliedParametersList()
getAppliedParameters()
.public CollisionCollectionObject setAppliedParameters(java.lang.String[] newValue)
BOUNCE
, USER_FRICTION
, FRICTION_COEFFICIENT_2
, ERROR_REDUCTION
, CONSTANT_FORCE
, SPEED_1
, SPEED_2
, SLIP_1
, SLIP_2
).
setAppliedParameters
in interface CollisionCollection
newValue
- is new value for the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setAppliedParameters(MFStringObject newValue)
setAppliedParameters(String[])
.newValue
- is new value for the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setAppliedParameters(SFStringObject newValue)
setAppliedParameters(String[])
.newValue
- is new value for the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)
public CollisionCollectionObject setAppliedParameters(java.lang.String newValue)
setAppliedParameters(String[])
.newValue
- is new value for the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)
public CollisionCollectionObject setAppliedParameters(java.util.ArrayList<java.lang.String> newValue)
setAppliedParameters(String[])
.newValue
- is new value for the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject clearAppliedParameters()
CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public CollisionCollectionObject addAppliedParameters(java.lang.String newValue)
newValue
- is new value to add to the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)
public CollisionCollectionObject addAppliedParameters(SFStringObject newValue)
newValue
- is new value to add to the appliedParameters field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)
public float getBounce()
getBounce
in interface CollisionCollection
public CollisionCollectionObject setBounce(float newValue)
setBounce
in interface CollisionCollection
newValue
- is new value for the bounce field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setBounce(SFFloatObject newValue)
setBounce(float)
.newValue
- is new value for the bounce field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public X3DNode[] getCollidables()
getCollidables
in interface CollisionCollection
X3DNBodyCollisionSpaceNode
,
X3DNBodyCollidableNode
public java.util.ArrayList<X3DNode> getCollidablesList()
getCollidables()
.public CollisionCollectionObject setCollidables(X3DNode[] newValue)
setCollidables
in interface CollisionCollection
newValue
- is new value for the collidables field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setCollidables(java.util.ArrayList<X3DNode> newValue)
setCollidables(X3DNode[])
.newValue
- is new value for the collidables field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject addCollidables(X3DNode newValue)
newValue
- is new value to be appended the collidables field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject addCollidables(ProtoInstanceObject newValue)
newValue
- is new value to be appended the parts field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public void addCollidables(X3DNode[] newValue)
addCollidables
in interface CollisionCollection
newValue
- is new value array to be appended the collidables field.public void setCollidables(X3DNode newValue)
setCollidables
in interface CollisionCollection
newValue
- is new node for the collidables field (restricted to X3DNBodyCollisionSpaceNode|X3DNBodyCollidableNode)public CollisionCollectionObject setCollidables(X3DConcreteNode newValue)
newValue
- CollisionCollectionObject node to setCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public CollisionCollectionObject clearCollidables()
CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public boolean hasCollidables()
getCollidables()
public boolean getEnabled()
getEnabled
in interface CollisionCollection
public CollisionCollectionObject setEnabled(boolean newValue)
setEnabled
in interface CollisionCollection
newValue
- is new value for the enabled field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setEnabled(SFBoolObject newValue)
setEnabled(boolean)
.newValue
- is new value for the enabled field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getFrictionCoefficients()
getFrictionCoefficients
in interface CollisionCollection
public CollisionCollectionObject setFrictionCoefficients(float[] newValue)
setFrictionCoefficients
in interface CollisionCollection
newValue
- is new value for the frictionCoefficients field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setFrictionCoefficients(SFVec2fObject newValue)
setFrictionCoefficients(float[])
.newValue
- is new value for the frictionCoefficients field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setFrictionCoefficients(float x, float y)
setFrictionCoefficients(float[])
.x
- first componenty
- second componentCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public X3DMetadataObject getMetadata()
getMetadata
in interface X3DNode
getMetadata
in interface CollisionCollection
getMetadataProtoInstance()
,
X3D Scene Authoring Hints: Metadata Nodespublic CollisionCollectionObject setMetadata(X3DMetadataObject newValue)
setMetadata
in interface X3DNode
setMetadata
in interface CollisionCollection
setMetadata
in class X3DConcreteNode
newValue
- is new value for the metadata field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).setMetadata(ProtoInstanceObject)
,
X3D Scene Authoring Hints: Metadata Nodespublic CollisionCollectionObject clearMetadata()
CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public CollisionCollectionObject setMetadata(ProtoInstanceObject newValue)
setMetadata
in class X3DConcreteNode
newValue
- is new value for the metadata field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).setMetadata(X3DMetadataObject)
public boolean hasMetadata()
getMetadata()
,
getMetadataProtoInstance()
,
X3D Scene Authoring Hints: Metadata Nodespublic float getMinBounceSpeed()
getMinBounceSpeed
in interface CollisionCollection
public CollisionCollectionObject setMinBounceSpeed(float newValue)
setMinBounceSpeed
in interface CollisionCollection
newValue
- is new value for the minBounceSpeed field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setMinBounceSpeed(SFFloatObject newValue)
setMinBounceSpeed(float)
.newValue
- is new value for the minBounceSpeed field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getSlipFactors()
getSlipFactors
in interface CollisionCollection
public CollisionCollectionObject setSlipFactors(float[] newValue)
setSlipFactors
in interface CollisionCollection
newValue
- is new value for the slipFactors field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setSlipFactors(SFVec2fObject newValue)
setSlipFactors(float[])
.newValue
- is new value for the slipFactors field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setSlipFactors(float x, float y)
setSlipFactors(float[])
.x
- first componenty
- second componentCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getSoftnessConstantForceMix()
getSoftnessConstantForceMix
in interface CollisionCollection
public CollisionCollectionObject setSoftnessConstantForceMix(float newValue)
setSoftnessConstantForceMix
in interface CollisionCollection
newValue
- is new value for the softnessConstantForceMix field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setSoftnessConstantForceMix(SFFloatObject newValue)
setSoftnessConstantForceMix(float)
.newValue
- is new value for the softnessConstantForceMix field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getSoftnessErrorCorrection()
getSoftnessErrorCorrection
in interface CollisionCollection
public CollisionCollectionObject setSoftnessErrorCorrection(float newValue)
setSoftnessErrorCorrection
in interface CollisionCollection
newValue
- is new value for the softnessErrorCorrection field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setSoftnessErrorCorrection(SFFloatObject newValue)
setSoftnessErrorCorrection(float)
.newValue
- is new value for the softnessErrorCorrection field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getSurfaceSpeed()
getSurfaceSpeed
in interface CollisionCollection
public CollisionCollectionObject setSurfaceSpeed(float[] newValue)
setSurfaceSpeed
in interface CollisionCollection
newValue
- is new value for the surfaceSpeed field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setSurfaceSpeed(SFVec2fObject newValue)
setSurfaceSpeed(float[])
.newValue
- is new value for the surfaceSpeed field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setSurfaceSpeed(float x, float y)
setSurfaceSpeed(float[])
.x
- first componenty
- second componentCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final CollisionCollectionObject setDEF(java.lang.String newValue)
setDEF
in interface X3DNode
setDEF
in interface CollisionCollection
setDEF
in class X3DConcreteNode
newValue
- is new value for the DEF field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setDEF(SFStringObject newValue)
setDEF(String)
.newValue
- is new value for the DEF field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final CollisionCollectionObject 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 X3DNode
setUSE
in interface CollisionCollection
setUSE
in class X3DConcreteNode
newValue
- is new value for the USE field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setUSE(SFStringObject newValue)
setUSE(String)
.newValue
- is new value for the USE field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final CollisionCollectionObject setCssClass(java.lang.String newValue)
setCssClass
in interface X3DNode
setCssClass
in interface CollisionCollection
setCssClass
in class X3DConcreteNode
newValue
- is new value for the class field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setCssClass(SFStringObject newValue)
setCssClass(String)
.newValue
- is new value for the class field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject setIS(ISObject newValue)
setIS
in class X3DConcreteNode
newValue
- is new value for the description field.CollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ISObject getIS()
getIS
in class X3DConcreteNode
public CollisionCollectionObject setUSE(CollisionCollectionObject DEFnode)
setUSE(String)
.
setUSE()
method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
DEFnode
- must have a DEF value definedCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public CollisionCollectionObject addComments(java.lang.String newComment)
addComments
in class X3DConcreteElement
newComment
- initial valueCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public CollisionCollectionObject addComments(java.lang.String[] newComments)
addComments
in class X3DConcreteElement
newComments
- array of commentsCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public CollisionCollectionObject addComments(CommentsBlock newCommentsBlock)
addComments
in class X3DConcreteElement
newCommentsBlock
- block of comments to addCollisionCollectionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public java.lang.String toStringX3D(int indentLevel)
toStringX3D
in class X3DConcreteElement
indentLevel
- number of levels of indentation for this elementX3DObject.FILE_EXTENSION_X3D
,
X3DObject.FILE_EXTENSION_XML
,
X3DObject.toStringXML()
,
X3DObject.toFileXML(String)
,
X3DObject.toFileX3D(String)
,
X3D XML Encoding,
X3D Compressed Binary Encoding: X3D Canonical Form,
X3D Canonicalization (C14N) Toolpublic java.lang.String toStringClassicVRML(int indentLevel)
toStringClassicVRML
in class X3DConcreteElement
indentLevel
- number of levels of indentation for this elementX3DObject.FILE_EXTENSION_CLASSICVRML
,
X3D Resources: Virtual Reality Modeling Language (VRML) 97,
Extensible 3D (X3D) encodings Part 2: Classic VRML encoding,
Extensible 3D (X3D) encodings Part 2: Classic VRML encoding, Annex A: Grammarpublic java.lang.String toStringVRML97(int indentLevel)
toStringVRML97
in class X3DConcreteElement
indentLevel
- number of levels of indentation for this elementX3DObject.FILE_EXTENSION_VRML97
,
X3D Resources: Virtual Reality Modeling Language (VRML) 97,
Virtual Reality Modeling Language (VRML) 97 specification,
VRML 97 v2.1 Amendmentpublic X3DConcreteElement findElementByNameValue(java.lang.String nameValue)
findElementByNameValue
in class X3DConcreteElement
nameValue
- is value of the name field being searched for in this element and child elements(if any)findNodeByDEF(String)
,
X3DConcreteElement.hasAncestorSceneObject()
,
X3DConcreteElement.findAncestorX3DObject()
public X3DConcreteElement findElementByNameValue(java.lang.String nameValue, java.lang.String elementName)
findElementByNameValue
in class X3DConcreteElement
nameValue
- is value of the name field being searched for in this element and child elements(if any)elementName
- identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)findNodeByDEF(String)
,
X3DConcreteElement.hasAncestorSceneObject()
,
X3DConcreteElement.findAncestorX3DObject()
public boolean hasElementByNameValue(java.lang.String nameValue, java.lang.String elementName)
nameValue
- is value of the name field being searched for in this element and child elements(if any)elementName
- identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)findElementByNameValue(String, String)
public X3DConcreteNode findNodeByDEF(java.lang.String DEFvalue)
findNodeByDEF
in class X3DConcreteElement
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)findElementByNameValue(String)
,
X3DConcreteElement.hasAncestorSceneObject()
,
X3DConcreteElement.findAncestorX3DObject()
public boolean hasNodeByDEF(java.lang.String DEFvalue)
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)findNodeByDEF(String)
public java.lang.String validate()
validate
in class X3DConcreteElement
Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.