Package org.web3d.x3d.jsail.HAnim
Class HAnimMotionObject
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteNode
org.web3d.x3d.jsail.HAnim.HAnimMotionObject
- All Implemented Interfaces:
X3DChildNode,X3DNode,HAnimMotion
public class HAnimMotionObject extends X3DConcreteNode implements HAnimMotion
An HAnimMotion node supports discrete frame-by-frame playback for H-Anim motion data animation.
X3D node tooltip: (X3D version 4.0 draft) [X3DChildNode] An HAnimMotion node supports discrete frame-by-frame playback for H-Anim motion data animation. Design characteristics include integration with HAnim figure data and HAnimJoint nodes, animation control, and playback of raw motion data. *
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
X3D node tooltip: (X3D version 4.0 draft) [X3DChildNode] An HAnimMotion node supports discrete frame-by-frame playback for H-Anim motion data animation. Design characteristics include integration with HAnim figure data and HAnimJoint nodes, animation control, and playback of raw motion data. *
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
-
Field Summary
Fields Modifier and Type Field Description static java.util.ArrayList<java.lang.String>CHANNELS_DEFAULT_VALUEMFString field named channels has default value equal to an empty list.static java.util.ArrayList<java.lang.Boolean>CHANNELSENABLED_DEFAULT_VALUEMFBool field named channelsEnabled has default value equal to an empty list.static java.lang.StringCOMPONENTString constant COMPONENT defines X3D component for the HAnimMotion element: HAnimstatic java.lang.StringcontainerField_DEFAULT_VALUEcontainerField describes typical field relationship of a node to its parent.static java.lang.StringDESCRIPTION_DEFAULT_VALUESFString field named description has default value equal to an empty string.static booleanENABLED_DEFAULT_VALUESFBool field named enabled has default value false (Java syntax) or false (XML syntax).static intENDFRAME_DEFAULT_VALUESFInt32 field named endFrame has default value -1 (Java syntax) or -1 (XML syntax).static intFRAMECOUNT_DEFAULT_VALUESFInt32 field named frameCount has default value 0 (Java syntax) or 0 (XML syntax).static doubleFRAMEDURATION_DEFAULT_VALUESFTime field named frameDuration has default value 0.1 (Java syntax) or 0.1 (XML syntax).static intFRAMEINCREMENT_DEFAULT_VALUESFInt32 field named frameIncrement has default value 1 (Java syntax) or 1 (XML syntax).static intFRAMEINDEX_DEFAULT_VALUESFInt32 field named frameIndex has default value 0 (Java syntax) or 0 (XML syntax).static java.lang.StringfromField_CHANNELSfromField ROUTE name for MFString field named channels.static java.lang.StringfromField_CHANNELSENABLEDfromField ROUTE name for MFBool field named channelsEnabled.static java.lang.StringfromField_CYCLETIMEfromField ROUTE name for SFTime field named cycleTime.static java.lang.StringfromField_DESCRIPTIONfromField ROUTE name for SFString field named description.static java.lang.StringfromField_ELAPSEDTIMEfromField ROUTE name for SFTime field named elapsedTime.static java.lang.StringfromField_ENABLEDfromField ROUTE name for SFBool field named enabled.static java.lang.StringfromField_ENDFRAMEfromField ROUTE name for SFInt32 field named endFrame.static java.lang.StringfromField_FRAMECOUNTfromField ROUTE name for SFInt32 field named frameCount.static java.lang.StringfromField_FRAMEDURATIONfromField ROUTE name for SFTime field named frameDuration.static java.lang.StringfromField_FRAMEINCREMENTfromField ROUTE name for SFInt32 field named frameIncrement.static java.lang.StringfromField_FRAMEINDEXfromField ROUTE name for SFInt32 field named frameIndex.static java.lang.StringfromField_ISfromField ROUTE name for SFNode field named IS.static java.lang.StringfromField_JOINTSfromField ROUTE name for MFString field named joints.static java.lang.StringfromField_LOAfromField ROUTE name for SFInt32 field named loa.static java.lang.StringfromField_LOOPfromField ROUTE name for SFBool field named loop.static java.lang.StringfromField_METADATAfromField ROUTE name for SFNode field named metadata.static java.lang.StringfromField_STARTFRAMEfromField ROUTE name for SFInt32 field named startFrame.static java.lang.StringfromField_VALUESfromField ROUTE name for MFFloat field named values.static ISObjectIS_DEFAULT_VALUESFNode field named IS has default value null (Java syntax) or NULL (XML syntax).static java.util.ArrayList<java.lang.String>JOINTS_DEFAULT_VALUEMFString field named joints has default value equal to an empty list.static intLEVELInteger constant LEVEL provides default X3D HAnim component level for this element: 2static intLOA_DEFAULT_VALUESFInt32 field named loa has default value -1 (Java syntax) or -1 (XML syntax).static booleanLOOP_DEFAULT_VALUESFBool field named loop has default value false (Java syntax) or false (XML syntax).static X3DMetadataObjectMETADATA_DEFAULT_VALUESFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).static java.lang.StringNAMEString constant NAME provides name of this element: HAnimMotion.static intSTARTFRAME_DEFAULT_VALUESFInt32 field named startFrame has default value 0 (Java syntax) or 0 (XML syntax).static java.lang.StringtoField_CHANNELStoField ROUTE name for MFString field named channels.static java.lang.StringtoField_CHANNELSENABLEDtoField ROUTE name for MFBool field named channelsEnabled.static java.lang.StringtoField_DESCRIPTIONtoField ROUTE name for SFString field named description.static java.lang.StringtoField_ENABLEDtoField ROUTE name for SFBool field named enabled.static java.lang.StringtoField_ENDFRAMEtoField ROUTE name for SFInt32 field named endFrame.static java.lang.StringtoField_FRAMECOUNTtoField ROUTE name for SFInt32 field named frameCount.static java.lang.StringtoField_FRAMEDURATIONtoField ROUTE name for SFTime field named frameDuration.static java.lang.StringtoField_FRAMEINCREMENTtoField ROUTE name for SFInt32 field named frameIncrement.static java.lang.StringtoField_FRAMEINDEXtoField ROUTE name for SFInt32 field named frameIndex.static java.lang.StringtoField_JOINTStoField ROUTE name for MFString field named joints.static java.lang.StringtoField_LOAtoField ROUTE name for SFInt32 field named loa.static java.lang.StringtoField_LOOPtoField ROUTE name for SFBool field named loop.static java.lang.StringtoField_METADATAtoField ROUTE name for SFNode field named metadata.static java.lang.StringtoField_STARTFRAMEtoField ROUTE name for SFInt32 field named startFrame.static java.lang.StringtoField_VALUEStoField ROUTE name for MFFloat field named values.static java.util.ArrayList<java.lang.Float>VALUES_DEFAULT_VALUEMFFloat field named values has default value equal to an empty list.Fields inherited from class org.web3d.x3d.jsail.X3DConcreteNode
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE -
Constructor Summary
Constructors Constructor Description HAnimMotionObject()Constructor for HAnimMotionObject to initialize member variables with default values.HAnimMotionObject(java.lang.String DEFlabel)Utility constructor that assigns DEF label after initializing member variables with default values. -
Method Summary
Modifier and Type Method Description HAnimMotionObjectaddChannels(java.lang.String newValue)Add singleton String value to MFString channels field.HAnimMotionObjectaddChannels(SFStringObject newValue)Add singleton SFStringObject value to MFString channels field.HAnimMotionObjectaddChannelsEnabled(boolean newValue)Add singleton boolean value to MFBool channelsEnabled field.HAnimMotionObjectaddChannelsEnabled(SFBoolObject newValue)Add singleton SFBoolObject value to MFBool channelsEnabled field.HAnimMotionObjectaddComments(java.lang.String newComment)Add comment as String to contained commentsList.HAnimMotionObjectaddComments(java.lang.String[] newComments)Add comments as String[] array to contained commentsList.HAnimMotionObjectaddComments(CommentsBlock newCommentsBlock)Add CommentsBlock to contained commentsList.HAnimMotionObjectaddJoints(java.lang.String newValue)Add singleton String value to MFString joints field.HAnimMotionObjectaddJoints(SFStringObject newValue)Add singleton SFStringObject value to MFString joints field.HAnimMotionObjectaddValues(float newValue)Add singleton float value to MFFloat values field.HAnimMotionObjectaddValues(SFFloatObject newValue)Add singleton SFFloatObject value to MFFloat values field.HAnimMotionObjectclearChannels()Utility method to clear MFString value of channels field.HAnimMotionObjectclearChannelsEnabled()Utility method to clear MFBool value of channelsEnabled field.HAnimMotionObjectclearIS()Utility method to clear SFNode value of IS field.HAnimMotionObjectclearJoints()Utility method to clear MFString value of joints field.HAnimMotionObjectclearMetadata()Utility method to clear SFNode value of metadata field.HAnimMotionObjectclearValues()Utility method to clear MFFloat value of values field.X3DConcreteElementfindElementByNameValue(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.X3DConcreteElementfindElementByNameValue(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.X3DConcreteNodefindNodeByDEF(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.StringgetAccessType(java.lang.String fieldName)Indicate accessType corresponding to given fieldName.HAnimHumanoidObjectgetAncestorHAnimHumanoid()Return reference to ancestor HAnimHumanoidObjectjava.lang.String[]getChannels()Provide array of String results from inputOutput MFString field named channels.boolean[]getChannelsEnabled()Provide array of Boolean results from inputOutput MFBool field named channelsEnabled.java.util.ArrayList<java.lang.Boolean>getChannelsEnabledList()Utility method to get ArrayList value of MFBool channelsEnabled field, similar togetChannelsEnabled().java.lang.StringgetChannelsEnabledString()Utility method to get String value of MFBool channelsEnabled field, similar togetChannelsEnabled().java.util.ArrayList<java.lang.String>getChannelsList()Utility method to get ArrayList value of MFString channels field, similar togetChannels().java.lang.StringgetChannelsString()Utility method to get String value of MFString channels field, similar togetChannels().java.lang.StringgetComponent()Defines X3D component for the HAnimMotion element: HAnimintgetComponentLevel()Provides default X3D component level for this element: 2java.lang.StringgetContainerFieldDefault()containerField describes typical field relationship of a node to its parent.java.lang.StringgetCssClass()Provide String value from inputOutput SFString field named class.doublegetCycleTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named cycleTime.java.lang.StringgetDEF()Provide String value from inputOutput SFString field named DEF.java.lang.StringgetDescription()Provide String value from inputOutput SFString field named description.doublegetElapsedTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named elapsedTime.java.lang.StringgetElementName()Provides name of this element: HAnimMotionbooleangetEnabled()Provide boolean value from inputOutput SFBool field named enabled.intgetEndFrame()Provide int value within allowed range of [-1,infinity) from inputOutput SFInt32 field named endFrame.java.lang.StringgetFieldType(java.lang.String fieldName)Indicate type corresponding to given fieldName.intgetFrameCount()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named frameCount.doublegetFrameDuration()Provide double value in seconds within allowed range of (0,infinity) from inputOutput SFTime field named frameDuration.intgetFrameIncrement()Provide int value from inputOutput SFInt32 field named frameIncrement.intgetFrameIndex()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named frameIndex.java.lang.StringgetHAnimVersion()Return version of ancestor HAnimHumanoidObject (if found) or this HAnimMotion nodeISObjectgetIS()Provide ISObject instance (using a properly typed node) from inputOutput SFNode field IS.java.lang.String[]getJoints()Provide array of String results from inputOutput MFString field named joints.java.util.ArrayList<java.lang.String>getJointsList()Utility method to get ArrayList value of MFString joints field, similar togetJoints().java.lang.StringgetJointsString()Utility method to get String value of MFString joints field, similar togetJoints().intgetLoa()Provide int value within allowed range of [-1,4] from inputOutput SFInt32 field named loa.booleangetLoop()Provide boolean value from inputOutput SFBool field named loop.X3DMetadataObjectgetMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.intgetStartFrame()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named startFrame.java.lang.StringgetUSE()Provide String value from inputOutput SFString field named USE.float[]getValues()Provide array of Float results from inputOutput MFFloat field named values.java.util.ArrayList<java.lang.Float>getValuesList()Utility method to get ArrayList value of MFFloat values field, similar togetValues().java.lang.StringgetValuesString()Utility method to get String value of MFFloat values field, similar togetValues().booleanhasAncestorHAnimHumanoid()Return whether ancestor HAnimHumanoidObject is availablebooleanhasElementByNameValue(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.booleanhasIS()Indicate whether an object is available for inputOutput SFNode field IS.booleanhasMetadata()Indicate whether an object is available for inputOutput SFNode field metadata.booleanhasNodeByDEF(java.lang.String DEFvalue)Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.voidinitialize()Initialize all member variables to default values.HAnimMotionObjectsetChannels(java.lang.String newValue)Assign singleton String value to MFString channels field, similar tosetChannels(String[]).HAnimMotionObjectsetChannels(java.lang.String[] newValue)Accessor method to assign String array to inputOutput MFString field named channels.HAnimMotionObjectsetChannels(java.util.ArrayList<java.lang.String> newValue)Assign ArrayList value of MFString channels field, similar tosetChannels(String[]).HAnimMotionObjectsetChannels(MFStringObject newValue)Assign typed object value to MFString channels field, similar tosetChannels(String[]).HAnimMotionObjectsetChannels(SFStringObject newValue)Assign single SFString object value to MFString channels field, similar tosetChannels(String[]).HAnimMotionObjectsetChannelsEnabled(boolean[] newValue)Accessor method to assign Boolean array to inputOutput MFBool field named channelsEnabled.HAnimMotionObjectsetChannelsEnabled(java.util.ArrayList<java.lang.Boolean> newValue)Assign ArrayList value of MFBool channelsEnabled field, similar tosetChannelsEnabled(boolean[]).HAnimMotionObjectsetChannelsEnabled(MFBoolObject newValue)Assign typed object value to MFBool channelsEnabled field, similar tosetChannelsEnabled(boolean[]).HAnimMotionObjectsetCssClass(java.lang.String newValue)Accessor method to assign String value to inputOutput SFString field named class.HAnimMotionObjectsetCssClass(SFStringObject newValue)Assign typed object value to SFString cssClass field, similar tosetCssClass(String).HAnimMotionObjectsetDEF(java.lang.String newValue)Accessor method to assign String value to inputOutput SFString field named DEF.HAnimMotionObjectsetDEF(SFStringObject newValue)Assign typed object value to SFString DEF field, similar tosetDEF(String).HAnimMotionObjectsetDescription(java.lang.String newValue)Accessor method to assign String value to inputOutput SFString field named description.HAnimMotionObjectsetDescription(SFStringObject newValue)Assign typed object value to SFString description field, similar tosetDescription(String).HAnimMotionObjectsetEnabled(boolean newValue)Accessor method to assign boolean value to inputOutput SFBool field named enabled.HAnimMotionObjectsetEnabled(SFBoolObject newValue)Assign typed object value to SFBool enabled field, similar tosetEnabled(boolean).HAnimMotionObjectsetEndFrame(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named endFrame.HAnimMotionObjectsetEndFrame(SFInt32Object newValue)Assign typed object value to SFInt32 endFrame field, similar tosetEndFrame(int).HAnimMotionObjectsetFrameCount(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named frameCount.HAnimMotionObjectsetFrameCount(SFInt32Object newValue)Assign typed object value to SFInt32 frameCount field, similar tosetFrameCount(int).HAnimMotionObjectsetFrameDuration(double newValue)Accessor method to assign double value in seconds to inputOutput SFTime field named frameDuration.HAnimMotionObjectsetFrameDuration(SFTimeObject newValue)Assign typed object value to SFTime frameDuration field, similar tosetFrameDuration(double).HAnimMotionObjectsetFrameIncrement(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named frameIncrement.HAnimMotionObjectsetFrameIncrement(SFInt32Object newValue)Assign typed object value to SFInt32 frameIncrement field, similar tosetFrameIncrement(int).HAnimMotionObjectsetFrameIndex(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named frameIndex.HAnimMotionObjectsetFrameIndex(SFInt32Object newValue)Assign typed object value to SFInt32 frameIndex field, similar tosetFrameIndex(int).HAnimMotionObjectsetIS(ISObject newValue)Accessor method to assign ISObject instance (using a properly typed node) to inputOutput SFNode field IS.HAnimMotionObjectsetJoints(java.lang.String newValue)Assign singleton String value to MFString joints field, similar tosetJoints(String[]).HAnimMotionObjectsetJoints(java.lang.String[] newValue)Accessor method to assign String array to inputOutput MFString field named joints.HAnimMotionObjectsetJoints(java.util.ArrayList<java.lang.String> newValue)Assign ArrayList value of MFString joints field, similar tosetJoints(String[]).HAnimMotionObjectsetJoints(MFStringObject newValue)Assign typed object value to MFString joints field, similar tosetJoints(String[]).HAnimMotionObjectsetJoints(SFStringObject newValue)Assign single SFString object value to MFString joints field, similar tosetJoints(String[]).HAnimMotionObjectsetLoa(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named loa.HAnimMotionObjectsetLoa(SFInt32Object newValue)Assign typed object value to SFInt32 loa field, similar tosetLoa(int).HAnimMotionObjectsetLoop(boolean newValue)Accessor method to assign boolean value to inputOutput SFBool field named loop.HAnimMotionObjectsetLoop(SFBoolObject newValue)Assign typed object value to SFBool loop field, similar tosetLoop(boolean).HAnimMotionObjectsetMetadata(ProtoInstanceObject newValue)Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.HAnimMotionObjectsetMetadata(X3DMetadataObject newValue)Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.HAnimMotionObjectsetStartFrame(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named startFrame.HAnimMotionObjectsetStartFrame(SFInt32Object newValue)Assign typed object value to SFInt32 startFrame field, similar tosetStartFrame(int).HAnimMotionObjectsetUSE(java.lang.String newValue)Accessor method to assign String value to inputOutput SFString field named USE.HAnimMotionObjectsetUSE(SFStringObject newValue)Assign typed object value to SFString USE field, similar tosetUSE(String).HAnimMotionObjectsetUSE(HAnimMotionObject DEFnode)Assign a USE reference to another DEF node of same node type, similar tosetUSE(String).HAnimMotionObjectsetValues(double[] newArray)Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetValues(float[]).HAnimMotionObjectsetValues(float[] newValue)Accessor method to assign Float array to inputOutput MFFloat field named values.HAnimMotionObjectsetValues(int[] newValue)Assign floating-point array value of MFFloat values field, similar tosetValues(float[]).HAnimMotionObjectsetValues(java.util.ArrayList<java.lang.Float> newValue)Assign ArrayList value of MFFloat values field, similar tosetValues(float[]).HAnimMotionObjectsetValues(MFFloatObject newValue)Assign typed object value to MFFloat values field, similar tosetValues(float[]).java.lang.StringtoStringClassicVRML(int indentLevel)Recursive method to provide ClassicVRML string serialization.java.lang.StringtoStringVRML97(int indentLevel)Recursive method to provide VRML97 string serialization.java.lang.StringtoStringX3D(int indentLevel)Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.java.lang.Stringvalidate()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.Methods inherited from class org.web3d.x3d.jsail.X3DConcreteNode
getContainerFieldAlternateValues, getContainerFieldOverride, isNode, isStatement, isUSE, resetContainerFieldOverride, setConcreteCssClass, setConcreteDEF, setConcreteUSE, setContainerFieldOverrideMethods inherited from class org.web3d.x3d.jsail.X3DConcreteElement
clearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, hasParentObject, isValid, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3D
-
Field Details
-
NAME
public static final java.lang.String NAMEString constant NAME provides name of this element: HAnimMotion.- See Also:
- Constant Field Values
-
COMPONENT
public static final java.lang.String COMPONENTString constant COMPONENT defines X3D component for the HAnimMotion element: HAnim- See Also:
- Constant Field Values
-
LEVEL
public static final int LEVELInteger constant LEVEL provides default X3D HAnim component level for this element: 2- See Also:
- Constant Field Values
-
CHANNELS_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.String> CHANNELS_DEFAULT_VALUEMFString field named channels has default value equal to an empty list. -
CHANNELSENABLED_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.Boolean> CHANNELSENABLED_DEFAULT_VALUEMFBool field named channelsEnabled has default value equal to an empty list. -
DESCRIPTION_DEFAULT_VALUE
public static final java.lang.String DESCRIPTION_DEFAULT_VALUESFString field named description has default value equal to an empty string.- See Also:
- Constant Field Values
-
ENABLED_DEFAULT_VALUE
public static final boolean ENABLED_DEFAULT_VALUESFBool field named enabled has default value false (Java syntax) or false (XML syntax).- See Also:
- Constant Field Values
-
ENDFRAME_DEFAULT_VALUE
public static final int ENDFRAME_DEFAULT_VALUESFInt32 field named endFrame has default value -1 (Java syntax) or -1 (XML syntax).- See Also:
- Constant Field Values
-
FRAMECOUNT_DEFAULT_VALUE
public static final int FRAMECOUNT_DEFAULT_VALUESFInt32 field named frameCount has default value 0 (Java syntax) or 0 (XML syntax).- See Also:
- Constant Field Values
-
FRAMEDURATION_DEFAULT_VALUE
public static final double FRAMEDURATION_DEFAULT_VALUESFTime field named frameDuration has default value 0.1 (Java syntax) or 0.1 (XML syntax).- See Also:
- Constant Field Values
-
FRAMEINCREMENT_DEFAULT_VALUE
public static final int FRAMEINCREMENT_DEFAULT_VALUESFInt32 field named frameIncrement has default value 1 (Java syntax) or 1 (XML syntax).- See Also:
- Constant Field Values
-
FRAMEINDEX_DEFAULT_VALUE
public static final int FRAMEINDEX_DEFAULT_VALUESFInt32 field named frameIndex has default value 0 (Java syntax) or 0 (XML syntax).- See Also:
- Constant Field Values
-
IS_DEFAULT_VALUE
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax). -
JOINTS_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.String> JOINTS_DEFAULT_VALUEMFString field named joints has default value equal to an empty list. -
LOA_DEFAULT_VALUE
public static final int LOA_DEFAULT_VALUESFInt32 field named loa has default value -1 (Java syntax) or -1 (XML syntax).- See Also:
- Constant Field Values
-
LOOP_DEFAULT_VALUE
public static final boolean LOOP_DEFAULT_VALUESFBool field named loop has default value false (Java syntax) or false (XML syntax).- See Also:
- Constant Field Values
-
METADATA_DEFAULT_VALUE
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax). -
STARTFRAME_DEFAULT_VALUE
public static final int STARTFRAME_DEFAULT_VALUESFInt32 field named startFrame has default value 0 (Java syntax) or 0 (XML syntax).- See Also:
- Constant Field Values
-
VALUES_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.Float> VALUES_DEFAULT_VALUEMFFloat field named values has default value equal to an empty list. -
containerField_DEFAULT_VALUE
public static final java.lang.String containerField_DEFAULT_VALUEcontainerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes. -
fromField_CHANNELS
public static final java.lang.String fromField_CHANNELSfromField ROUTE name for MFString field named channels.- See Also:
- Constant Field Values
-
toField_CHANNELS
public static final java.lang.String toField_CHANNELStoField ROUTE name for MFString field named channels.- See Also:
- Constant Field Values
-
fromField_CHANNELSENABLED
public static final java.lang.String fromField_CHANNELSENABLEDfromField ROUTE name for MFBool field named channelsEnabled.- See Also:
- Constant Field Values
-
toField_CHANNELSENABLED
public static final java.lang.String toField_CHANNELSENABLEDtoField ROUTE name for MFBool field named channelsEnabled.- See Also:
- Constant Field Values
-
fromField_CYCLETIME
public static final java.lang.String fromField_CYCLETIMEfromField ROUTE name for SFTime field named cycleTime.- See Also:
- Constant Field Values
-
fromField_DESCRIPTION
public static final java.lang.String fromField_DESCRIPTIONfromField ROUTE name for SFString field named description.- See Also:
- Constant Field Values
-
toField_DESCRIPTION
public static final java.lang.String toField_DESCRIPTIONtoField ROUTE name for SFString field named description.- See Also:
- Constant Field Values
-
fromField_ELAPSEDTIME
public static final java.lang.String fromField_ELAPSEDTIMEfromField ROUTE name for SFTime field named elapsedTime.- See Also:
- Constant Field Values
-
fromField_ENABLED
public static final java.lang.String fromField_ENABLEDfromField ROUTE name for SFBool field named enabled.- See Also:
- Constant Field Values
-
toField_ENABLED
public static final java.lang.String toField_ENABLEDtoField ROUTE name for SFBool field named enabled.- See Also:
- Constant Field Values
-
fromField_ENDFRAME
public static final java.lang.String fromField_ENDFRAMEfromField ROUTE name for SFInt32 field named endFrame.- See Also:
- Constant Field Values
-
toField_ENDFRAME
public static final java.lang.String toField_ENDFRAMEtoField ROUTE name for SFInt32 field named endFrame.- See Also:
- Constant Field Values
-
fromField_FRAMECOUNT
public static final java.lang.String fromField_FRAMECOUNTfromField ROUTE name for SFInt32 field named frameCount.- See Also:
- Constant Field Values
-
toField_FRAMECOUNT
public static final java.lang.String toField_FRAMECOUNTtoField ROUTE name for SFInt32 field named frameCount.- See Also:
- Constant Field Values
-
fromField_FRAMEDURATION
public static final java.lang.String fromField_FRAMEDURATIONfromField ROUTE name for SFTime field named frameDuration.- See Also:
- Constant Field Values
-
toField_FRAMEDURATION
public static final java.lang.String toField_FRAMEDURATIONtoField ROUTE name for SFTime field named frameDuration.- See Also:
- Constant Field Values
-
fromField_FRAMEINCREMENT
public static final java.lang.String fromField_FRAMEINCREMENTfromField ROUTE name for SFInt32 field named frameIncrement.- See Also:
- Constant Field Values
-
toField_FRAMEINCREMENT
public static final java.lang.String toField_FRAMEINCREMENTtoField ROUTE name for SFInt32 field named frameIncrement.- See Also:
- Constant Field Values
-
fromField_FRAMEINDEX
public static final java.lang.String fromField_FRAMEINDEXfromField ROUTE name for SFInt32 field named frameIndex.- See Also:
- Constant Field Values
-
toField_FRAMEINDEX
public static final java.lang.String toField_FRAMEINDEXtoField ROUTE name for SFInt32 field named frameIndex.- See Also:
- Constant Field Values
-
fromField_IS
public static final java.lang.String fromField_ISfromField ROUTE name for SFNode field named IS.- See Also:
- Constant Field Values
-
fromField_JOINTS
public static final java.lang.String fromField_JOINTSfromField ROUTE name for MFString field named joints.- See Also:
- Constant Field Values
-
toField_JOINTS
public static final java.lang.String toField_JOINTStoField ROUTE name for MFString field named joints.- See Also:
- Constant Field Values
-
fromField_LOA
public static final java.lang.String fromField_LOAfromField ROUTE name for SFInt32 field named loa.- See Also:
- Constant Field Values
-
toField_LOA
public static final java.lang.String toField_LOAtoField ROUTE name for SFInt32 field named loa.- See Also:
- Constant Field Values
-
fromField_LOOP
public static final java.lang.String fromField_LOOPfromField ROUTE name for SFBool field named loop.- See Also:
- Constant Field Values
-
toField_LOOP
public static final java.lang.String toField_LOOPtoField ROUTE name for SFBool field named loop.- See Also:
- Constant Field Values
-
fromField_METADATA
public static final java.lang.String fromField_METADATAfromField ROUTE name for SFNode field named metadata.- See Also:
- Constant Field Values
-
toField_METADATA
public static final java.lang.String toField_METADATAtoField ROUTE name for SFNode field named metadata.- See Also:
- Constant Field Values
-
fromField_STARTFRAME
public static final java.lang.String fromField_STARTFRAMEfromField ROUTE name for SFInt32 field named startFrame.- See Also:
- Constant Field Values
-
toField_STARTFRAME
public static final java.lang.String toField_STARTFRAMEtoField ROUTE name for SFInt32 field named startFrame.- See Also:
- Constant Field Values
-
fromField_VALUES
public static final java.lang.String fromField_VALUESfromField ROUTE name for MFFloat field named values.- See Also:
- Constant Field Values
-
toField_VALUES
public static final java.lang.String toField_VALUEStoField ROUTE name for MFFloat field named values.- See Also:
- Constant Field Values
-
-
Constructor Details
-
HAnimMotionObject
public HAnimMotionObject()Constructor for HAnimMotionObject to initialize member variables with default values. -
HAnimMotionObject
public HAnimMotionObject(java.lang.String DEFlabel)Utility constructor that assigns DEF label after initializing member variables with default values.- Parameters:
DEFlabel- unique DEF name for this X3D node
-
-
Method Details
-
getElementName
public final java.lang.String getElementName()Provides name of this element: HAnimMotion- Specified by:
getElementNamein classX3DConcreteElement- Returns:
- name of this element
-
getComponent
public final java.lang.String getComponent()Defines X3D component for the HAnimMotion element: HAnim- Specified by:
getComponentin classX3DConcreteElement- Returns:
- X3D component for this element
-
getComponentLevel
public final int getComponentLevel()Provides default X3D component level for this element: 2- Specified by:
getComponentLevelin classX3DConcreteElement- Returns:
- default X3D component level for this element
-
getFieldType
public java.lang.String getFieldType(java.lang.String fieldName)Indicate type corresponding to given fieldName.- Specified by:
getFieldTypein classX3DConcreteElement- Parameters:
fieldName- name of field in this X3D node- Returns:
- X3D type (SFvec3f etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE if not recognized
- See Also:
ConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE
-
getAccessType
public java.lang.String getAccessType(java.lang.String fieldName)Indicate accessType corresponding to given fieldName.- Specified by:
getAccessTypein classX3DConcreteElement- Parameters:
fieldName- name of field in this X3D node- Returns:
- X3D accessType (inputOnly etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE if not recognized
- See Also:
ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE
-
getContainerFieldDefault
public final java.lang.String getContainerFieldDefault()containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.- Specified by:
getContainerFieldDefaultin classX3DConcreteNode- Returns:
- default containerField value
- See Also:
- X3D Scene Authoring Hints: containerField, X3D Unified Object Model (X3DUOM)
-
initialize
public final void initialize()Initialize all member variables to default values.- Overrides:
initializein classX3DConcreteNode
-
getChannels
public java.lang.String[] getChannels()Provide array of String results from inputOutput MFString field named channels.
Tooltip: list of number of channels for transformation, followed by transformation type of each channel of data. Each value is space or comma separated.- Hint: channels are enabled by default, unless otherwise indicated by channelsEnabled field.
- Specified by:
getChannelsin interfaceHAnimMotion- Returns:
- value of channels field
-
getChannelsList
public java.util.ArrayList<java.lang.String> getChannelsList()Utility method to get ArrayList value of MFString channels field, similar togetChannels().- Returns:
- value of channels field
-
getChannelsString
public java.lang.String getChannelsString()Utility method to get String value of MFString channels field, similar togetChannels().- Returns:
- value of channels field
-
setChannels
Accessor method to assign String array to inputOutput MFString field named channels.
Tooltip: list of number of channels for transformation, followed by transformation type of each channel of data. Each value is space or comma separated.- Hint: channels are enabled by default, unless otherwise indicated by channelsEnabled field.
- Specified by:
setChannelsin interfaceHAnimMotion- Parameters:
newValue- is new value for the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannels
Assign typed object value to MFString channels field, similar tosetChannels(String[]).- Parameters:
newValue- is new value for the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannels
Assign single SFString object value to MFString channels field, similar tosetChannels(String[]).- Parameters:
newValue- is new value for the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannels
Assign singleton String value to MFString channels field, similar tosetChannels(String[]).- Parameters:
newValue- is new value for the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannels
Assign ArrayList value of MFString channels field, similar tosetChannels(String[]).- Parameters:
newValue- is new value for the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearChannels
Utility method to clear MFString value of channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addChannels
Add singleton String value to MFString channels field.- Parameters:
newValue- is new value to add to the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
MFStringObject.cleanupEnumerationValues(String)
-
addChannels
Add singleton SFStringObject value to MFString channels field.- Parameters:
newValue- is new value to add to the channels field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
MFStringObject.cleanupEnumerationValues(String)
-
getChannelsEnabled
public boolean[] getChannelsEnabled()Provide array of Boolean results from inputOutput MFBool field named channelsEnabled.
Tooltip: boolean values for each channels indicating whether enabled. *- Specified by:
getChannelsEnabledin interfaceHAnimMotion- Returns:
- value of channelsEnabled field
-
getChannelsEnabledList
public java.util.ArrayList<java.lang.Boolean> getChannelsEnabledList()Utility method to get ArrayList value of MFBool channelsEnabled field, similar togetChannelsEnabled().- Returns:
- value of channelsEnabled field
-
getChannelsEnabledString
public java.lang.String getChannelsEnabledString()Utility method to get String value of MFBool channelsEnabled field, similar togetChannelsEnabled().- Returns:
- value of channelsEnabled field
-
setChannelsEnabled
Accessor method to assign Boolean array to inputOutput MFBool field named channelsEnabled.
Tooltip: boolean values for each channels indicating whether enabled. *- Specified by:
setChannelsEnabledin interfaceHAnimMotion- Parameters:
newValue- is new value for the channelsEnabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannelsEnabled
Assign typed object value to MFBool channelsEnabled field, similar tosetChannelsEnabled(boolean[]).- Parameters:
newValue- is new value for the channelsEnabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannelsEnabled
Assign ArrayList value of MFBool channelsEnabled field, similar tosetChannelsEnabled(boolean[]).- Parameters:
newValue- is new value for the channelsEnabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearChannelsEnabled
Utility method to clear MFBool value of channelsEnabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addChannelsEnabled
Add singleton boolean value to MFBool channelsEnabled field.- Parameters:
newValue- is new value to add to the channelsEnabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addChannelsEnabled
Add singleton SFBoolObject value to MFBool channelsEnabled field.- Parameters:
newValue- is new value to add to the channelsEnabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCycleTime
public double getCycleTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named cycleTime.
Tooltip: cycleTime sends a time event at initial starting time and at beginning of each new cycle.- Hint: this event is useful for synchronization with other time-based animation objects.
- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
- Specified by:
getCycleTimein interfaceHAnimMotion- Returns:
- value of cycleTime field
-
getDescription
public java.lang.String getDescription()Provide String value from inputOutput SFString field named description.
Tooltip: Author-provided prose that describes intended purpose of this node.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
- Specified by:
getDescriptionin interfaceHAnimMotion- Returns:
- value of description field
-
setDescription
Accessor method to assign String value to inputOutput SFString field named description.
Tooltip: Author-provided prose that describes intended purpose of this node.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
- Specified by:
setDescriptionin interfaceHAnimMotion- Parameters:
newValue- is new value for the description field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setDescription
Assign typed object value to SFString description field, similar tosetDescription(String).- Parameters:
newValue- is new value for the description field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getElapsedTime
public double getElapsedTime()Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named elapsedTime.
Tooltip: [0,+infinity) elapsedTime is computed elapsed time since the Motion object was activated and running, counting all traversed frames (as if frameIndex equaled 1) and multiplied by frameDuration, cumulative in seconds.- Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
- Hint: elapsedTime is a nonnegative SFTime duration interval, not an absolute clock time.
- Specified by:
getElapsedTimein interfaceHAnimMotion- Returns:
- value of elapsedTime field
-
getEnabled
public boolean getEnabled()Provide boolean value from inputOutput SFBool field named enabled.
Tooltip: Enables/disables node operation. *- Specified by:
getEnabledin interfaceHAnimMotion- Returns:
- value of enabled field
-
setEnabled
Accessor method to assign boolean value to inputOutput SFBool field named enabled.
Tooltip: Enables/disables node operation. *- Specified by:
setEnabledin interfaceHAnimMotion- Parameters:
newValue- is new value for the enabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setEnabled
Assign typed object value to SFBool enabled field, similar tosetEnabled(boolean).- Parameters:
newValue- is new value for the enabled field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getEndFrame
public int getEndFrame()Provide int value within allowed range of [-1,infinity) from inputOutput SFInt32 field named endFrame.- Specified by:
getEndFramein interfaceHAnimMotion- Returns:
- value of endFrame field
-
setEndFrame
Accessor method to assign int value to inputOutput SFInt32 field named endFrame.- Specified by:
setEndFramein interfaceHAnimMotion- Parameters:
newValue- is new value for the endFrame field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setEndFrame
Assign typed object value to SFInt32 endFrame field, similar tosetEndFrame(int).- Parameters:
newValue- is new value for the endFrame field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getFrameCount
public int getFrameCount()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named frameCount.
Tooltip: [0,+infinity) frameCount indicates the number of frames present in the animation, equaling the number of sets of channel data present in the values array. *- Specified by:
getFrameCountin interfaceHAnimMotion- Returns:
- value of frameCount field
-
setFrameCount
Accessor method to assign int value to inputOutput SFInt32 field named frameCount.
Tooltip: [0,+infinity) frameCount indicates the number of frames present in the animation, equaling the number of sets of channel data present in the values array. *- Specified by:
setFrameCountin interfaceHAnimMotion- Parameters:
newValue- is new value for the frameCount field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setFrameCount
Assign typed object value to SFInt32 frameCount field, similar tosetFrameCount(int).- Parameters:
newValue- is new value for the frameCount field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getFrameDuration
public double getFrameDuration()Provide double value in seconds within allowed range of (0,infinity) from inputOutput SFTime field named frameDuration.
Tooltip: (0,+infinity) frameDuration specifies the duration of each frame in seconds. *- Specified by:
getFrameDurationin interfaceHAnimMotion- Returns:
- value of frameDuration field
-
setFrameDuration
Accessor method to assign double value in seconds to inputOutput SFTime field named frameDuration.
Tooltip: (0,+infinity) frameDuration specifies the duration of each frame in seconds. *- Specified by:
setFrameDurationin interfaceHAnimMotion- Parameters:
newValue- is new value for the frameDuration field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setFrameDuration
Assign typed object value to SFTime frameDuration field, similar tosetFrameDuration(double).- Parameters:
newValue- is new value for the frameDuration field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getFrameIncrement
public int getFrameIncrement()Provide int value from inputOutput SFInt32 field named frameIncrement.
Tooltip: [-infinity,+infinity) frameIncrement field controls whether playback direction is forwards or backwards, and also whether frames are skipped (e.g. subsampled replay). For a single animation step, the next frameIndex value equals (frameIndex + frameIncrement) modulo frameCount.- Hint: note that setting frameIncrement to 0 prevents automatic advancement of frameIndex and pauses animation of HAnimMotion node.
- Specified by:
getFrameIncrementin interfaceHAnimMotion- Returns:
- value of frameIncrement field
-
setFrameIncrement
Accessor method to assign int value to inputOutput SFInt32 field named frameIncrement.
Tooltip: [-infinity,+infinity) frameIncrement field controls whether playback direction is forwards or backwards, and also whether frames are skipped (e.g. subsampled replay). For a single animation step, the next frameIndex value equals (frameIndex + frameIncrement) modulo frameCount.- Hint: note that setting frameIncrement to 0 prevents automatic advancement of frameIndex and pauses animation of HAnimMotion node.
- Specified by:
setFrameIncrementin interfaceHAnimMotion- Parameters:
newValue- is new value for the frameIncrement field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setFrameIncrement
Assign typed object value to SFInt32 frameIncrement field, similar tosetFrameIncrement(int).- Parameters:
newValue- is new value for the frameIncrement field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getFrameIndex
public int getFrameIndex()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named frameIndex.
Tooltip: [0,+infinity) frameIndex indicates index of current frame. Note that frameIndex can be modified whether the Motion node is enabled or not, and becomes effective when the next animation cycle occurs. Thus the frameIndex value indicates the frame currently (or next) being processed.- Hint: frameIndex starts at 0 and is no greater than (frameCount - 1). Values less than 0 are reset as 0. Values greater or equal to frameCount are stored as (frameCount - 1). Thus the value of frameIndex shall be greater than or equal to zero, and less than frameCount.
- Specified by:
getFrameIndexin interfaceHAnimMotion- Returns:
- value of frameIndex field
-
setFrameIndex
Accessor method to assign int value to inputOutput SFInt32 field named frameIndex.
Tooltip: [0,+infinity) frameIndex indicates index of current frame. Note that frameIndex can be modified whether the Motion node is enabled or not, and becomes effective when the next animation cycle occurs. Thus the frameIndex value indicates the frame currently (or next) being processed.- Hint: frameIndex starts at 0 and is no greater than (frameCount - 1). Values less than 0 are reset as 0. Values greater or equal to frameCount are stored as (frameCount - 1). Thus the value of frameIndex shall be greater than or equal to zero, and less than frameCount.
- Specified by:
setFrameIndexin interfaceHAnimMotion- Parameters:
newValue- is new value for the frameIndex field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setFrameIndex
Assign typed object value to SFInt32 frameIndex field, similar tosetFrameIndex(int).- Parameters:
newValue- is new value for the frameIndex field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getIS
Provide ISObject instance (using a properly typed node) from inputOutput SFNode field IS.- Specified by:
getISin classX3DConcreteNode- Returns:
- value of IS field
- See Also:
- X3D Tooltips: IS, X3D Tooltips: connect
-
setIS
Accessor method to assign ISObject instance (using a properly typed node) to inputOutput SFNode field IS.- Specified by:
setISin classX3DConcreteNode- Parameters:
newValue- is new value for the IS field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
- X3D Tooltips: IS, X3D Tooltips: connect
-
clearIS
Utility method to clear SFNode value of IS field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
hasIS
public boolean hasIS()Indicate whether an object is available for inputOutput SFNode field IS.- Returns:
- whether a concrete statement or CommentsBlock is available.
- See Also:
getIS()
-
getJoints
public java.lang.String[] getJoints()Provide array of String results from inputOutput MFString field named joints.
Tooltip: joints field lists names of joints that raw motion data is to be applied to. The number and order of the names in the joints field shall match the number and order of the channels field information, and the number and order of the sets of values in the values field for each frame of the animation.- Hint: values are space or comma separated.
- Hint: The joint name IGNORED shall be used for channel of motion data that is not used for any joint.
- Specified by:
getJointsin interfaceHAnimMotion- Returns:
- value of joints field
-
getJointsList
public java.util.ArrayList<java.lang.String> getJointsList()Utility method to get ArrayList value of MFString joints field, similar togetJoints().- Returns:
- value of joints field
-
getJointsString
public java.lang.String getJointsString()Utility method to get String value of MFString joints field, similar togetJoints().- Returns:
- value of joints field
-
setJoints
Accessor method to assign String array to inputOutput MFString field named joints.
Tooltip: joints field lists names of joints that raw motion data is to be applied to. The number and order of the names in the joints field shall match the number and order of the channels field information, and the number and order of the sets of values in the values field for each frame of the animation.- Hint: values are space or comma separated.
- Hint: The joint name IGNORED shall be used for channel of motion data that is not used for any joint.
- Specified by:
setJointsin interfaceHAnimMotion- Parameters:
newValue- is new value for the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setJoints
Assign typed object value to MFString joints field, similar tosetJoints(String[]).- Parameters:
newValue- is new value for the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setJoints
Assign single SFString object value to MFString joints field, similar tosetJoints(String[]).- Parameters:
newValue- is new value for the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setJoints
Assign singleton String value to MFString joints field, similar tosetJoints(String[]).- Parameters:
newValue- is new value for the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setJoints
Assign ArrayList value of MFString joints field, similar tosetJoints(String[]).- Parameters:
newValue- is new value for the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearJoints
Utility method to clear MFString value of joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addJoints
Add singleton String value to MFString joints field.- Parameters:
newValue- is new value to add to the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
MFStringObject.cleanupEnumerationValues(String)
-
addJoints
Add singleton SFStringObject value to MFString joints field.- Parameters:
newValue- is new value to add to the joints field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
MFStringObject.cleanupEnumerationValues(String)
-
getLoa
public int getLoa()Provide int value within allowed range of [-1,4] from inputOutput SFInt32 field named loa.
Tooltip: [-1,4] Level Of Articulation 0..4 indicates complexity and detail of joints for given humanoid skeletal hierarchy.- Hint: loa value of -1 indicates that no LOA conformance is provided.
- Hint: Humanoid Animation (HAnim) Specification, Part 1 Architecture, 4.8.4 Levels of articulation, https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/concepts.html#LevelsOfArticulation
- Specified by:
getLoain interfaceHAnimMotion- Returns:
- value of loa field
-
setLoa
Accessor method to assign int value to inputOutput SFInt32 field named loa.
Tooltip: [-1,4] Level Of Articulation 0..4 indicates complexity and detail of joints for given humanoid skeletal hierarchy.- Hint: loa value of -1 indicates that no LOA conformance is provided.
- Hint: Humanoid Animation (HAnim) Specification, Part 1 Architecture, 4.8.4 Levels of articulation, https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/concepts.html#LevelsOfArticulation
- Specified by:
setLoain interfaceHAnimMotion- Parameters:
newValue- is new value for the loa field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setLoa
Assign typed object value to SFInt32 loa field, similar tosetLoa(int).- Parameters:
newValue- is new value for the loa field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getLoop
public boolean getLoop()Provide boolean value from inputOutput SFBool field named loop.
Tooltip: Repeat indefinitely when loop=true, repeat only once when loop=false. *- Specified by:
getLoopin interfaceHAnimMotion- Returns:
- value of loop field
-
setLoop
Accessor method to assign boolean value to inputOutput SFBool field named loop.
Tooltip: Repeat indefinitely when loop=true, repeat only once when loop=false. *- Specified by:
setLoopin interfaceHAnimMotion- Parameters:
newValue- is new value for the loop field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setLoop
Assign typed object value to SFBool loop field, similar tosetLoop(boolean).- Parameters:
newValue- is new value for the loop field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.- Specified by:
getMetadatain interfaceHAnimMotion- Specified by:
getMetadatain interfaceX3DChildNode- Specified by:
getMetadatain interfaceX3DNode- Returns:
- value of metadata field
- See Also:
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node. Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata, X3D Scene Authoring Hints: Metadata Nodes
-
setMetadata
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadatain interfaceHAnimMotion- Specified by:
setMetadatain interfaceX3DChildNode- Specified by:
setMetadatain interfaceX3DNode- Specified by:
setMetadatain classX3DConcreteNode- Parameters:
newValue- is new value for the metadata field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node. Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata, X3D Scene Authoring Hints: Metadata Nodes
-
clearMetadata
Utility method to clear SFNode value of metadata field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
setMetadata
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadatain classX3DConcreteNode- Parameters:
newValue- is new value for the metadata field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
setMetadata(X3DMetadataObject)
-
hasMetadata
public boolean hasMetadata()Indicate whether an object is available for inputOutput SFNode field metadata.- Returns:
- whether a properly typed node or ProtoInstance or CommentsBlock is available.
- See Also:
getMetadata(),getMetadataProtoInstance(), X3D Scene Authoring Hints: Metadata Nodes
-
getStartFrame
public int getStartFrame()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named startFrame.- Specified by:
getStartFramein interfaceHAnimMotion- Returns:
- value of startFrame field
-
setStartFrame
Accessor method to assign int value to inputOutput SFInt32 field named startFrame.- Specified by:
setStartFramein interfaceHAnimMotion- Parameters:
newValue- is new value for the startFrame field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setStartFrame
Assign typed object value to SFInt32 startFrame field, similar tosetStartFrame(int).- Parameters:
newValue- is new value for the startFrame field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getValues
public float[] getValues()Provide array of Float results from inputOutput MFFloat field named values.
Tooltip: values field contains all transformation values, ordered first by frame, then by joint, and then by transformation Sets of floats in the values array matching the order listed in joints and channels fields. *- Specified by:
getValuesin interfaceHAnimMotion- Returns:
- value of values field
-
getValuesList
public java.util.ArrayList<java.lang.Float> getValuesList()Utility method to get ArrayList value of MFFloat values field, similar togetValues().- Returns:
- value of values field
-
getValuesString
public java.lang.String getValuesString()Utility method to get String value of MFFloat values field, similar togetValues().- Returns:
- value of values field
-
setValues
Accessor method to assign Float array to inputOutput MFFloat field named values.
Tooltip: values field contains all transformation values, ordered first by frame, then by joint, and then by transformation Sets of floats in the values array matching the order listed in joints and channels fields. *- Specified by:
setValuesin interfaceHAnimMotion- Parameters:
newValue- is new value for the values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setValues
Assign typed object value to MFFloat values field, similar tosetValues(float[]).- Parameters:
newValue- is new value for the values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setValues
Assign ArrayList value of MFFloat values field, similar tosetValues(float[]).- Parameters:
newValue- is new value for the values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
clearValues
Utility method to clear MFFloat value of values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
setValues
Assign floating-point array value of MFFloat values field, similar tosetValues(float[]).- Parameters:
newValue- is new value for the values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addValues
Add singleton float value to MFFloat values field.- Parameters:
newValue- is new value to add to the values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addValues
Add singleton SFFloatObject value to MFFloat values field.- Parameters:
newValue- is new value to add to the values field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setValues
Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetValues(float[]).- Parameters:
newArray- is new value for field- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getDEF
public java.lang.String getDEF()Provide String value from inputOutput SFString field named DEF.- Overrides:
getDEFin classX3DConcreteNode- Returns:
- value of DEF field
- See Also:
- X3D Scene Authoring Hints: Naming Conventions
-
setDEF
Accessor method to assign String value to inputOutput SFString field named DEF.
Note that setting the DEF value clears the USE value.- Specified by:
setDEFin classX3DConcreteNode- Parameters:
newValue- is new value for the DEF field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setDEF
Assign typed object value to SFString DEF field, similar tosetDEF(String).- Parameters:
newValue- is new value for the DEF field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUSE
public java.lang.String getUSE()Provide String value from inputOutput SFString field named USE.- Overrides:
getUSEin classX3DConcreteNode- Returns:
- value of USE field
- See Also:
- X3D Scene Authoring Hints: Naming Conventions
-
setUSE
Accessor method to assign String value to inputOutput SFString field named USE.
Note: eachUSEnode is still an independent object, with theUSEvalue matching theDEFvalue in the preceding object.
Warning: invoking thesetUSE()method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
Warning: no other operations can be performed to modify a USE node other than setting an alternate containerField value.- Specified by:
setUSEin classX3DConcreteNode- Parameters:
newValue- is new value for the USE field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setUSE
Assign typed object value to SFString USE field, similar tosetUSE(String).- Parameters:
newValue- is new value for the USE field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCssClass
public java.lang.String getCssClass()Provide String value from inputOutput SFString field named class.
Tooltip: The class attribute is a space-separated list of classes, reserved for use by CSS cascading stylesheets.- Warning: currently the class attribute is only supported in XML encoding of X3D scenes.
- Hint: W3C Cascading Style Sheets https://www.w3.org/Style/CSS
- Overrides:
getCssClassin classX3DConcreteNode- Returns:
- value of class field
- See Also:
- W3C Cascading Style Sheets
-
setCssClass
Accessor method to assign String value to inputOutput SFString field named class.
Tooltip: The class attribute is a space-separated list of classes, reserved for use by CSS cascading stylesheets.- Warning: currently the class attribute is only supported in XML encoding of X3D scenes.
- Hint: W3C Cascading Style Sheets https://www.w3.org/Style/CSS
- Specified by:
setCssClassin classX3DConcreteNode- Parameters:
newValue- is new value for the class field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
- W3C Cascading Style Sheets
-
setCssClass
Assign typed object value to SFString cssClass field, similar tosetCssClass(String).- Parameters:
newValue- is new value for the class field.- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getAncestorHAnimHumanoid
Return reference to ancestor HAnimHumanoidObject- Returns:
- HAnimHumanoidObject if found, otherwise null
-
hasAncestorHAnimHumanoid
public boolean hasAncestorHAnimHumanoid()Return whether ancestor HAnimHumanoidObject is available- Returns:
- true if ancestor HAnimHumanoidObject found
-
getHAnimVersion
public java.lang.String getHAnimVersion()Return version of ancestor HAnimHumanoidObject (if found) or this HAnimMotion node- Returns:
- ancestor version if found, otherwise 2.0
- See Also:
HAnimHumanoidObject.VERSION_2_0
-
setUSE
Assign a USE reference to another DEF node of same node type, similar tosetUSE(String).
Warning: note that thesetUSE()method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
Warning: no other operations can be performed to modify a USE node other than setting an alternate containerField value.- Parameters:
DEFnode- must have a DEF value defined- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addComments
Add comment as String to contained commentsList.- Specified by:
addCommentsin classX3DConcreteElement- Parameters:
newComment- initial value- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add comments as String[] array to contained commentsList.- Specified by:
addCommentsin classX3DConcreteElement- Parameters:
newComments- array of comments- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add CommentsBlock to contained commentsList.- Specified by:
addCommentsin classX3DConcreteElement- Parameters:
newCommentsBlock- block of comments to add- Returns:
HAnimMotionObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
toStringX3D
public 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.- Specified by:
toStringX3Din classX3DConcreteElement- Parameters:
indentLevel- number of levels of indentation for this element- Returns:
- X3D string
- See Also:
X3DObject.FILE_EXTENSION_X3D,X3DObject.FILE_EXTENSION_XML,X3DObject.toStringXML(),X3DObject.toFileXML(String),X3DObject.toFileX3D(String), X3D XML Encoding, X3D Compressed Binary Encoding: X3D Canonical Form, X3D Canonicalization (C14N) Tool
-
toStringClassicVRML
public java.lang.String toStringClassicVRML(int indentLevel)Recursive method to provide ClassicVRML string serialization.- Specified by:
toStringClassicVRMLin classX3DConcreteElement- Parameters:
indentLevel- number of levels of indentation for this element- Returns:
- ClassicVRML string
- See Also:
X3DObject.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: Grammar
-
toStringVRML97
public java.lang.String toStringVRML97(int indentLevel)Recursive method to provide VRML97 string serialization.- Specified by:
toStringVRML97in classX3DConcreteElement- Parameters:
indentLevel- number of levels of indentation for this element- Returns:
- VRML97 string
- See Also:
X3DObject.FILE_EXTENSION_VRML97, X3D Resources: Virtual Reality Modeling Language (VRML) 97, Virtual Reality Modeling Language (VRML) 97 specification, VRML 97 v2.1 Amendment
-
findElementByNameValue
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. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorSceneObject() to check entire scene graph, or findAncestorX3DObject() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValuein classX3DConcreteElement- Parameters:
nameValue- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found element, null otherwise
- See Also:
findNodeByDEF(String),X3DConcreteElement.hasAncestorSceneObject(),X3DConcreteElement.findAncestorX3DObject()
-
findElementByNameValue
public 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. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorSceneObject() to check entire scene graph, or findAncestorX3DObject() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValuein classX3DConcreteElement- Parameters:
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.)- Returns:
- object reference to found element, null otherwise
- See Also:
findNodeByDEF(String),X3DConcreteElement.hasAncestorSceneObject(),X3DConcreteElement.findAncestorX3DObject()
-
hasElementByNameValue
public 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.- Parameters:
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.)- Returns:
- whether node is found
- See Also:
findElementByNameValue(String, String)
-
findNodeByDEF
Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
Warning: first start with findAncestorSceneObject() to check entire scene graph, or findAncestorX3DObject() to check entire model document.
Warning: more than one element may be found that has the same DEF, this method does not handle that case.- Specified by:
findNodeByDEFin classX3DConcreteElement- Parameters:
DEFvalue- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found node, null otherwise
- See Also:
findElementByNameValue(String),X3DConcreteElement.hasAncestorSceneObject(),X3DConcreteElement.findAncestorX3DObject()
-
hasNodeByDEF
public 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.- Parameters:
DEFvalue- is value of the name field being searched for in this element and child elements(if any)- Returns:
- whether node is found
- See Also:
findNodeByDEF(String)
-
validate
public 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.- Specified by:
validatein classX3DConcreteElement- Returns:
- validation results (if any)
-