com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class Curve

  • All Implemented Interfaces:
    Iterable<KeyFrame>


    public class Curve
    extends A3DObject
    implements Iterable<KeyFrame>
    A curve is composed by several key-frames, it describes the transformation of a sampled value over time, so it's a 2D curve.
    • Constructor Detail

      • Curve

        public Curve()
        Initializes a new instance of the Curve class.
      • Curve

        public Curve(String name)
        Initializes a new instance of the Curve class.
        Parameters:
        name - Name
    • Method Detail

      • getCurveMapping

        public CurveMapping getCurveMapping()
        Gets the curve mapping which owns this curve
      • getKeyFrames

        public 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 A synonym of createKeyFrame(double)
        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 A synonym of createKeyFrame(double)
        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.