AnimationClipT Class |
Namespace: DigitalRune.Animation
The AnimationClipT type exposes the following members.
Name | Description | |
---|---|---|
AnimationClipT |
Initializes a new instance of the AnimationClipT class.
| |
AnimationClipT(IAnimationT) |
Initializes a new instance of the AnimationClipT class for the given
animation.
|
Name | Description | |
---|---|---|
CreateBlendAnimation |
Creates a new BlendAnimationT. (For internal use only.)
| |
CreateInstance |
Creates an animation instance that can be used to play back the animation.
(For internal use only.)
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAnimationTime |
Gets the animation time for the specified time on the timeline.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetState |
Gets the state of the animation for the specified time on the timeline.
| |
GetTotalDuration |
Gets the total length of the timeline.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Gets the value of the animation at the specified time.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Animation |
Gets or sets the original animation from which a clip is played back.
| |
ClipEnd |
Gets or sets the end time of the animation clip.
| |
ClipOffset |
Gets the time offset that is applied to the selected animation clip.
| |
ClipStart |
Gets or sets the start time of the animation clip.
| |
Delay |
Gets or sets the time at which the animation clip begins.
| |
Duration |
Gets or sets the duration for which the animation clip is played.
| |
FillBehavior |
Gets or sets a value that specifies how the animation behaves when it reaches the end of its
duration.
| |
IsAdditive |
Gets or sets a value indicating whether the output of the animation is added to the current
value of the property that is being animated.
| |
IsClipReversed |
Gets or sets a value indicating whether to play the clip in reverse.
| |
LoopBehavior |
Gets or sets the behavior of the animation past the end of the animation clip.
| |
Speed |
Gets or sets the speed ratio at which the animation clip is played.
| |
TargetObject |
Gets or sets the object to which the animation is applied by default.
| |
TargetProperty |
Gets or sets the property to which the animation is applied by default.
| |
Traits |
Gets the traits of the animation values.
|
The AnimationClipT has the following purposes:
Select animation clip: The properties ClipStart and ClipEnd can be used to select an interval from another animation (see property Animation). The properties are optional: ClipStart and ClipEnd are by default, which means that the entire animation is selected. It is also possible to set only ClipStart or ClipEnd - in this case only one side of the original animation will be clipped.
The property ClipOffset defines a time offset which is applied when the animation clip is played back. If the selected clip is, for example, 10 seconds long and ClipOffset is 5 seconds, then the playback of the clip will start in the middle.
Loop Behavior: The property Duration defines the length of the playback. If the duration is not set (default value is ), the animation clip plays exactly once (clip length = ClipEnd - ClipStart). If the users sets a duration greater than the actual length of the clip, the clip is repeated using a certain loop behavior.
The property LoopBehavior defines the behavior past the end of the animation clip. The default loop behavior is Constant which means that the last value of the animation clip is returned for the rest of the duration. The loop behavior Cycle causes the animation clip to be repeated from the start. The loop behavior CycleOffset is similar to Cycle except that it also applies an offset to the animation values in each new iteration. The loop behavior Oscillate (also known as 'auto-reverse' or 'ping-pong') automatically repeats the animation clip in reverse order, so that the animation clip is played back and forth for the defined duration.