public class UniversalJointObject extends X3DConcreteNode implements UniversalJoint
| Modifier and Type | Field and Description |
|---|---|
static float[] |
ANCHORPOINT_DEFAULT_VALUE
SFVec3f field named anchorPoint has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static float[] |
AXIS1_DEFAULT_VALUE
SFVec3f field named axis1 has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static float[] |
AXIS2_DEFAULT_VALUE
SFVec3f field named axis2 has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
|
static java.lang.String |
COMPONENT
String constant COMPONENT provides X3D component for this element: RigidBodyPhysics.
|
static java.util.ArrayList<java.lang.String> |
FORCEOUTPUT_ALL
MFString field named forceOutput is an array that can include this quoted enumeration value new String[] {"ALL"} (Java syntax) or '"ALL"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
FORCEOUTPUT_DEFAULT_VALUE
MFString field named forceOutput has default quoted value new String[] {"NONE"} (Java syntax) or quoted value "NONE" (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
FORCEOUTPUT_NONE
MFString field named forceOutput is an array that can include this quoted enumeration value new String[] {"NONE"} (Java syntax) or '"NONE"' (XML syntax).
|
static java.lang.String |
fromField_ANCHORPOINT
fromField ROUTE name for SFVec3f field named anchorPoint.
|
static java.lang.String |
fromField_AXIS1
fromField ROUTE name for SFVec3f field named axis1.
|
static java.lang.String |
fromField_AXIS2
fromField ROUTE name for SFVec3f field named axis2.
|
static java.lang.String |
fromField_BODY1
fromField ROUTE name for SFNode field named body1.
|
static java.lang.String |
fromField_BODY1ANCHORPOINT
fromField ROUTE name for SFVec3f field named body1AnchorPoint.
|
static java.lang.String |
fromField_BODY1AXIS
fromField ROUTE name for SFVec3f field named body1Axis.
|
static java.lang.String |
fromField_BODY2
fromField ROUTE name for SFNode field named body2.
|
static java.lang.String |
fromField_BODY2ANCHORPOINT
fromField ROUTE name for SFVec3f field named body2AnchorPoint.
|
static java.lang.String |
fromField_BODY2AXIS
fromField ROUTE name for SFFloat field named body2Axis.
|
static java.lang.String |
fromField_FORCEOUTPUT
fromField ROUTE name for MFString field named forceOutput.
|
static java.lang.String |
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
fromField_STOP1BOUNCE
fromField ROUTE name for SFFloat field named stop1Bounce.
|
static java.lang.String |
fromField_STOP1ERRORCORRECTION
fromField ROUTE name for SFFloat field named stop1ErrorCorrection.
|
static java.lang.String |
fromField_STOP2BOUNCE
fromField ROUTE name for SFFloat field named stop2Bounce.
|
static java.lang.String |
fromField_STOP2ERRORCORRECTION
fromField ROUTE name for SFFloat field named stop2ErrorCorrection.
|
static int |
LEVEL
Integer constant LEVEL provides default X3D component level for this element: 2.
|
static java.lang.String |
NAME
String constant NAME provides name of this element: UniversalJoint.
|
static float |
STOP1BOUNCE_DEFAULT_VALUE
SFFloat field named stop1Bounce has default value 0f (Java syntax) or 0 (XML syntax).
|
static float |
STOP1ERRORCORRECTION_DEFAULT_VALUE
SFFloat field named stop1ErrorCorrection has default value 0.8f (Java syntax) or 0.8 (XML syntax).
|
static float |
STOP2BOUNCE_DEFAULT_VALUE
SFFloat field named stop2Bounce has default value 0f (Java syntax) or 0 (XML syntax).
|
static float |
STOP2ERRORCORRECTION_DEFAULT_VALUE
SFFloat field named stop2ErrorCorrection has default value 0.8f (Java syntax) or 0.8 (XML syntax).
|
static java.lang.String |
toField_ANCHORPOINT
toField ROUTE name for SFVec3f field named anchorPoint.
|
static java.lang.String |
toField_AXIS1
toField ROUTE name for SFVec3f field named axis1.
|
static java.lang.String |
toField_AXIS2
toField ROUTE name for SFVec3f field named axis2.
|
static java.lang.String |
toField_BODY1
toField ROUTE name for SFNode field named body1.
|
static java.lang.String |
toField_BODY2
toField ROUTE name for SFNode field named body2.
|
static java.lang.String |
toField_FORCEOUTPUT
toField ROUTE name for MFString field named forceOutput.
|
static java.lang.String |
toField_METADATA
toField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
toField_STOP1BOUNCE
toField ROUTE name for SFFloat field named stop1Bounce.
|
static java.lang.String |
toField_STOP1ERRORCORRECTION
toField ROUTE name for SFFloat field named stop1ErrorCorrection.
|
static java.lang.String |
toField_STOP2BOUNCE
toField ROUTE name for SFFloat field named stop2Bounce.
|
static java.lang.String |
toField_STOP2ERRORCORRECTION
toField ROUTE name for SFFloat field named stop2ErrorCorrection.
|
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUEvalidationResult| Constructor and Description |
|---|
UniversalJointObject()
Constructor for UniversalJointObject to initialize member variables with default values.
|
UniversalJointObject(java.lang.String DEFname)
Utility constructor that assigns DEF name after initializing member variables with default values
|
| Modifier and Type | Method and Description |
|---|---|
UniversalJointObject |
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
UniversalJointObject |
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
UniversalJointObject |
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
UniversalJointObject |
clearBody1()
Utility method to clear SFNode value of body1 field.
|
UniversalJointObject |
clearBody2()
Utility method to clear SFNode value of body2 field.
|
UniversalJointObject |
clearForceOutput()
Utility method to clear MFString value of forceOutput field.
|
UniversalJointObject |
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[] |
getAnchorPoint()
Provide array of 3-tuple float results from inputOutput SFVec3f field named anchorPoint.
|
float[] |
getAxis1()
Provide array of 3-tuple float results from inputOutput SFVec3f field named axis1.
|
float[] |
getAxis2()
Provide array of 3-tuple float results from inputOutput SFVec3f field named axis2.
|
RigidBody |
getBody1()
Provide RigidBody instance (using a properly typed node) from inputOutput SFNode field body1.
|
float[] |
getBody1AnchorPoint()
Provide array of 3-tuple float results from outputOnly SFVec3f field named body1AnchorPoint.
|
float[] |
getBody1Axis()
Provide array of 3-tuple float results from outputOnly SFVec3f field named body1Axis.
|
ProtoInstanceObject |
getBody1ProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field body1, if available.
|
RigidBody |
getBody2()
Provide RigidBody instance (using a properly typed node) from inputOutput SFNode field body2.
|
float[] |
getBody2AnchorPoint()
Provide array of 3-tuple float results from outputOnly SFVec3f field named body2AnchorPoint.
|
float |
getBody2Axis()
Provide float value from outputOnly SFFloat field named body2Axis.
|
ProtoInstanceObject |
getBody2ProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field body2, if available.
|
java.lang.String |
getComponent()
Provides X3D component for this element: RigidBodyPhysics.
|
int |
getComponentLevel()
Provides default X3D component level for this element: 2.
|
java.lang.String |
getElementName()
Provides name of this element: UniversalJoint.
|
java.lang.String |
getFieldType(java.lang.String fieldName)
Indicate type corresponding to given fieldName.
|
java.lang.String[] |
getForceOutput()
Provide array of String enumeration results ['"ALL"'|'"NONE"'|'"etc."'] from inputOutput MFString field named forceOutput.
|
java.util.ArrayList<java.lang.String> |
getForceOutputList()
Utility method to get ArrayList value of MFString forceOutput field, similar to
getForceOutput(). |
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.
|
ProtoInstanceObject |
getMetadataProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field metadata, if available.
|
X3DConcreteNode |
getNodeByDEF(java.lang.String DEFname)
Recursive method to provide object reference to node by DEF name, if found as this node or in a contained node.
|
float |
getStop1Bounce()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named stop1Bounce.
|
float |
getStop1ErrorCorrection()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named stop1ErrorCorrection.
|
float |
getStop2Bounce()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named stop2Bounce.
|
float |
getStop2ErrorCorrection()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named stop2ErrorCorrection.
|
boolean |
hasBody1()
Indicate whether an object is available for inputOutput SFNode field body1.
|
boolean |
hasBody2()
Indicate whether an object is available for inputOutput SFNode field body2.
|
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.
|
UniversalJointObject |
setAnchorPoint(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named anchorPoint.
|
UniversalJointObject |
setAnchorPoint(float x,
float y,
float z)
Assign values to SFVec3f anchorPoint field, similar to
setAnchorPoint(float[]). |
UniversalJointObject |
setAnchorPoint(SFVec3fObject newValue)
Assign typed object value to SFVec3f anchorPoint field, similar to
setAnchorPoint(float[]). |
UniversalJointObject |
setAxis1(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named axis1.
|
UniversalJointObject |
setAxis1(float x,
float y,
float z)
Assign values to SFVec3f axis1 field, similar to
setAxis1(float[]). |
UniversalJointObject |
setAxis1(SFVec3fObject newValue)
Assign typed object value to SFVec3f axis1 field, similar to
setAxis1(float[]). |
UniversalJointObject |
setAxis2(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named axis2.
|
UniversalJointObject |
setAxis2(float x,
float y,
float z)
Assign values to SFVec3f axis2 field, similar to
setAxis2(float[]). |
UniversalJointObject |
setAxis2(SFVec3fObject newValue)
Assign typed object value to SFVec3f axis2 field, similar to
setAxis2(float[]). |
UniversalJointObject |
setBody1(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to body1 field;
WARNING: ProtoInstance must match acceptable node type RigidBody.
|
UniversalJointObject |
setBody1(RigidBody newValue)
Assign RigidBody instance (using a properly typed node) to inputOutput SFNode field body1.
|
UniversalJointObject |
setBody2(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to body2 field;
WARNING: ProtoInstance must match acceptable node type RigidBody.
|
UniversalJointObject |
setBody2(RigidBody newValue)
Assign RigidBody instance (using a properly typed node) to inputOutput SFNode field body2.
|
UniversalJointObject |
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String). |
UniversalJointObject |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
UniversalJointObject |
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String). |
UniversalJointObject |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
UniversalJointObject |
setForceOutput(java.util.ArrayList<java.lang.String> newValue)
Assign ArrayList value of MFString forceOutput field, similar to
setForceOutput(String[]). |
UniversalJointObject |
setForceOutput(MFStringObject newValue)
Assign typed object value to MFString forceOutput field, similar to
setForceOutput(String[]). |
UniversalJointObject |
setForceOutput(SFStringObject newValue)
Assign single SFString object value to MFString forceOutput field, similar to
setForceOutput(String[]). |
UniversalJointObject |
setForceOutput(java.lang.String newValue)
Assign singleton String value to MFString forceOutput field, similar to
setForceOutput(String[]). |
UniversalJointObject |
setForceOutput(java.lang.String[] newValue)
Assign String enumeration array (""ALL""|""NONE"") ['"ALL"'|'"NONE"'|'"etc."'] to inputOutput MFString field named forceOutput.
|
UniversalJointObject |
setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
UniversalJointObject |
setMetadata(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to metadata field;
WARNING: ProtoInstance must match acceptable node type X3DMetadataObject.
|
UniversalJointObject |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
UniversalJointObject |
setStop1Bounce(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named stop1Bounce.
|
UniversalJointObject |
setStop1Bounce(SFFloatObject newValue)
Assign typed object value to SFFloat stop1Bounce field, similar to
setStop1Bounce(float). |
UniversalJointObject |
setStop1ErrorCorrection(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named stop1ErrorCorrection.
|
UniversalJointObject |
setStop1ErrorCorrection(SFFloatObject newValue)
Assign typed object value to SFFloat stop1ErrorCorrection field, similar to
setStop1ErrorCorrection(float). |
UniversalJointObject |
setStop2Bounce(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named stop2Bounce.
|
UniversalJointObject |
setStop2Bounce(SFFloatObject newValue)
Assign typed object value to SFFloat stop2Bounce field, similar to
setStop2Bounce(float). |
UniversalJointObject |
setStop2ErrorCorrection(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named stop2ErrorCorrection.
|
UniversalJointObject |
setStop2ErrorCorrection(SFFloatObject newValue)
Assign typed object value to SFFloat stop2ErrorCorrection field, similar to
setStop2ErrorCorrection(float). |
UniversalJointObject |
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String). |
UniversalJointObject |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
UniversalJointObject |
setUSE(UniversalJointObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String). |
java.lang.String |
toStringClassicVRML(int level)
Recursive method to provide ClassicVRML string serialization.
|
java.lang.String |
toStringVRML97(int level)
Recursive method to provide VRML97 string serialization.
|
java.lang.String |
toStringX3D(int level)
Recursive method to provide X3D string serialization of this model subgraph.
|
java.lang.String |
validate()
Recursive method to validate this element plus all contained nodes and statements.
|
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.util.ArrayList<java.lang.String> FORCEOUTPUT_ALL
public static final java.util.ArrayList<java.lang.String> FORCEOUTPUT_NONE
public static final java.lang.String NAME
public static final java.lang.String COMPONENT
public static final int LEVEL
public static final float[] ANCHORPOINT_DEFAULT_VALUE
public static final float[] AXIS1_DEFAULT_VALUE
public static final float[] AXIS2_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.String> FORCEOUTPUT_DEFAULT_VALUE
public static final float STOP1BOUNCE_DEFAULT_VALUE
public static final float STOP1ERRORCORRECTION_DEFAULT_VALUE
public static final float STOP2BOUNCE_DEFAULT_VALUE
public static final float STOP2ERRORCORRECTION_DEFAULT_VALUE
public static final java.lang.String fromField_ANCHORPOINT
public static final java.lang.String toField_ANCHORPOINT
public static final java.lang.String fromField_AXIS1
public static final java.lang.String toField_AXIS1
public static final java.lang.String fromField_AXIS2
public static final java.lang.String toField_AXIS2
public static final java.lang.String fromField_BODY1
public static final java.lang.String toField_BODY1
public static final java.lang.String fromField_BODY1ANCHORPOINT
public static final java.lang.String fromField_BODY1AXIS
public static final java.lang.String fromField_BODY2
public static final java.lang.String toField_BODY2
public static final java.lang.String fromField_BODY2ANCHORPOINT
public static final java.lang.String fromField_BODY2AXIS
public static final java.lang.String fromField_FORCEOUTPUT
public static final java.lang.String toField_FORCEOUTPUT
public static final java.lang.String fromField_METADATA
public static final java.lang.String toField_METADATA
public static final java.lang.String fromField_STOP1BOUNCE
public static final java.lang.String toField_STOP1BOUNCE
public static final java.lang.String fromField_STOP1ERRORCORRECTION
public static final java.lang.String toField_STOP1ERRORCORRECTION
public static final java.lang.String fromField_STOP2BOUNCE
public static final java.lang.String toField_STOP2BOUNCE
public static final java.lang.String fromField_STOP2ERRORCORRECTION
public static final java.lang.String toField_STOP2ERRORCORRECTION
public UniversalJointObject()
public UniversalJointObject(java.lang.String DEFname)
DEFname - 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 void initialize()
initialize in class X3DConcreteNodepublic float[] getAnchorPoint()
getAnchorPoint in interface UniversalJointpublic UniversalJointObject setAnchorPoint(float[] newValue)
setAnchorPoint in interface UniversalJointnewValue - is new value for the anchorPoint field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setAnchorPoint(SFVec3fObject newValue)
setAnchorPoint(float[]).newValue - is new value for the anchorPoint field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setAnchorPoint(float x, float y, float z)
setAnchorPoint(float[]).x - first componenty - second componentz - third componentUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public float[] getAxis1()
getAxis1 in interface UniversalJointpublic UniversalJointObject setAxis1(float[] newValue)
setAxis1 in interface UniversalJointnewValue - is new value for the axis1 field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setAxis1(SFVec3fObject newValue)
setAxis1(float[]).newValue - is new value for the axis1 field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setAxis1(float x, float y, float z)
setAxis1(float[]).x - first componenty - second componentz - third componentUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public float[] getAxis2()
getAxis2 in interface UniversalJointpublic UniversalJointObject setAxis2(float[] newValue)
setAxis2 in interface UniversalJointnewValue - is new value for the axis2 field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setAxis2(SFVec3fObject newValue)
setAxis2(float[]).newValue - is new value for the axis2 field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setAxis2(float x, float y, float z)
setAxis2(float[]).x - first componenty - second componentz - third componentUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public RigidBody getBody1()
getBody1 in interface UniversalJointgetBody1 in interface X3DRigidJointNodegetBody1ProtoInstance()public UniversalJointObject setBody1(RigidBody newValue)
setBody1 in interface UniversalJointsetBody1 in interface X3DRigidJointNodenewValue - is new value for the body1 field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setBody1(ProtoInstanceObject)public UniversalJointObject clearBody1()
UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public UniversalJointObject setBody1(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode - is the new ProtoInstance node for the body1 fieldUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setBody1(RigidBody)public ProtoInstanceObject getBody1ProtoInstance()
getBody1()public boolean hasBody1()
getBody1(),
getBody1ProtoInstance()public float[] getBody1AnchorPoint()
getBody1AnchorPoint in interface UniversalJointpublic float[] getBody1Axis()
getBody1Axis in interface UniversalJointpublic RigidBody getBody2()
getBody2 in interface UniversalJointgetBody2 in interface X3DRigidJointNodegetBody2ProtoInstance()public UniversalJointObject setBody2(RigidBody newValue)
setBody2 in interface UniversalJointsetBody2 in interface X3DRigidJointNodenewValue - is new value for the body2 field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setBody2(ProtoInstanceObject)public UniversalJointObject clearBody2()
UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public UniversalJointObject setBody2(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode - is the new ProtoInstance node for the body2 fieldUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setBody2(RigidBody)public ProtoInstanceObject getBody2ProtoInstance()
getBody2()public boolean hasBody2()
getBody2(),
getBody2ProtoInstance()public float[] getBody2AnchorPoint()
getBody2AnchorPoint in interface UniversalJointpublic float getBody2Axis()
getBody2Axis in interface UniversalJointpublic java.lang.String[] getForceOutput()
ALL, NONE.getForceOutput in interface UniversalJointgetForceOutput in interface X3DRigidJointNodepublic java.util.ArrayList<java.lang.String> getForceOutputList()
getForceOutput().public UniversalJointObject setForceOutput(java.lang.String[] newValue)
ALL, NONE).
setForceOutput in interface UniversalJointsetForceOutput in interface X3DRigidJointNodenewValue - is new value for the forceOutput field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setForceOutput(MFStringObject newValue)
setForceOutput(String[]).newValue - is new value for the forceOutput field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setForceOutput(SFStringObject newValue)
setForceOutput(String[]).newValue - is new value for the forceOutput field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).MFStringObject.cleanupEnumerationValues(String)public UniversalJointObject setForceOutput(java.lang.String newValue)
setForceOutput(String[]).newValue - is new value for the forceOutput field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).MFStringObject.cleanupEnumerationValues(String)public UniversalJointObject setForceOutput(java.util.ArrayList<java.lang.String> newValue)
setForceOutput(String[]).newValue - is new value for the forceOutput field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject clearForceOutput()
UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public X3DMetadataObject getMetadata()
getMetadata in interface X3DNodegetMetadata in interface UniversalJointgetMetadata in interface X3DRigidJointNodegetMetadataProtoInstance(),
X3D Scene Authoring Hints: Metadata Nodespublic UniversalJointObject setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DNodesetMetadata in interface UniversalJointsetMetadata in interface X3DRigidJointNodesetMetadata in class X3DConcreteNodenewValue - is new value for the metadata field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setMetadata(ProtoInstanceObject),
X3D Scene Authoring Hints: Metadata Nodespublic UniversalJointObject clearMetadata()
UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public UniversalJointObject setMetadata(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode - is the new ProtoInstance node for the metadata fieldUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setMetadata(X3DMetadataObject),
X3D Scene Authoring Hints: Metadata Nodespublic ProtoInstanceObject getMetadataProtoInstance()
getMetadata(),
X3D Scene Authoring Hints: Metadata Nodespublic boolean hasMetadata()
getMetadata(),
getMetadataProtoInstance(),
X3D Scene Authoring Hints: Metadata Nodespublic float getStop1Bounce()
getStop1Bounce in interface UniversalJointpublic UniversalJointObject setStop1Bounce(float newValue)
setStop1Bounce in interface UniversalJointnewValue - is new value for the stop1Bounce field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setStop1Bounce(SFFloatObject newValue)
setStop1Bounce(float).newValue - is new value for the stop1Bounce field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public float getStop1ErrorCorrection()
getStop1ErrorCorrection in interface UniversalJointpublic UniversalJointObject setStop1ErrorCorrection(float newValue)
setStop1ErrorCorrection in interface UniversalJointnewValue - is new value for the stop1ErrorCorrection field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setStop1ErrorCorrection(SFFloatObject newValue)
setStop1ErrorCorrection(float).newValue - is new value for the stop1ErrorCorrection field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public float getStop2Bounce()
getStop2Bounce in interface UniversalJointpublic UniversalJointObject setStop2Bounce(float newValue)
setStop2Bounce in interface UniversalJointnewValue - is new value for the stop2Bounce field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setStop2Bounce(SFFloatObject newValue)
setStop2Bounce(float).newValue - is new value for the stop2Bounce field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public float getStop2ErrorCorrection()
getStop2ErrorCorrection in interface UniversalJointpublic UniversalJointObject setStop2ErrorCorrection(float newValue)
setStop2ErrorCorrection in interface UniversalJointnewValue - is new value for the stop2ErrorCorrection field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setStop2ErrorCorrection(SFFloatObject newValue)
setStop2ErrorCorrection(float).newValue - is new value for the stop2ErrorCorrection field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public final UniversalJointObject setDEF(java.lang.String newValue)
setDEF in interface X3DNodesetDEF in interface UniversalJointsetDEF in interface X3DRigidJointNodesetDEF in class X3DConcreteNodenewValue - is new value for the DEF field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setDEF(SFStringObject newValue)
setDEF(String).newValue - is new value for the DEF field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public final UniversalJointObject 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 resets all other fields to their default values and also releases all child nodes.setUSE in interface X3DNodesetUSE in interface UniversalJointsetUSE in interface X3DRigidJointNodesetUSE in class X3DConcreteNodenewValue - is new value for the USE field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setUSE(SFStringObject newValue)
setUSE(String).newValue - is new value for the USE field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public final UniversalJointObject setCssClass(java.lang.String newValue)
setCssClass in interface X3DNodesetCssClass in interface UniversalJointsetCssClass in interface X3DRigidJointNodesetCssClass in class X3DConcreteNodenewValue - is new value for the class field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setCssClass(SFStringObject newValue)
setCssClass(String).newValue - is new value for the class field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject setIS(ISObject newValue)
setIS in class X3DConcreteNodenewValue - is new value for the description field.UniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public ISObject getIS()
getIS in class X3DConcreteNodepublic UniversalJointObject setUSE(UniversalJointObject DEFnode)
setUSE(String).
setUSE() method resets all other fields to their default values and also releases
all child nodes.
DEFnode - must have a DEF value definedUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public UniversalJointObject addComments(java.lang.String newComment)
addComments in class X3DConcreteElementnewComment - initial valueUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public UniversalJointObject addComments(java.lang.String[] newComments)
addComments in class X3DConcreteElementnewComments - array of commentsUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public UniversalJointObject addComments(CommentsBlock newCommentsBlock)
addComments in class X3DConcreteElementnewCommentsBlock - block of comments to addUniversalJointObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public java.lang.String toStringX3D(int level)
toStringX3D in class X3DConcreteElementlevel - number of levels of indentation for this elementpublic java.lang.String toStringClassicVRML(int level)
toStringClassicVRML in class X3DConcreteElementlevel - number of levels of indentation for this elementpublic java.lang.String toStringVRML97(int level)
toStringVRML97 in class X3DConcreteElementlevel - number of levels of indentation for this elementpublic X3DConcreteNode getNodeByDEF(java.lang.String DEFname)
getNodeByDEF in class X3DConcreteNodeDEFname - DEF name of node to findpublic 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)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)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)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.