Package com.aspose.threed
Class Curve
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Curve
-
-
Method Summary
Modifier and Type Method Description void
add(double time, float value)
Create a new key frame with specified valuevoid
add(double time, float value, Interpolation interpolation)
Create a new key frame with specified valueCurveMapping
getCurveMapping()
Gets the curve mapping which owns this curvejava.util.List<KeyFrame>
getKeyFrames()
Gets the key frames of this curve.Extrapolation
getPostBehavior()
Gets the post behavior indicates what the sampled value should be after the last key frame.Extrapolation
getPreBehavior()
Gets the pre behavior indicates what the sampled value should be before the first key.java.util.Iterator<KeyFrame>
iterator()
Gets the enumerator to traverse all key frames.void
reset()
Removes all key frames and reset the post/pre behaviors.-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Method Detail
-
getCurveMapping
public CurveMapping getCurveMapping()
Gets the curve mapping 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 positioninterpolation
- The interpolation type of this key frame
-
reset
public void reset()
Removes all key frames and reset the post/pre behaviors.
-
-