Package com.aspose.threed
Class KeyframeSequence
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.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.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description KeyframeSequence()
Initializes a new instance of theKeyframeSequence
class.KeyframeSequence(java.lang.String name)
Initializes a new instance of theKeyframeSequence
class.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 valueBindPoint
getBindPoint()
Gets the property bind point 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, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
KeyframeSequence
public KeyframeSequence(java.lang.String name)
Initializes a new instance of theKeyframeSequence
class.- Parameters:
name
- Name
-
KeyframeSequence
public KeyframeSequence()
Initializes a new instance of theKeyframeSequence
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 positioninterpolation
- The interpolation type of this key frame
-
reset
public void reset()
Removes all key frames and reset the post/pre behaviors.
-
-