Package org.web3d.x3d.jsail.HAnim
Class HAnimMotion
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteNode
org.web3d.x3d.jsail.HAnim.HAnimMotion
- All Implemented Interfaces:
X3DChildNode
,X3DNode
,HAnimMotion
An HAnimMotion node supports discrete frame-by-frame playback for HAnim motion data animation.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
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.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
HAnimMotion node tooltip: [X3DChildNode] An HAnimMotion node supports discrete frame-by-frame playback for HAnim motion data animation. Design characteristics include integration with HAnim figure data and HAnimJoint nodes, animation control, and playback of raw motion data.
- Hint: HAnim Specification https://www.web3d.org/documents/specifications/19774/V2.0
- Hint: HAnim Specification, clause 6.2 Introduction to Motion objectshttps://www.web3d.org/documents/specifications/19774/V2.0/MotionDataAnimation/MotionNodes.html#IntroductionToMotionNodes
- Hint: HAnim Specification part 2, clause 6.6 Example Usage of Motion object https://www.web3d.org/documents/specifications/19774/V2.0/MotionDataAnimation/MotionNodes.html#MotionObjectExample
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.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
SFString field named channels has default value equal to an empty string.MFBool field named channelsEnabled has default value equal to an empty list.static final String
String constant COMPONENT defines X3D component for the HAnimMotion element: HAnimstatic final String
containerField describes typical field relationship of a node to its parent.static final String
SFString field named description has default value equal to an empty string.static final boolean
SFBool field named enabled has default value true (Java syntax) or true (XML syntax).static final int
SFInt32 field named endFrame has default value 0 (Java syntax) or 0 (XML syntax).static final double
SFTime field named frameDuration has default value 0.1 (Java syntax) or 0.1 (XML syntax).static final int
SFInt32 field named frameIncrement has default value 1 (Java syntax) or 1 (XML syntax).static final int
SFInt32 field named frameIndex has default value 0 (Java syntax) or 0 (XML syntax).static final String
fromField ROUTE name for SFString field named channels.static final String
fromField ROUTE name for MFBool field named channelsEnabled.static final String
fromField ROUTE name for SFTime field named cycleTime.static final String
fromField ROUTE name for SFString field named description.static final String
fromField ROUTE name for SFTime field named elapsedTime.static final String
fromField ROUTE name for SFBool field named enabled.static final String
fromField ROUTE name for SFInt32 field named endFrame.static final String
fromField ROUTE name for SFInt32 field named frameCount.static final String
fromField ROUTE name for SFTime field named frameDuration.static final String
fromField ROUTE name for SFInt32 field named frameIncrement.static final String
fromField ROUTE name for SFInt32 field named frameIndex.static final String
fromField ROUTE name for SFNode field named IS.static final String
fromField ROUTE name for SFString field named joints.static final String
fromField ROUTE name for SFInt32 field named loa.static final String
fromField ROUTE name for SFBool field named loop.static final String
fromField ROUTE name for SFNode field named metadata.static final String
fromField ROUTE name for SFString field named name.static final String
fromField ROUTE name for SFInt32 field named startFrame.static final String
fromField ROUTE name for MFFloat field named values.static final IS
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).static final String
SFString field named joints has default value equal to an empty string.static final int
Integer constant LEVEL provides default X3D HAnim component level for this element: 2static final int
SFInt32 field named loa has default value -1 (Java syntax) or -1 (XML syntax).static final boolean
SFBool field named loop has default value false (Java syntax) or false (XML syntax).static final X3DMetadataObject
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).static final String
String constant NAME provides name of this element: HAnimMotion.static final String
SFString field named name has default value equal to an empty string.static final int
SFInt32 field named startFrame has default value 0 (Java syntax) or 0 (XML syntax).static final String
toField ROUTE name for SFString field named channels.static final String
toField ROUTE name for MFBool field named channelsEnabled.static final String
toField ROUTE name for SFString field named description.static final String
toField ROUTE name for SFBool field named enabled.static final String
toField ROUTE name for SFInt32 field named endFrame.static final String
toField ROUTE name for SFTime field named frameDuration.static final String
toField ROUTE name for SFInt32 field named frameIncrement.static final String
toField ROUTE name for SFInt32 field named frameIndex.static final String
toField ROUTE name for SFString field named joints.static final String
toField ROUTE name for SFInt32 field named loa.static final String
toField ROUTE name for SFBool field named loop.static final String
toField ROUTE name for SFNode field named metadata.static final String
toField ROUTE name for SFString field named name.static final String
toField ROUTE name for SFBool field named next.static final String
toField ROUTE name for SFBool field named previous.static final String
toField ROUTE name for SFInt32 field named startFrame.static final String
toField ROUTE name for MFFloat field named values.MFFloat field named values has default value equal to an empty list.Fields inherited from class org.web3d.x3d.jsail.X3DConcreteNode
containerField_ALLOWED_VALUES, containerFieldOverride, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE
Fields inherited from class org.web3d.x3d.jsail.X3DConcreteElement
CLASS_DEFAULT_VALUE, ID_DEFAULT_VALUE, STYLE_DEFAULT_VALUE, validationResult
-
Constructor Summary
ConstructorDescriptionConstructor for HAnimMotion to initialize member variables with default values.HAnimMotion
(String DEFlabel) Utility constructor that assigns DEF label after initializing member variables with default values. -
Method Summary
Modifier and TypeMethodDescriptionaddChannelsEnabled
(boolean newValue) Add singleton boolean value to MFBool channelsEnabled field.addChannelsEnabled
(SFBool newValue) Add singleton SFBool value to MFBool channelsEnabled field.addComments
(String newComment) Add comment as String to contained commentsList.addComments
(String[] newComments) Add comments as String[] array to contained commentsList.addComments
(CommentsBlock newCommentsBlock) Add CommentsBlock to contained commentsList.addValues
(float newValue) Add singleton float value to MFFloat values field.Add singleton SFFloat value to MFFloat values field.Utility method to clear MFBool value of channelsEnabled field.clearIS()
Utility method to clear SFNode value of IS field.Utility method to clear SFNode value of metadata field.Utility method to clear MFFloat value of values field.findElementByNameValue
(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.findElementByNameValue
(String nameValue, 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.findNodeByDEF
(String DEFvalue) Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.getAccessType
(String fieldName) Indicate accessType corresponding to given fieldName.Return reference to ancestor HAnimHumanoidProvide String value from inputOutput SFString field named channels.boolean[]
Provide array of Boolean results from inputOutput MFBool field named channelsEnabled.Utility method to get ArrayList value of MFBool channelsEnabled field, similar togetChannelsEnabled()
.Utility method to get String value of MFBool channelsEnabled field, similar togetChannelsEnabled()
.final String
Defines X3D component for the HAnimMotion element: HAnimfinal int
Provides default X3D component level for this element: 2final String
containerField describes typical field relationship of a node to its parent.Provide String value from inputOutput SFString field named class.Provide String value from inputOutput SFString field named style.double
Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named cycleTime.getDEF()
Provide String value from inputOutput SFString field named DEF.Provide String value from inputOutput SFString field named description.double
Provide double value in seconds within allowed range of [0,infinity) from outputOnly SFTime field named elapsedTime.final String
Provides name of this element: HAnimMotionboolean
Provide boolean value from inputOutput SFBool field named enabled.int
Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named endFrame.getFieldType
(String fieldName) Indicate type corresponding to given fieldName.int
Provide int value within allowed range of [0,infinity) from outputOnly SFInt32 field named frameCount.double
Provide double value in seconds within allowed range of (0,infinity) from inputOutput SFTime field named frameDuration.int
Provide int value from inputOutput SFInt32 field named frameIncrement.int
Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named frameIndex.Return version of ancestor HAnimHumanoid (if found) or this HAnimMotion nodeProvide String value from inputOutput SFString field named id.getIS()
Provide IS instance (using a properly typed node) from inputOutput SFNode field IS.Provide String value from inputOutput SFString field named joints.int
getLoa()
Provide int value within allowed range of [-1,4] from inputOutput SFInt32 field named loa.boolean
getLoop()
Provide boolean value from inputOutput SFBool field named loop.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.getName()
Provide String value from inputOutput SFString field named name.int
Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named startFrame.getUSE()
Provide String value from inputOutput SFString field named USE.float[]
Provide array of Float results from inputOutput MFFloat field named values.Utility method to get ArrayList value of MFFloat values field, similar togetValues()
.Utility method to get String value of MFFloat values field, similar togetValues()
.boolean
Return whether ancestor HAnimHumanoid is availableboolean
hasElementByNameValue
(String nameValue, 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
hasIS()
Indicate whether an object is available for inputOutput SFNode field IS.boolean
Indicate whether an object is available for inputOutput SFNode field metadata.boolean
hasNodeByDEF
(String DEFvalue) Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.final void
Initialize all member variables to default values.setChannels
(String newValue) Accessor method to assign String value to inputOutput SFString field named channels.setChannels
(SFString newValue) Assign typed object value to SFString channels field, similar tosetChannels(String)
.setChannelsEnabled
(boolean[] newValue) Accessor method to assign Boolean array to inputOutput MFBool field named channelsEnabled.setChannelsEnabled
(ArrayList<Boolean> newValue) Assign ArrayList value of MFBool channelsEnabled field, similar tosetChannelsEnabled(boolean[])
.setChannelsEnabled
(MFBool newValue) Assign typed object value to MFBool channelsEnabled field, similar tosetChannelsEnabled(boolean[])
.final HAnimMotion
setCssClass
(String newValue) Accessor method to assign String value to inputOutput SFString field named class.setCssClass
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.final HAnimMotion
setCssStyle
(String newValue) Accessor method to assign String value to inputOutput SFString field named style.setCssStyle
(SFString newValue) Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.final HAnimMotion
Accessor method to assign String value to inputOutput SFString field named DEF.Assign typed object value to SFString DEF field, similar tosetDEF(String)
.setDescription
(String newValue) Accessor method to assign String value to inputOutput SFString field named description.setDescription
(SFString newValue) Assign typed object value to SFString description field, similar tosetDescription(String)
.setEnabled
(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named enabled.setEnabled
(SFBool newValue) Assign typed object value to SFBool enabled field, similar tosetEnabled(boolean)
.setEndFrame
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named endFrame.setEndFrame
(SFInt32 newValue) Assign typed object value to SFInt32 endFrame field, similar tosetEndFrame(int)
.setFrameDuration
(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named frameDuration.setFrameDuration
(SFTime newValue) Assign typed object value to SFTime frameDuration field, similar tosetFrameDuration(double)
.setFrameIncrement
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named frameIncrement.setFrameIncrement
(SFInt32 newValue) Assign typed object value to SFInt32 frameIncrement field, similar tosetFrameIncrement(int)
.setFrameIndex
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named frameIndex.setFrameIndex
(SFInt32 newValue) Assign typed object value to SFInt32 frameIndex field, similar tosetFrameIndex(int)
.final HAnimMotion
Accessor method to assign String value to inputOutput SFString field named id.Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.Accessor method to assign IS instance (using a properly typed node) to inputOutput SFNode field IS.Accessor method to assign String value to inputOutput SFString field named joints.Assign typed object value to SFString joints field, similar tosetJoints(String)
.setLoa
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named loa.Assign typed object value to SFInt32 loa field, similar tosetLoa(int)
.setLoop
(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named loop.Assign typed object value to SFBool loop field, similar tosetLoop(boolean)
.setMetadata
(ProtoInstance newValue) Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.setMetadata
(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.final HAnimMotion
Accessor method to assign String value to inputOutput SFString field named name.Assign typed object value to SFString name field, similar tosetName(String)
.setNext
(boolean newValue) Accessor method to assign boolean value to inputOnly SFBool field named next.Assign typed object value to SFBool next field, similar tosetNext(boolean)
.setPrevious
(boolean newValue) Accessor method to assign boolean value to inputOnly SFBool field named previous.setPrevious
(SFBool newValue) Assign typed object value to SFBool previous field, similar tosetPrevious(boolean)
.setStartFrame
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named startFrame.setStartFrame
(SFInt32 newValue) Assign typed object value to SFInt32 startFrame field, similar tosetStartFrame(int)
.final HAnimMotion
Accessor method to assign String value to inputOutput SFString field named USE.Assign typed object value to SFString USE field, similar tosetUSE(String)
.setUSE
(HAnimMotion DEFnode) Assign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.setValues
(double[] newArray) Utility method: double-precision set-array accessor for X3D floating-point type, similar tosetValues(float[])
.setValues
(float[] newValue) Accessor method to assign Float array to inputOutput MFFloat field named values.setValues
(int[] newValue) Assign floating-point array value of MFFloat values field, similar tosetValues(float[])
.Assign ArrayList value of MFFloat values field, similar tosetValues(float[])
.Assign typed object value to MFFloat values field, similar tosetValues(float[])
.toStringClassicVRML
(int indentLevel) Recursive method to provide ClassicVRML string serialization.toStringVRML97
(int indentLevel) Recursive method to provide VRML97 string serialization.toStringX3D
(int indentLevel) Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.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.Methods inherited from class org.web3d.x3d.jsail.X3DConcreteNode
getContainerFieldAllowedValues, getContainerFieldOverride, hasDEF, hasNameField, hasUSE, includesNameField, isNode, isStatement, resetContainerFieldOverride, setConcreteDEF, setConcreteUSE, setContainerFieldOverride
Methods inherited from class org.web3d.x3d.jsail.X3DConcreteElement
addComments, clearParent, findAncestorElementByName, findAncestorProtoBody, findAncestorScene, findAncestorX3D, getPackageName, getParent, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorScene, hasAncestorX3D, hasParent, isValid, setConcreteCssClass, setConcreteCssStyle, setConcreteHtmlID, setParent, toStringClassicVRML, toStringVRML97, toStringX3D
-
Field Details
-
NAME
String constant NAME provides name of this element: HAnimMotion.- See Also:
-
COMPONENT
String constant COMPONENT defines X3D component for the HAnimMotion element: HAnim- See Also:
-
LEVEL
public static final int LEVELInteger constant LEVEL provides default X3D HAnim component level for this element: 2- See Also:
-
CHANNELS_DEFAULT_VALUE
SFString field named channels has default value equal to an empty string.- See Also:
-
CHANNELSENABLED_DEFAULT_VALUE
-
DESCRIPTION_DEFAULT_VALUE
SFString field named description has default value equal to an empty string.- See Also:
-
ENABLED_DEFAULT_VALUE
public static final boolean ENABLED_DEFAULT_VALUESFBool field named enabled has default value true (Java syntax) or true (XML syntax).- See Also:
-
ENDFRAME_DEFAULT_VALUE
public static final int ENDFRAME_DEFAULT_VALUESFInt32 field named endFrame has default value 0 (Java syntax) or 0 (XML syntax).- See Also:
-
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:
-
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:
-
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:
-
IS_DEFAULT_VALUE
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax). -
JOINTS_DEFAULT_VALUE
SFString field named joints has default value equal to an empty string.- See Also:
-
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:
-
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:
-
METADATA_DEFAULT_VALUE
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax). -
NAME_DEFAULT_VALUE
SFString field named name has default value equal to an empty string.- See Also:
-
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:
-
VALUES_DEFAULT_VALUE
-
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, this default value is provided for informational purposes only.
containerField_DEFAULT_VALUE = "motions";
containerField_ALLOWED_VALUES = {"motions", "motions" *HAnimHumanoid parent* }; type X3DUOM containerFieldChoicesHAnimMotion- See Also:
-
fromField_CHANNELS
fromField ROUTE name for SFString field named channels.- See Also:
-
toField_CHANNELS
toField ROUTE name for SFString field named channels.- See Also:
-
fromField_CHANNELSENABLED
fromField ROUTE name for MFBool field named channelsEnabled.- See Also:
-
toField_CHANNELSENABLED
toField ROUTE name for MFBool field named channelsEnabled.- See Also:
-
fromField_CYCLETIME
fromField ROUTE name for SFTime field named cycleTime.- See Also:
-
fromField_DESCRIPTION
fromField ROUTE name for SFString field named description.- See Also:
-
toField_DESCRIPTION
toField ROUTE name for SFString field named description.- See Also:
-
fromField_ELAPSEDTIME
fromField ROUTE name for SFTime field named elapsedTime.- See Also:
-
fromField_ENABLED
fromField ROUTE name for SFBool field named enabled.- See Also:
-
toField_ENABLED
toField ROUTE name for SFBool field named enabled.- See Also:
-
fromField_ENDFRAME
fromField ROUTE name for SFInt32 field named endFrame.- See Also:
-
toField_ENDFRAME
toField ROUTE name for SFInt32 field named endFrame.- See Also:
-
fromField_FRAMECOUNT
fromField ROUTE name for SFInt32 field named frameCount.- See Also:
-
fromField_FRAMEDURATION
fromField ROUTE name for SFTime field named frameDuration.- See Also:
-
toField_FRAMEDURATION
toField ROUTE name for SFTime field named frameDuration.- See Also:
-
fromField_FRAMEINCREMENT
fromField ROUTE name for SFInt32 field named frameIncrement.- See Also:
-
toField_FRAMEINCREMENT
toField ROUTE name for SFInt32 field named frameIncrement.- See Also:
-
fromField_FRAMEINDEX
fromField ROUTE name for SFInt32 field named frameIndex.- See Also:
-
toField_FRAMEINDEX
toField ROUTE name for SFInt32 field named frameIndex.- See Also:
-
fromField_IS
-
fromField_JOINTS
fromField ROUTE name for SFString field named joints.- See Also:
-
toField_JOINTS
toField ROUTE name for SFString field named joints.- See Also:
-
fromField_LOA
fromField ROUTE name for SFInt32 field named loa.- See Also:
-
toField_LOA
-
fromField_LOOP
fromField ROUTE name for SFBool field named loop.- See Also:
-
toField_LOOP
-
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.- See Also:
-
toField_METADATA
toField ROUTE name for SFNode field named metadata.- See Also:
-
fromField_NAME
fromField ROUTE name for SFString field named name.- See Also:
-
toField_NAME
-
toField_NEXT
-
toField_PREVIOUS
toField ROUTE name for SFBool field named previous.- See Also:
-
fromField_STARTFRAME
fromField ROUTE name for SFInt32 field named startFrame.- See Also:
-
toField_STARTFRAME
toField ROUTE name for SFInt32 field named startFrame.- See Also:
-
fromField_VALUES
fromField ROUTE name for MFFloat field named values.- See Also:
-
toField_VALUES
toField ROUTE name for MFFloat field named values.- See Also:
-
-
Constructor Details
-
HAnimMotion
public HAnimMotion()Constructor for HAnimMotion to initialize member variables with default values. -
HAnimMotion
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
Provides name of this element: HAnimMotion- Specified by:
getElementName
in classX3DConcreteElement
- Returns:
- name of this element
-
getComponent
Defines X3D component for the HAnimMotion element: HAnim- Specified by:
getComponent
in classX3DConcreteElement
- Returns:
- X3D component for this element
-
getComponentLevel
public final int getComponentLevel()Provides default X3D component level for this element: 2- Specified by:
getComponentLevel
in classX3DConcreteElement
- Returns:
- default X3D component level for this element
-
getFieldType
Indicate type corresponding to given fieldName.- Specified by:
getFieldType
in 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:
-
getAccessType
Indicate accessType corresponding to given fieldName.- Specified by:
getAccessType
in 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:
-
getContainerFieldDefault
containerField describes typical field relationship of a node to its parent. Programmer usage is not ordinarily needed when using this API, since this default value is provided for informational purposes only.- Specified by:
getContainerFieldDefault
in classX3DConcreteNode
- Returns:
- default containerField value
- See Also:
-
initialize
public final void initialize()Initialize all member variables to default values.- Overrides:
initialize
in classX3DConcreteNode
-
getChannels
Provide String value from inputOutput SFString 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:
getChannels
in interfaceHAnimMotion
- Returns:
- value of channels field
-
setChannels
Accessor method to assign String value to inputOutput SFString 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:
setChannels
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the channels field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setChannels
Assign typed object value to SFString channels field, similar tosetChannels(String)
.- Parameters:
newValue
- is new value for the channels field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getChannelsEnabled
public boolean[] getChannelsEnabled()Provide array of Boolean results from inputOutput MFBool field named channelsEnabled.
Tooltip: boolean values for each channel indicating whether enabled. *- Specified by:
getChannelsEnabled
in interfaceHAnimMotion
- Returns:
- value of channelsEnabled field
-
getChannelsEnabledList
Utility method to get ArrayList value of MFBool channelsEnabled field, similar togetChannelsEnabled()
.- Returns:
- value of channelsEnabled field
-
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 channel indicating whether enabled. *- Specified by:
setChannelsEnabled
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the channelsEnabled field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
HAnimMotion
- 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. This method does not initialize withCHANNELSENABLED_DEFAULT_VALUE.- Returns:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addChannelsEnabled
Add singleton SFBool value to MFBool channelsEnabled field.- Parameters:
newValue
- is new value to add to the channelsEnabled field.- Returns:
HAnimMotion
- 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:
getCycleTime
in interfaceHAnimMotion
- Returns:
- value of cycleTime field
-
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:
getDescription
in 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:
setDescription
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the description field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
getElapsedTime
in 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:
getEnabled
in 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:
setEnabled
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the enabled field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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 [0,infinity) from inputOutput SFInt32 field named endFrame.
Tooltip: [0,+infinity) endFrame indicates final index of animated frame. Note that endFrame can precede, equal or follow endFrame. The default endFrame value is reset to (frameCount - 1) whenever frameCount is changed.- Hint: endFrame starts at 0 and is no greater than (frameCount - 1).
- Specified by:
getEndFrame
in interfaceHAnimMotion
- Returns:
- value of endFrame field
-
setEndFrame
Accessor method to assign int value to inputOutput SFInt32 field named endFrame.
Tooltip: [0,+infinity) endFrame indicates final index of animated frame. Note that endFrame can precede, equal or follow endFrame. The default endFrame value is reset to (frameCount - 1) whenever frameCount is changed.- Hint: endFrame starts at 0 and is no greater than (frameCount - 1).
- Specified by:
setEndFrame
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the endFrame field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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 outputOnly SFInt32 field named frameCount.
Tooltip: [0,+infinity) frameCount is computed at run time and indicates the total number of frames present in the animation, equaling the number of sets of channel data rows present in the values array. *- Specified by:
getFrameCount
in interfaceHAnimMotion
- Returns:
- value of frameCount field
-
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:
getFrameDuration
in 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:
setFrameDuration
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the frameDuration field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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 (for example, 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:
getFrameIncrement
in 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 (for example, 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:
setFrameIncrement
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the frameIncrement field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
getFrameIndex
in 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:
setFrameIndex
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the frameIndex field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getIS
Provide IS instance (using a properly typed node) from inputOutput SFNode field IS.- Specified by:
getIS
in classX3DConcreteNode
- Returns:
- value of IS field
- See Also:
-
setIS
Accessor method to assign IS instance (using a properly typed node) to inputOutput SFNode field IS.- Specified by:
setIS
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the IS field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
clearIS
Utility method to clear SFNode value of IS field.- Returns:
HAnimMotion
- 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:
-
getJoints
Provide String value from inputOutput SFString 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:
getJoints
in interfaceHAnimMotion
- Returns:
- value of joints field
-
setJoints
Accessor method to assign String value to inputOutput SFString 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:
setJoints
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the joints field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setJoints
Assign typed object value to SFString joints field, similar tosetJoints(String)
.- Parameters:
newValue
- is new value for the joints field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
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:
getLoa
in 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:
setLoa
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the loa field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
getLoop
in 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:
setLoop
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the loop field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.- Specified by:
getMetadata
in interfaceHAnimMotion
- Specified by:
getMetadata
in interfaceX3DChildNode
- Specified by:
getMetadata
in interfaceX3DNode
- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadata
in interfaceHAnimMotion
- Specified by:
setMetadata
in interfaceX3DChildNode
- Specified by:
setMetadata
in interfaceX3DNode
- Specified by:
setMetadata
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
clearMetadata
Utility method to clear SFNode value of metadata field.- Returns:
HAnimMotion
- 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:
setMetadata
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
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:
-
getName
Provide String value from inputOutput SFString field named name.
Tooltip: Unique name attribute must be defined so that HAnimMotion node can be identified at run time for animation purposes. *- Specified by:
getName
in interfaceHAnimMotion
- Overrides:
getName
in classX3DConcreteNode
- Returns:
- value of name field
-
setName
Accessor method to assign String value to inputOutput SFString field named name.
Tooltip: Unique name attribute must be defined so that HAnimMotion node can be identified at run time for animation purposes. *
@see X3D Scene Authoring Hints: Naming Conventions- Specified by:
setName
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the name field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setName
Assign typed object value to SFString name field, similar tosetName(String)
.- Parameters:
newValue
- is new value for the name field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setNext
Accessor method to assign boolean value to inputOnly SFBool field named next.
Tooltip: Send next output value in values array, using/updating various frame values as appropriate.- Hint: this input event will "wrap around" boundary of frame array, i.e. continue from endFrame next to startFrame if necessary.
- Warning: it is an error to define this transient inputOnly field in an X3D file, instead only use it a destination for ROUTE events.
- Specified by:
setNext
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the next field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setNext
Assign typed object value to SFBool next field, similar tosetNext(boolean)
.- Parameters:
newValue
- is new value for the next field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setPrevious
Accessor method to assign boolean value to inputOnly SFBool field named previous.
Tooltip: Send previous output value in values array, using/updating various frame values as appropriate.- Hint: this input event will "wrap around" boundary of frame array, i.e. continue from startFrame next to endFrame if necessary.
- Warning: it is an error to define this transient inputOnly field in an X3D file, instead only use it a destination for ROUTE events.
- Specified by:
setPrevious
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the previous field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setPrevious
Assign typed object value to SFBool previous field, similar tosetPrevious(boolean)
.- Parameters:
newValue
- is new value for the previous field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getStartFrame
public int getStartFrame()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named startFrame.
Tooltip: [0,+infinity) startFrame indicates initial index of animated frame. Note that startFrame can precede, equal or follow endFrame.- Hint: startFrame starts at 0 and is no greater than (frameCount - 1).
- Specified by:
getStartFrame
in interfaceHAnimMotion
- Returns:
- value of startFrame field
-
setStartFrame
Accessor method to assign int value to inputOutput SFInt32 field named startFrame.
Tooltip: [0,+infinity) startFrame indicates initial index of animated frame. Note that startFrame can precede, equal or follow endFrame.- Hint: startFrame starts at 0 and is no greater than (frameCount - 1).
- Specified by:
setStartFrame
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the startFrame field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
getValues
in interfaceHAnimMotion
- Returns:
- value of values field
-
getValuesList
Utility method to get ArrayList value of MFFloat values field, similar togetValues()
.- Returns:
- value of values field
-
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:
setValues
in interfaceHAnimMotion
- Parameters:
newValue
- is new value for the values field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
HAnimMotion
- 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. This method does not initialize withVALUES_DEFAULT_VALUE.- Returns:
HAnimMotion
- 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:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addValues
Add singleton SFFloat value to MFFloat values field.- Parameters:
newValue
- is new value to add to the values field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getDEF
Provide String value from inputOutput SFString field named DEF.
Tooltip: DEF defines a unique ID name for this node, referenceable by other nodes.- Hint: descriptive DEF names improve clarity and help document a model.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
- Overrides:
getDEF
in classX3DConcreteNode
- Returns:
- value of DEF field
- See Also:
-
setDEF
Accessor method to assign String value to inputOutput SFString field named DEF.
Tooltip: DEF defines a unique ID name for this node, referenceable by other nodes.- Hint: descriptive DEF names improve clarity and help document a model.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
Note that setting the DEF value clears the USE value.- Specified by:
setDEF
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the DEF field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUSE
Provide String value from inputOutput SFString field named USE.
Tooltip: USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).- Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance.
- Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute.
- Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.
- Overrides:
getUSE
in classX3DConcreteNode
- Returns:
- value of USE field
- See Also:
-
setUSE
Accessor method to assign String value to inputOutput SFString field named USE.
Tooltip: USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).- Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance.
- Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute.
- Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.
Note: eachUSE
node is still an independent object, with theUSE
value matching theDEF
value 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:
setUSE
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the USE field.- Returns:
HAnimMotion
- 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:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCssClass
Provide String value from inputOutput SFString field named class.- Overrides:
getCssClass
in classX3DConcreteElement
- Returns:
- value of class field
- See Also:
-
setCssClass
Accessor method to assign String value to inputOutput SFString field named class.- Specified by:
setCssClass
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the class field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setCssClass
Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.- Parameters:
newValue
- is new value for the class field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getHtmlID
Provide String value from inputOutput SFString field named id.- Overrides:
getHtmlID
in classX3DConcreteElement
- Returns:
- value of id field
- See Also:
-
setHtmlID
Accessor method to assign String value to inputOutput SFString field named id.- Specified by:
setHtmlID
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the id field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setHtmlID
Assign typed object value to SFString HtmlID field, similar tosetHtmlID(String)
.- Parameters:
newValue
- is new value for the id field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCssStyle
Provide String value from inputOutput SFString field named style.- Overrides:
getCssStyle
in classX3DConcreteElement
- Returns:
- value of style field
- See Also:
-
setCssStyle
Accessor method to assign String value to inputOutput SFString field named style.- Specified by:
setCssStyle
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the style field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
setCssStyle
Assign typed object value to SFString cssClass field, similar tosetCssStyle(String)
.- Parameters:
newValue
- is new value for the style field.- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getAncestorHAnimHumanoid
Return reference to ancestor HAnimHumanoid- Returns:
- HAnimHumanoid if found, otherwise null
-
hasAncestorHAnimHumanoid
public boolean hasAncestorHAnimHumanoid()Return whether ancestor HAnimHumanoid is available- Returns:
- true if ancestor HAnimHumanoid found
-
getHAnimVersion
Return version of ancestor HAnimHumanoid (if found) or this HAnimMotion node- Returns:
- ancestor version if found, otherwise 2.0
- See Also:
-
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:
HAnimMotion
- 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:
addComments
in classX3DConcreteElement
- Parameters:
newComment
- initial value- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
addComments
Add comments as String[] array to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComments
- array of comments- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add CommentsBlock to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newCommentsBlock
- block of comments to add- Returns:
HAnimMotion
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
toStringX3D
Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.- Specified by:
toStringX3D
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- X3D string
- See Also:
-
toStringClassicVRML
Recursive method to provide ClassicVRML string serialization.- Specified by:
toStringClassicVRML
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- ClassicVRML string
- See Also:
-
toStringVRML97
Recursive method to provide VRML97 string serialization.- Specified by:
toStringVRML97
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- VRML97 string
- See Also:
-
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 findAncestorScene() to check entire scene graph, or findAncestorX3D() 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:
findElementByNameValue
in 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:
-
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 findAncestorScene() to check entire scene graph, or findAncestorX3D() 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:
findElementByNameValue
in 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:
-
hasElementByNameValue
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:
-
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 findAncestorScene() to check entire scene graph, or findAncestorX3D() 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:
findNodeByDEF
in 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:
-
hasNodeByDEF
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:
-
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. TODO document specific validation methods.- Specified by:
validate
in classX3DConcreteElement
- Returns:
- validation results (if any)
-