Interface PositionInterpolator

All Superinterfaces:
X3DChildNode, X3DInterpolatorNode, X3DNode
All Known Implementing Classes:
PositionInterpolator

public interface PositionInterpolator
extends X3DInterpolatorNode
PositionInterpolator generates a series of 3-tuple SFVec3f values.

X3D node tooltip: [X3DInterpolatorNode] PositionInterpolator generates a series of 3-tuple SFVec3f values. Authors can ROUTE value_changed output events to a Transform node's translation field or another SFVec3f field.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
SAI Java Specification, X3D Abstract Specification: PositionInterpolator, X3D Tooltips: PositionInterpolator, X3D Scene Authoring Hints
  • Method Summary

    Modifier and Type Method Description
    float[] getKey()
    Provide array of float results from inputOutput MFFloat field named key.
    float[] getKeyValue()
    Provide array of 3-tuple float results from inputOutput MFVec3f field named keyValue.
    X3DMetadataObject getMetadata()
    Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    float[] getValue()
    Provide array of 3-tuple float results from outputOnly SFVec3f field named value_changed.
    PositionInterpolator setKey​(float[] newValue)
    Accessor method to assign float array to inputOutput MFFloat field named key.
    PositionInterpolator setKeyValue​(float[] newValue)
    Accessor method to assign 3-tuple float array to inputOutput MFVec3f field named keyValue.
    PositionInterpolator setMetadata​(X3DMetadataObject newValue)
    Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
  • Method Details

    • getKey

      float[] getKey()
      Provide array of float results from inputOutput MFFloat field named key.

      Tooltip: Definition values for linear-interpolation function input intervals, listed in non-decreasing order and corresponding to a value in the keyValue array.
      • Warning: number of keys must match number of keyValues!
      • Warning: values in key array shall be monotonically non-decreasing, meaning that each value is greater than or equal to the preceding value.
      • Hint: typical interval for values in key array is within range of 0 to 1, but larger intervals can be defined with arbitrary bounds.
      Specified by:
      getKey in interface X3DInterpolatorNode
      Returns:
      value of key field
    • setKey

      PositionInterpolator setKey​(float[] newValue)
      Accessor method to assign float array to inputOutput MFFloat field named key.

      Tooltip: Definition values for linear-interpolation function input intervals, listed in non-decreasing order and corresponding to a value in the keyValue array.
      • Warning: number of keys must match number of keyValues!
      • Warning: values in key array shall be monotonically non-decreasing, meaning that each value is greater than or equal to the preceding value.
      • Hint: typical interval for values in key array is within range of 0 to 1, but larger intervals can be defined with arbitrary bounds.
      Specified by:
      setKey in interface X3DInterpolatorNode
      Parameters:
      newValue - is new value for the key field.
      Returns:
      PositionInterpolator - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getKeyValue

      float[] getKeyValue()
      Provide array of 3-tuple float results from inputOutput MFVec3f field named keyValue.

      Tooltip: Output values for linear interpolation, each corresponding to an input-fraction value in the key array.
      Returns:
      value of keyValue field
    • setKeyValue

      PositionInterpolator setKeyValue​(float[] newValue)
      Accessor method to assign 3-tuple float array to inputOutput MFVec3f field named keyValue.

      Tooltip: Output values for linear interpolation, each corresponding to an input-fraction value in the key array.
      Parameters:
      newValue - is new value for the keyValue field.
      Returns:
      PositionInterpolator - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMetadata

      X3DMetadataObject getMetadata()
      Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.

      Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
      Specified by:
      getMetadata in interface X3DChildNode
      Specified by:
      getMetadata in interface X3DInterpolatorNode
      Specified by:
      getMetadata in interface X3DNode
      Returns:
      value of metadata field
      See Also:
      X3D Scene Authoring Hints: Metadata Nodes
    • setMetadata

      PositionInterpolator setMetadata​(X3DMetadataObject newValue)
      Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.

      Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
      Specified by:
      setMetadata in interface X3DChildNode
      Specified by:
      setMetadata in interface X3DInterpolatorNode
      Specified by:
      setMetadata in interface X3DNode
      Parameters:
      newValue - is new value for the metadata field.
      Returns:
      PositionInterpolator - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      See Also:
      X3D Scene Authoring Hints: Metadata Nodes
    • getValue

      float[] getValue()
      Provide array of 3-tuple float results from outputOnly SFVec3f field named value_changed.

      Tooltip: Linearly interpolated output value determined by current key time and corresponding keyValue pair.
      • Hint: X3D players might not send unchanging intermediate values, thus avoiding excessive superfluous events that have no effect.
      • Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
      Returns:
      value of value_changed field