KeyframeSequence

KeyframeSequence class

The sequence of key-frames, it describes the transformation of a sampled value over time.

public class KeyframeSequence : A3DObject, IEnumerable<KeyFrame>

Constructors

Name Description
KeyframeSequence() Initializes a new instance of the KeyframeSequence class.
KeyframeSequence(string) Initializes a new instance of the KeyframeSequence class.

Properties

Name Description
BindPoint { get; } Gets the property bind point which owns this curve
KeyFrames { get; } Gets the key frames of this curve.
virtual Name { get; set; } Gets or sets the name.
PostBehavior { get; } Gets the post behavior indicates what the sampled value should be after the last key frame.
PreBehavior { get; } Gets the pre behavior indicates what the sampled value should be before the first key.
Properties { get; } Gets the collection of all properties.

Methods

Name Description
Add(double, float) Create a new key frame with specified value
Add(double, float, Interpolation) Create a new key frame with specified value
FindProperty(string) Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
GetEnumerator() Gets the enumerator to traverse all key frames.
GetProperty(string) Get the value of specified property
RemoveProperty(Property) Removes a dynamic property.
RemoveProperty(string) Remove the specified property identified by name
Reset() Removes all key frames and reset the post/pre behaviors.
SetProperty(string, object) Sets the value of specified property

See Also