public class RigidBodyObject extends X3DConcreteNode implements RigidBody
| Modifier and Type | Field and Description |
|---|---|
static float |
ANGULARDAMPINGFACTOR_DEFAULT_VALUE
SFFloat field named angularDampingFactor has default value 0.001f (Java syntax) or 0.001 (XML syntax).
|
static float[] |
ANGULARVELOCITY_DEFAULT_VALUE
SFVec3f field named angularVelocity has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static boolean |
AUTODAMP_DEFAULT_VALUE
SFBool field named autoDamp has default value false (Java syntax) or false (XML syntax).
|
static boolean |
AUTODISABLE_DEFAULT_VALUE
SFBool field named autoDisable has default value false (Java syntax) or false (XML syntax).
|
static float[] |
CENTEROFMASS_DEFAULT_VALUE
SFVec3f field named centerOfMass has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static java.lang.String |
COMPONENT
String constant COMPONENT defines X3D component for the RigidBody element: RigidBodyPhysics
|
static java.lang.String |
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent.
|
static float |
DISABLEANGULARSPEED_DEFAULT_VALUE
SFFloat field named disableAngularSpeed has default value 0f (Java syntax) or 0 (XML syntax).
|
static float |
DISABLELINEARSPEED_DEFAULT_VALUE
SFFloat field named disableLinearSpeed has default value 0f (Java syntax) or 0 (XML syntax).
|
static double |
DISABLETIME_DEFAULT_VALUE
SFTime field named disableTime has default value 0 (Java syntax) or 0 (XML syntax).
|
static boolean |
ENABLED_DEFAULT_VALUE
SFBool field named enabled has default value true (Java syntax) or true (XML syntax).
|
static float[] |
FINITEROTATIONAXIS_DEFAULT_VALUE
SFVec3f field named finiteRotationAxis has default value {0f,1f,0f} (Java syntax) or 0 1 0 (XML syntax).
|
static boolean |
FIXED_DEFAULT_VALUE
SFBool field named fixed has default value false (Java syntax) or false (XML syntax).
|
static java.lang.String |
fromField_ANGULARDAMPINGFACTOR
fromField ROUTE name for SFFloat field named angularDampingFactor.
|
static java.lang.String |
fromField_ANGULARVELOCITY
fromField ROUTE name for SFVec3f field named angularVelocity.
|
static java.lang.String |
fromField_AUTODAMP
fromField ROUTE name for SFBool field named autoDamp.
|
static java.lang.String |
fromField_AUTODISABLE
fromField ROUTE name for SFBool field named autoDisable.
|
static java.lang.String |
fromField_CENTEROFMASS
fromField ROUTE name for SFVec3f field named centerOfMass.
|
static java.lang.String |
fromField_DISABLEANGULARSPEED
fromField ROUTE name for SFFloat field named disableAngularSpeed.
|
static java.lang.String |
fromField_DISABLELINEARSPEED
fromField ROUTE name for SFFloat field named disableLinearSpeed.
|
static java.lang.String |
fromField_DISABLETIME
fromField ROUTE name for SFTime field named disableTime.
|
static java.lang.String |
fromField_ENABLED
fromField ROUTE name for SFBool field named enabled.
|
static java.lang.String |
fromField_FINITEROTATIONAXIS
fromField ROUTE name for SFVec3f field named finiteRotationAxis.
|
static java.lang.String |
fromField_FIXED
fromField ROUTE name for SFBool field named fixed.
|
static java.lang.String |
fromField_FORCES
fromField ROUTE name for MFVec3f field named forces.
|
static java.lang.String |
fromField_GEOMETRY
fromField ROUTE name for MFNode field named geometry.
|
static java.lang.String |
fromField_INERTIA
fromField ROUTE name for SFMatrix3f field named inertia.
|
static java.lang.String |
fromField_LINEARDAMPINGFACTOR
fromField ROUTE name for SFFloat field named linearDampingFactor.
|
static java.lang.String |
fromField_LINEARVELOCITY
fromField ROUTE name for SFVec3f field named linearVelocity.
|
static java.lang.String |
fromField_MASS
fromField ROUTE name for SFFloat field named mass.
|
static java.lang.String |
fromField_MASSDENSITYMODEL
fromField ROUTE name for SFNode field named massDensityModel.
|
static java.lang.String |
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
fromField_ORIENTATION
fromField ROUTE name for SFRotation field named orientation.
|
static java.lang.String |
fromField_POSITION
fromField ROUTE name for SFVec3f field named position.
|
static java.lang.String |
fromField_TORQUES
fromField ROUTE name for MFVec3f field named torques.
|
static java.lang.String |
fromField_USEFINITEROTATION
fromField ROUTE name for SFBool field named useFiniteRotation.
|
static java.lang.String |
fromField_USEGLOBALGRAVITY
fromField ROUTE name for SFBool field named useGlobalGravity.
|
static float[] |
INERTIA_DEFAULT_VALUE
SFMatrix3f field named inertia has default value {1f,0f,0f,0f,1f,0f,0f,0f,1f} (Java syntax) or 1 0 0 0 1 0 0 0 1 (XML syntax).
|
static int |
LEVEL
Integer constant LEVEL provides default X3D RigidBodyPhysics component level for this element: 2
|
static float |
LINEARDAMPINGFACTOR_DEFAULT_VALUE
SFFloat field named linearDampingFactor has default value 0.001f (Java syntax) or 0.001 (XML syntax).
|
static float[] |
LINEARVELOCITY_DEFAULT_VALUE
SFVec3f field named linearVelocity has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static float |
MASS_DEFAULT_VALUE
SFFloat field named mass has default value 1f (Java syntax) or 1 (XML syntax).
|
static java.lang.String |
NAME
String constant NAME provides name of this element: RigidBody.
|
static float[] |
ORIENTATION_DEFAULT_VALUE
SFRotation field named orientation has default value {0f,0f,1f,0f} (Java syntax) or 0 0 1 0 (XML syntax).
|
static float[] |
POSITION_DEFAULT_VALUE
SFVec3f field named position has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static java.lang.String |
toField_ANGULARDAMPINGFACTOR
toField ROUTE name for SFFloat field named angularDampingFactor.
|
static java.lang.String |
toField_ANGULARVELOCITY
toField ROUTE name for SFVec3f field named angularVelocity.
|
static java.lang.String |
toField_AUTODAMP
toField ROUTE name for SFBool field named autoDamp.
|
static java.lang.String |
toField_AUTODISABLE
toField ROUTE name for SFBool field named autoDisable.
|
static java.lang.String |
toField_CENTEROFMASS
toField ROUTE name for SFVec3f field named centerOfMass.
|
static java.lang.String |
toField_DISABLEANGULARSPEED
toField ROUTE name for SFFloat field named disableAngularSpeed.
|
static java.lang.String |
toField_DISABLELINEARSPEED
toField ROUTE name for SFFloat field named disableLinearSpeed.
|
static java.lang.String |
toField_DISABLETIME
toField ROUTE name for SFTime field named disableTime.
|
static java.lang.String |
toField_ENABLED
toField ROUTE name for SFBool field named enabled.
|
static java.lang.String |
toField_FINITEROTATIONAXIS
toField ROUTE name for SFVec3f field named finiteRotationAxis.
|
static java.lang.String |
toField_FIXED
toField ROUTE name for SFBool field named fixed.
|
static java.lang.String |
toField_FORCES
toField ROUTE name for MFVec3f field named forces.
|
static java.lang.String |
toField_GEOMETRY
toField ROUTE name for MFNode field named geometry.
|
static java.lang.String |
toField_INERTIA
toField ROUTE name for SFMatrix3f field named inertia.
|
static java.lang.String |
toField_LINEARDAMPINGFACTOR
toField ROUTE name for SFFloat field named linearDampingFactor.
|
static java.lang.String |
toField_LINEARVELOCITY
toField ROUTE name for SFVec3f field named linearVelocity.
|
static java.lang.String |
toField_MASS
toField ROUTE name for SFFloat field named mass.
|
static java.lang.String |
toField_MASSDENSITYMODEL
toField ROUTE name for SFNode field named massDensityModel.
|
static java.lang.String |
toField_METADATA
toField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
toField_ORIENTATION
toField ROUTE name for SFRotation field named orientation.
|
static java.lang.String |
toField_POSITION
toField ROUTE name for SFVec3f field named position.
|
static java.lang.String |
toField_TORQUES
toField ROUTE name for MFVec3f field named torques.
|
static java.lang.String |
toField_USEFINITEROTATION
toField ROUTE name for SFBool field named useFiniteRotation.
|
static java.lang.String |
toField_USEGLOBALGRAVITY
toField ROUTE name for SFBool field named useGlobalGravity.
|
static boolean |
USEFINITEROTATION_DEFAULT_VALUE
SFBool field named useFiniteRotation has default value false (Java syntax) or false (XML syntax).
|
static boolean |
USEGLOBALGRAVITY_DEFAULT_VALUE
SFBool field named useGlobalGravity has default value true (Java syntax) or true (XML syntax).
|
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUEvalidationResult| Constructor and Description |
|---|
RigidBodyObject()
Constructor for RigidBodyObject to initialize member variables with default values.
|
RigidBodyObject(java.lang.String DEFlabel)
Utility constructor that assigns DEF label after initializing member variables with default values.
|
| Modifier and Type | Method and Description |
|---|---|
RigidBodyObject |
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
RigidBodyObject |
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
RigidBodyObject |
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
RigidBodyObject |
addForces(SFVec3fObject newValue)
Add singleton SFVec3fObject value to MFVec3f forces field.
|
RigidBodyObject |
addGeometry(X3DNode newValue)
Add single child node to existing array of geometry nodes (if any).
|
void |
addGeometry(X3DNode[] newValue)
Add array of child geometry nodes to array of existing nodes (if any).
|
RigidBodyObject |
addTorques(SFVec3fObject newValue)
Add singleton SFVec3fObject value to MFVec3f torques field.
|
RigidBodyObject |
clearGeometry()
Utility method to clear MFNode value of geometry field.
|
RigidBodyObject |
clearMassDensityModel()
Utility method to clear SFNode value of massDensityModel field.
|
RigidBodyObject |
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.
|
float |
getAngularDampingFactor()
Provide float value from inputOutput SFFloat field named angularDampingFactor.
|
float[] |
getAngularVelocity()
Provide array of 3-tuple float results from inputOutput SFVec3f field named angularVelocity.
|
boolean |
getAutoDamp()
Provide boolean value from inputOutput SFBool field named autoDamp.
|
boolean |
getAutoDisable()
Provide boolean value from inputOutput SFBool field named autoDisable.
|
float[] |
getCenterOfMass()
Provide array of 3-tuple float results from inputOutput SFVec3f field named centerOfMass.
|
java.lang.String |
getComponent()
Defines X3D component for the RigidBody element: RigidBodyPhysics
|
int |
getComponentLevel()
Provides default X3D component level for this element: 2
|
java.lang.String |
getContainerFieldDefault()
containerField describes typical field relationship of a node to its parent.
|
float |
getDisableAngularSpeed()
Provide float value from inputOutput SFFloat field named disableAngularSpeed.
|
float |
getDisableLinearSpeed()
Provide float value from inputOutput SFFloat field named disableLinearSpeed.
|
double |
getDisableTime()
Provide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named disableTime.
|
java.lang.String |
getElementName()
Provides name of this element: RigidBody
|
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[] |
getFiniteRotationAxis()
Provide array of 3-tuple float results unit axis, angle (in radians) from inputOutput SFVec3f field named finiteRotationAxis.
|
boolean |
getFixed()
Provide boolean value from inputOutput SFBool field named fixed.
|
float[] |
getForces()
Provide array of 3-tuple float results from inputOutput MFVec3f field named forces.
|
X3DNode[] |
getGeometry()
Provide array of X3DNBodyCollidableNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field geometry.
|
java.util.ArrayList<X3DNode> |
getGeometryList()
Utility method to get ArrayList value of MFNode geometry field, similar to
getGeometry(). |
float[] |
getInertia()
Provide array of float results from inputOutput SFMatrix3f field named inertia.
|
ISObject |
getIS()
Provide field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
float |
getLinearDampingFactor()
Provide float value from inputOutput SFFloat field named linearDampingFactor.
|
float[] |
getLinearVelocity()
Provide array of 3-tuple float results from inputOutput SFVec3f field named linearVelocity.
|
float |
getMass()
Provide float value from inputOutput SFFloat field named mass.
|
X3DNode |
getMassDensityModel()
Provide X3DNode instance (using a properly typed node) with acceptable node types limited to Sphere|Box|Cone, from inputOutput SFNode field massDensityModel.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
float[] |
getOrientation()
Provide array of 4-tuple float results unit axis, angle (in radians) from inputOutput SFRotation field named orientation.
|
float[] |
getPosition()
Provide array of 3-tuple float results from inputOutput SFVec3f field named position.
|
float[] |
getTorques()
Provide array of 3-tuple float results from inputOutput MFVec3f field named torques.
|
boolean |
getUseFiniteRotation()
Provide boolean value unit axis, angle (in radians) from inputOutput SFBool field named useFiniteRotation.
|
boolean |
getUseGlobalGravity()
Provide boolean value from inputOutput SFBool field named useGlobalGravity.
|
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 |
hasGeometry()
Indicate whether an object is available for inputOutput MFNode field geometry.
|
boolean |
hasMassDensityModel()
Indicate whether an object is available for inputOutput SFNode field massDensityModel.
|
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.
|
RigidBodyObject |
setAngularDampingFactor(float newValue)
Assign float value to inputOutput SFFloat field named angularDampingFactor.
|
RigidBodyObject |
setAngularDampingFactor(SFFloatObject newValue)
Assign typed object value to SFFloat angularDampingFactor field, similar to
setAngularDampingFactor(float). |
RigidBodyObject |
setAngularVelocity(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named angularVelocity.
|
RigidBodyObject |
setAngularVelocity(float x,
float y,
float z)
Assign values to SFVec3f angularVelocity field, similar to
setAngularVelocity(float[]). |
RigidBodyObject |
setAngularVelocity(SFVec3fObject newValue)
Assign typed object value to SFVec3f angularVelocity field, similar to
setAngularVelocity(float[]). |
RigidBodyObject |
setAutoDamp(boolean newValue)
Assign boolean value to inputOutput SFBool field named autoDamp.
|
RigidBodyObject |
setAutoDamp(SFBoolObject newValue)
Assign typed object value to SFBool autoDamp field, similar to
setAutoDamp(boolean). |
RigidBodyObject |
setAutoDisable(boolean newValue)
Assign boolean value to inputOutput SFBool field named autoDisable.
|
RigidBodyObject |
setAutoDisable(SFBoolObject newValue)
Assign typed object value to SFBool autoDisable field, similar to
setAutoDisable(boolean). |
RigidBodyObject |
setCenterOfMass(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named centerOfMass.
|
RigidBodyObject |
setCenterOfMass(float x,
float y,
float z)
Assign values to SFVec3f centerOfMass field, similar to
setCenterOfMass(float[]). |
RigidBodyObject |
setCenterOfMass(SFVec3fObject newValue)
Assign typed object value to SFVec3f centerOfMass field, similar to
setCenterOfMass(float[]). |
RigidBodyObject |
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String). |
RigidBodyObject |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
RigidBodyObject |
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String). |
RigidBodyObject |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
RigidBodyObject |
setDisableAngularSpeed(float newValue)
Assign float value to inputOutput SFFloat field named disableAngularSpeed.
|
RigidBodyObject |
setDisableAngularSpeed(SFFloatObject newValue)
Assign typed object value to SFFloat disableAngularSpeed field, similar to
setDisableAngularSpeed(float). |
RigidBodyObject |
setDisableLinearSpeed(float newValue)
Assign float value to inputOutput SFFloat field named disableLinearSpeed.
|
RigidBodyObject |
setDisableLinearSpeed(SFFloatObject newValue)
Assign typed object value to SFFloat disableLinearSpeed field, similar to
setDisableLinearSpeed(float). |
RigidBodyObject |
setDisableTime(double newValue)
Assign double value in seconds within allowed range of [0,infinity) to inputOutput SFTime field named disableTime.
|
RigidBodyObject |
setDisableTime(SFTimeObject newValue)
Assign typed object value to SFTime disableTime field, similar to
setDisableTime(double). |
RigidBodyObject |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
RigidBodyObject |
setEnabled(SFBoolObject newValue)
Assign typed object value to SFBool enabled field, similar to
setEnabled(boolean). |
RigidBodyObject |
setFiniteRotationAxis(float[] newValue)
Assign 3-tuple float array unit axis, angle (in radians) to inputOutput SFVec3f field named finiteRotationAxis.
|
RigidBodyObject |
setFiniteRotationAxis(float x,
float y,
float z)
Assign values to SFVec3f finiteRotationAxis field, similar to
setFiniteRotationAxis(float[]). |
RigidBodyObject |
setFiniteRotationAxis(SFVec3fObject newValue)
Assign typed object value to SFVec3f finiteRotationAxis field, similar to
setFiniteRotationAxis(float[]). |
RigidBodyObject |
setFixed(boolean newValue)
Assign boolean value to inputOutput SFBool field named fixed.
|
RigidBodyObject |
setFixed(SFBoolObject newValue)
Assign typed object value to SFBool fixed field, similar to
setFixed(boolean). |
RigidBodyObject |
setForces(float[] newValue)
Assign 3-tuple float array to inputOutput MFVec3f field named forces.
|
RigidBodyObject |
setForces(MFVec3fObject newValue)
Assign typed object value to MFVec3f forces field, similar to
setForces(float[]). |
RigidBodyObject |
setGeometry(java.util.ArrayList<X3DNBodyCollidableNode> newValue)
Assign ArrayList value of MFNode geometry field, similar to
setGeometry(X3DNode[]). |
RigidBodyObject |
setGeometry(X3DConcreteNode newValue)
Utility method to set single SFNode as RigidBodyObject geometry.
|
void |
setGeometry(X3DNode newValue)
Set single child geometry node, replacing prior array of existing nodes (if any).
|
RigidBodyObject |
setGeometry(X3DNode[] newValue)
Assign X3DNBodyCollidableNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field geometry.
|
RigidBodyObject |
setInertia(float[] newValue)
Assign float array to inputOutput SFMatrix3f field named inertia.
|
RigidBodyObject |
setInertia(SFMatrix3fObject newValue)
Assign typed object value to SFMatrix3f inertia field, similar to
setInertia(float[]). |
RigidBodyObject |
setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
RigidBodyObject |
setLinearDampingFactor(float newValue)
Assign float value to inputOutput SFFloat field named linearDampingFactor.
|
RigidBodyObject |
setLinearDampingFactor(SFFloatObject newValue)
Assign typed object value to SFFloat linearDampingFactor field, similar to
setLinearDampingFactor(float). |
RigidBodyObject |
setLinearVelocity(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named linearVelocity.
|
RigidBodyObject |
setLinearVelocity(float x,
float y,
float z)
Assign values to SFVec3f linearVelocity field, similar to
setLinearVelocity(float[]). |
RigidBodyObject |
setLinearVelocity(SFVec3fObject newValue)
Assign typed object value to SFVec3f linearVelocity field, similar to
setLinearVelocity(float[]). |
RigidBodyObject |
setMass(float newValue)
Assign float value to inputOutput SFFloat field named mass.
|
RigidBodyObject |
setMass(SFFloatObject newValue)
Assign typed object value to SFFloat mass field, similar to
setMass(float). |
RigidBodyObject |
setMassDensityModel(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field massDensityModel.
|
RigidBodyObject |
setMassDensityModel(X3DNode newValue)
Assign X3DNode instance (using a properly typed node) with acceptable node types limited to Sphere|Box|Cone, to inputOutput SFNode field massDensityModel.
// newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1
boolean isNodeTypeAllowed =
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Geometry3D.SphereObject) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Geometry3D.BoxObject) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Geometry3D.ConeObject);
if (!
|
RigidBodyObject |
setMetadata(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.
|
RigidBodyObject |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
RigidBodyObject |
setOrientation(float[] newValue)
Assign 4-tuple float array unit axis, angle (in radians) to inputOutput SFRotation field named orientation.
|
RigidBodyObject |
setOrientation(float x,
float y,
float z,
float angleRadians)
Assign values to SFRotation orientation field, similar to
setOrientation(float[]). |
RigidBodyObject |
setOrientation(SFRotationObject newValue)
Assign typed object value to SFRotation orientation field, similar to
setOrientation(float[]). |
RigidBodyObject |
setPosition(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named position.
|
RigidBodyObject |
setPosition(float x,
float y,
float z)
Assign values to SFVec3f position field, similar to
setPosition(float[]). |
RigidBodyObject |
setPosition(SFVec3fObject newValue)
Assign typed object value to SFVec3f position field, similar to
setPosition(float[]). |
RigidBodyObject |
setTorques(float[] newValue)
Assign 3-tuple float array to inputOutput MFVec3f field named torques.
|
RigidBodyObject |
setTorques(MFVec3fObject newValue)
Assign typed object value to MFVec3f torques field, similar to
setTorques(float[]). |
RigidBodyObject |
setUSE(RigidBodyObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String). |
RigidBodyObject |
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String). |
RigidBodyObject |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
RigidBodyObject |
setUseFiniteRotation(boolean newValue)
Assign boolean value unit axis, angle (in radians) to inputOutput SFBool field named useFiniteRotation.
|
RigidBodyObject |
setUseFiniteRotation(SFBoolObject newValue)
Assign typed object value to SFBool useFiniteRotation field, similar to
setUseFiniteRotation(boolean). |
RigidBodyObject |
setUseGlobalGravity(boolean newValue)
Assign boolean value to inputOutput SFBool field named useGlobalGravity.
|
RigidBodyObject |
setUseGlobalGravity(SFBoolObject newValue)
Assign typed object value to SFBool useGlobalGravity field, similar to
setUseGlobalGravity(boolean). |
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, setContainerFieldOverrideclearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3Dpublic static final java.lang.String NAME
public static final java.lang.String COMPONENT
public static final int LEVEL
public static final float ANGULARDAMPINGFACTOR_DEFAULT_VALUE
public static final float[] ANGULARVELOCITY_DEFAULT_VALUE
public static final boolean AUTODAMP_DEFAULT_VALUE
public static final boolean AUTODISABLE_DEFAULT_VALUE
public static final float[] CENTEROFMASS_DEFAULT_VALUE
public static final float DISABLEANGULARSPEED_DEFAULT_VALUE
public static final float DISABLELINEARSPEED_DEFAULT_VALUE
public static final double DISABLETIME_DEFAULT_VALUE
public static final boolean ENABLED_DEFAULT_VALUE
public static final float[] FINITEROTATIONAXIS_DEFAULT_VALUE
public static final boolean FIXED_DEFAULT_VALUE
public static final float[] INERTIA_DEFAULT_VALUE
public static final float LINEARDAMPINGFACTOR_DEFAULT_VALUE
public static final float[] LINEARVELOCITY_DEFAULT_VALUE
public static final float MASS_DEFAULT_VALUE
public static final float[] ORIENTATION_DEFAULT_VALUE
public static final float[] POSITION_DEFAULT_VALUE
public static final boolean USEFINITEROTATION_DEFAULT_VALUE
public static final boolean USEGLOBALGRAVITY_DEFAULT_VALUE
public static final java.lang.String containerField_DEFAULT_VALUE
public static final java.lang.String fromField_ANGULARDAMPINGFACTOR
public static final java.lang.String toField_ANGULARDAMPINGFACTOR
public static final java.lang.String fromField_ANGULARVELOCITY
public static final java.lang.String toField_ANGULARVELOCITY
public static final java.lang.String fromField_AUTODAMP
public static final java.lang.String toField_AUTODAMP
public static final java.lang.String fromField_AUTODISABLE
public static final java.lang.String toField_AUTODISABLE
public static final java.lang.String fromField_CENTEROFMASS
public static final java.lang.String toField_CENTEROFMASS
public static final java.lang.String fromField_DISABLEANGULARSPEED
public static final java.lang.String toField_DISABLEANGULARSPEED
public static final java.lang.String fromField_DISABLELINEARSPEED
public static final java.lang.String toField_DISABLELINEARSPEED
public static final java.lang.String fromField_DISABLETIME
public static final java.lang.String toField_DISABLETIME
public static final java.lang.String fromField_ENABLED
public static final java.lang.String toField_ENABLED
public static final java.lang.String fromField_FINITEROTATIONAXIS
public static final java.lang.String toField_FINITEROTATIONAXIS
public static final java.lang.String fromField_FIXED
public static final java.lang.String toField_FIXED
public static final java.lang.String fromField_FORCES
public static final java.lang.String toField_FORCES
public static final java.lang.String fromField_GEOMETRY
public static final java.lang.String toField_GEOMETRY
public static final java.lang.String fromField_INERTIA
public static final java.lang.String toField_INERTIA
public static final java.lang.String fromField_LINEARDAMPINGFACTOR
public static final java.lang.String toField_LINEARDAMPINGFACTOR
public static final java.lang.String fromField_LINEARVELOCITY
public static final java.lang.String toField_LINEARVELOCITY
public static final java.lang.String fromField_MASS
public static final java.lang.String toField_MASS
public static final java.lang.String fromField_MASSDENSITYMODEL
public static final java.lang.String toField_MASSDENSITYMODEL
public static final java.lang.String fromField_METADATA
public static final java.lang.String toField_METADATA
public static final java.lang.String fromField_ORIENTATION
public static final java.lang.String toField_ORIENTATION
public static final java.lang.String fromField_POSITION
public static final java.lang.String toField_POSITION
public static final java.lang.String fromField_TORQUES
public static final java.lang.String toField_TORQUES
public static final java.lang.String fromField_USEFINITEROTATION
public static final java.lang.String toField_USEFINITEROTATION
public static final java.lang.String fromField_USEGLOBALGRAVITY
public static final java.lang.String toField_USEGLOBALGRAVITY
public RigidBodyObject()
public RigidBodyObject(java.lang.String DEFlabel)
DEFlabel - unique DEF name for this X3D nodepublic final java.lang.String getElementName()
getElementName in class X3DConcreteElementpublic final java.lang.String getComponent()
getComponent in class X3DConcreteElementpublic final int getComponentLevel()
getComponentLevel in class X3DConcreteElementpublic java.lang.String getFieldType(java.lang.String fieldName)
getFieldType in class X3DConcreteElementfieldName - name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPEpublic java.lang.String getAccessType(java.lang.String fieldName)
getAccessType in class X3DConcreteElementfieldName - name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPEpublic final java.lang.String getContainerFieldDefault()
getContainerFieldDefault in class X3DConcreteNodepublic final void initialize()
initialize in class X3DConcreteNodepublic float getAngularDampingFactor()
getAngularDampingFactor in interface RigidBodypublic RigidBodyObject setAngularDampingFactor(float newValue)
setAngularDampingFactor in interface RigidBodynewValue - is new value for the angularDampingFactor field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setAngularDampingFactor(SFFloatObject newValue)
setAngularDampingFactor(float).newValue - is new value for the angularDampingFactor field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getAngularVelocity()
getAngularVelocity in interface RigidBodypublic RigidBodyObject setAngularVelocity(float[] newValue)
setAngularVelocity in interface RigidBodynewValue - is new value for the angularVelocity field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setAngularVelocity(SFVec3fObject newValue)
setAngularVelocity(float[]).newValue - is new value for the angularVelocity field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setAngularVelocity(float x, float y, float z)
setAngularVelocity(float[]).x - first componenty - second componentz - third componentRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getAutoDamp()
getAutoDamp in interface RigidBodypublic RigidBodyObject setAutoDamp(boolean newValue)
setAutoDamp in interface RigidBodynewValue - is new value for the autoDamp field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setAutoDamp(SFBoolObject newValue)
setAutoDamp(boolean).newValue - is new value for the autoDamp field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getAutoDisable()
getAutoDisable in interface RigidBodypublic RigidBodyObject setAutoDisable(boolean newValue)
setAutoDisable in interface RigidBodynewValue - is new value for the autoDisable field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setAutoDisable(SFBoolObject newValue)
setAutoDisable(boolean).newValue - is new value for the autoDisable field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getCenterOfMass()
getCenterOfMass in interface RigidBodypublic RigidBodyObject setCenterOfMass(float[] newValue)
setCenterOfMass in interface RigidBodynewValue - is new value for the centerOfMass field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setCenterOfMass(SFVec3fObject newValue)
setCenterOfMass(float[]).newValue - is new value for the centerOfMass field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setCenterOfMass(float x, float y, float z)
setCenterOfMass(float[]).x - first componenty - second componentz - third componentRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getDisableAngularSpeed()
getDisableAngularSpeed in interface RigidBodypublic RigidBodyObject setDisableAngularSpeed(float newValue)
setDisableAngularSpeed in interface RigidBodynewValue - is new value for the disableAngularSpeed field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setDisableAngularSpeed(SFFloatObject newValue)
setDisableAngularSpeed(float).newValue - is new value for the disableAngularSpeed field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getDisableLinearSpeed()
getDisableLinearSpeed in interface RigidBodypublic RigidBodyObject setDisableLinearSpeed(float newValue)
setDisableLinearSpeed in interface RigidBodynewValue - is new value for the disableLinearSpeed field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setDisableLinearSpeed(SFFloatObject newValue)
setDisableLinearSpeed(float).newValue - is new value for the disableLinearSpeed field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public double getDisableTime()
getDisableTime in interface RigidBodypublic RigidBodyObject setDisableTime(double newValue)
setDisableTime in interface RigidBodynewValue - is new value for the disableTime field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setDisableTime(SFTimeObject newValue)
setDisableTime(double).newValue - is new value for the disableTime field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getEnabled()
getEnabled in interface RigidBodypublic RigidBodyObject setEnabled(boolean newValue)
setEnabled in interface RigidBodynewValue - is new value for the enabled field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setEnabled(SFBoolObject newValue)
setEnabled(boolean).newValue - is new value for the enabled field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getFiniteRotationAxis()
getFiniteRotationAxis in interface RigidBodypublic RigidBodyObject setFiniteRotationAxis(float[] newValue)
setFiniteRotationAxis in interface RigidBodynewValue - is new value for the finiteRotationAxis field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setFiniteRotationAxis(SFVec3fObject newValue)
setFiniteRotationAxis(float[]).newValue - is new value for the finiteRotationAxis field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setFiniteRotationAxis(float x, float y, float z)
setFiniteRotationAxis(float[]).x - first componenty - second componentz - third componentRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getFixed()
public RigidBodyObject setFixed(boolean newValue)
setFixed in interface RigidBodynewValue - is new value for the fixed field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setFixed(SFBoolObject newValue)
setFixed(boolean).newValue - is new value for the fixed field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getForces()
public RigidBodyObject setForces(float[] newValue)
setForces in interface RigidBodynewValue - is new value for the forces field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setForces(MFVec3fObject newValue)
setForces(float[]).newValue - is new value for the forces field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject addForces(SFVec3fObject newValue)
newValue - is new value to add to the forces field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public X3DNode[] getGeometry()
getGeometry in interface RigidBodyX3DNBodyCollidableNodepublic java.util.ArrayList<X3DNode> getGeometryList()
getGeometry().public RigidBodyObject setGeometry(X3DNode[] newValue)
setGeometry in interface RigidBodynewValue - is new value for the geometry field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setGeometry(java.util.ArrayList<X3DNBodyCollidableNode> newValue)
setGeometry(X3DNode[]).newValue - is new value for the geometry field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject addGeometry(X3DNode newValue)
newValue - is new value to be appended the geometry field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public void addGeometry(X3DNode[] newValue)
addGeometry in interface RigidBodynewValue - is new value array to be appended the geometry field.public void setGeometry(X3DNode newValue)
setGeometry in interface RigidBodynewValue - is new node for the geometry field (restricted to X3DNBodyCollidableNode)public RigidBodyObject setGeometry(X3DConcreteNode newValue)
newValue - RigidBodyObject node to setRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public RigidBodyObject clearGeometry()
RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public boolean hasGeometry()
getGeometry()public float[] getInertia()
getInertia in interface RigidBodypublic RigidBodyObject setInertia(float[] newValue)
setInertia in interface RigidBodynewValue - is new value for the inertia field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setInertia(SFMatrix3fObject newValue)
setInertia(float[]).newValue - is new value for the inertia field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getLinearDampingFactor()
getLinearDampingFactor in interface RigidBodypublic RigidBodyObject setLinearDampingFactor(float newValue)
setLinearDampingFactor in interface RigidBodynewValue - is new value for the linearDampingFactor field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setLinearDampingFactor(SFFloatObject newValue)
setLinearDampingFactor(float).newValue - is new value for the linearDampingFactor field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getLinearVelocity()
getLinearVelocity in interface RigidBodypublic RigidBodyObject setLinearVelocity(float[] newValue)
setLinearVelocity in interface RigidBodynewValue - is new value for the linearVelocity field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setLinearVelocity(SFVec3fObject newValue)
setLinearVelocity(float[]).newValue - is new value for the linearVelocity field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setLinearVelocity(float x, float y, float z)
setLinearVelocity(float[]).x - first componenty - second componentz - third componentRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getMass()
public RigidBodyObject setMass(float newValue)
setMass in interface RigidBodynewValue - is new value for the mass field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setMass(SFFloatObject newValue)
setMass(float).newValue - is new value for the mass field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public X3DNode getMassDensityModel()
getMassDensityModel in interface RigidBodygetMassDensityModelProtoInstance()public RigidBodyObject setMassDensityModel(X3DNode newValue)
setMassDensityModel in interface RigidBodynewValue - is new value for the massDensityModel field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).setMassDensityModel(ProtoInstanceObject)public RigidBodyObject clearMassDensityModel()
RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public RigidBodyObject setMassDensityModel(ProtoInstanceObject newValue)
newValue - is new value for the massDensityModel field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).setMassDensityModel(X3DNode)public boolean hasMassDensityModel()
getMassDensityModel(),
getMassDensityModelProtoInstance()public X3DMetadataObject getMetadata()
getMetadata in interface X3DNodegetMetadata in interface RigidBodygetMetadataProtoInstance(),
X3D Scene Authoring Hints: Metadata Nodespublic RigidBodyObject setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DNodesetMetadata in interface RigidBodysetMetadata in class X3DConcreteNodenewValue - is new value for the metadata field.RigidBodyObject - 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 RigidBodyObject clearMetadata()
RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public RigidBodyObject setMetadata(ProtoInstanceObject newValue)
setMetadata in class X3DConcreteNodenewValue - is new value for the metadata field.RigidBodyObject - 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[] getOrientation()
getOrientation in interface RigidBodypublic RigidBodyObject setOrientation(float[] newValue)
setOrientation in interface RigidBodynewValue - is new value for the orientation field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setOrientation(SFRotationObject newValue)
setOrientation(float[]).newValue - is new value for the orientation field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setOrientation(float x, float y, float z, float angleRadians)
setOrientation(float[]).x - first component of axisy - second component of axisz - third component of axisangleRadians - fourth component of rotation around axisRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getPosition()
getPosition in interface RigidBodypublic RigidBodyObject setPosition(float[] newValue)
setPosition in interface RigidBodynewValue - is new value for the position field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setPosition(SFVec3fObject newValue)
setPosition(float[]).newValue - is new value for the position field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setPosition(float x, float y, float z)
setPosition(float[]).x - first componenty - second componentz - third componentRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getTorques()
getTorques in interface RigidBodypublic RigidBodyObject setTorques(float[] newValue)
setTorques in interface RigidBodynewValue - is new value for the torques field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setTorques(MFVec3fObject newValue)
setTorques(float[]).newValue - is new value for the torques field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject addTorques(SFVec3fObject newValue)
newValue - is new value to add to the torques field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getUseFiniteRotation()
getUseFiniteRotation in interface RigidBodypublic RigidBodyObject setUseFiniteRotation(boolean newValue)
setUseFiniteRotation in interface RigidBodynewValue - is new value for the useFiniteRotation field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setUseFiniteRotation(SFBoolObject newValue)
setUseFiniteRotation(boolean).newValue - is new value for the useFiniteRotation field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getUseGlobalGravity()
getUseGlobalGravity in interface RigidBodypublic RigidBodyObject setUseGlobalGravity(boolean newValue)
setUseGlobalGravity in interface RigidBodynewValue - is new value for the useGlobalGravity field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setUseGlobalGravity(SFBoolObject newValue)
setUseGlobalGravity(boolean).newValue - is new value for the useGlobalGravity field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final RigidBodyObject setDEF(java.lang.String newValue)
setDEF in interface X3DNodesetDEF in interface RigidBodysetDEF in class X3DConcreteNodenewValue - is new value for the DEF field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setDEF(SFStringObject newValue)
setDEF(String).newValue - is new value for the DEF field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final RigidBodyObject 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 X3DNodesetUSE in interface RigidBodysetUSE in class X3DConcreteNodenewValue - is new value for the USE field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setUSE(SFStringObject newValue)
setUSE(String).newValue - is new value for the USE field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final RigidBodyObject setCssClass(java.lang.String newValue)
setCssClass in interface X3DNodesetCssClass in interface RigidBodysetCssClass in class X3DConcreteNodenewValue - is new value for the class field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setCssClass(SFStringObject newValue)
setCssClass(String).newValue - is new value for the class field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject setIS(ISObject newValue)
setIS in class X3DConcreteNodenewValue - is new value for the description field.RigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ISObject getIS()
getIS in class X3DConcreteNodepublic RigidBodyObject setUSE(RigidBodyObject 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 definedRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public RigidBodyObject addComments(java.lang.String newComment)
addComments in class X3DConcreteElementnewComment - initial valueRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public RigidBodyObject addComments(java.lang.String[] newComments)
addComments in class X3DConcreteElementnewComments - array of commentsRigidBodyObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public RigidBodyObject addComments(CommentsBlock newCommentsBlock)
addComments in class X3DConcreteElementnewCommentsBlock - block of comments to addRigidBodyObject - 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 X3DConcreteElementindentLevel - 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 Formpublic java.lang.String toStringClassicVRML(int indentLevel)
toStringClassicVRML in class X3DConcreteElementindentLevel - 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 X3DConcreteElementindentLevel - 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 X3DConcreteElementnameValue - 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 X3DConcreteElementnameValue - 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 X3DConcreteElementDEFvalue - 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 X3DConcreteElementCopyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.