Class KeyframeSequence

  • All Implemented Interfaces:
    INamedObject, java.lang.Iterable<KeyFrame>

    public class KeyframeSequence
    extends A3DObject
    implements java.lang.Iterable<KeyFrame>
    The sequence of key-frames, it describes the transformation of a sampled value over time.
    • Constructor Detail

      • KeyframeSequence

        public KeyframeSequence​(java.lang.String name)
        Initializes a new instance of the KeyframeSequence class.
        Parameters:
        name - Name
      • KeyframeSequence

        public KeyframeSequence()
        Initializes a new instance of the KeyframeSequence class.
    • Method Detail

      • getBindPoint

        public BindPoint getBindPoint()
        Gets the property bind point which owns this curve
      • getKeyFrames

        public java.util.List<KeyFrame> getKeyFrames()
        Gets the key frames of this curve.
      • getPostBehavior

        public Extrapolation getPostBehavior()
        Gets the post behavior indicates what the sampled value should be after the last key frame.
      • getPreBehavior

        public Extrapolation getPreBehavior()
        Gets the pre behavior indicates what the sampled value should be before the first key.
      • add

        public void add​(double time,
                        float value)
        Create a new key frame with specified value
        Parameters:
        time - Time position(measured in seconds)
        value - The value at this time position
      • add

        public void add​(double time,
                        float value,
                        Interpolation interpolation)
        Create a new key frame with specified value
        Parameters:
        time - Time position(measured in seconds)
        value - The value at this time position
        interpolation - The interpolation type of this key frame
      • reset

        public void reset()
        Removes all key frames and reset the post/pre behaviors.
      • iterator

        public java.util.Iterator<KeyFrame> iterator()
        Gets the enumerator to traverse all key frames.
        Specified by:
        iterator in interface java.lang.Iterable<KeyFrame>