Click or drag to resize
DigitalRuneAnimationManager Class
Represents the animations system which can be used to play back animations.
Inheritance Hierarchy
SystemObject
  DigitalRune.AnimationAnimationManager

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public class AnimationManager : IAnimationService

The AnimationManager type exposes the following members.

Constructors
  NameDescription
Public methodAnimationManager
Initializes a new instance of the AnimationManager class.
Top
Methods
  NameDescription
Public methodApplyAnimations
Applies the new animation values to all animated properties.
Public methodCreateController(ITimeline, IAnimatableObject)
Creates a new animation controller which can be used to apply the given animation to the specified object.
Public methodCreateController(ITimeline, IAnimatableProperty)
Creates a new animation controller which can be used to apply the given animation to the specified property.
Public methodCreateController(ITimeline, IEnumerableIAnimatableObject)
Creates a new animation controller which can be used to apply the given animation to the specified objects.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsAnimated(IAnimatableObject)
Determines whether the specified object is controlled by one or more animations.
Public methodIsAnimated(IAnimatableProperty)
Determines whether the specified property is controlled by one or more animations.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStartAnimation(ITimeline, IAnimatableObject)
Starts an animation and applies it to the specified object.
Public methodStartAnimation(ITimeline, IAnimatableProperty)
Starts an animation and applies it to the specified property.
Public methodStartAnimation(ITimeline, IEnumerableIAnimatableObject)
Starts an animation and applies it to the specified objects.
Public methodStartAnimation(ITimeline, IAnimatableObject, AnimationTransition)
Starts an animation using a given transition and applies it to the specified object.
Public methodStartAnimation(ITimeline, IAnimatableProperty, AnimationTransition)
Starts an animation using a given transition and applies it to the specified property.
Public methodStartAnimation(ITimeline, IEnumerableIAnimatableObject, AnimationTransition)
Starts an animation using a given transition and applies it to the specified objects.
Public methodStopAnimation(IAnimatableObject)
Stops all animations affecting the specified object.
Public methodStopAnimation(IEnumerableIAnimatableObject)
Stops all animations affecting the specified objects.
Public methodStopAnimation(IAnimatableProperty)
Stops all animations affecting the specified property.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Updates all animations.
Public methodUpdateAndApplyAnimation(IAnimatableObject)
Immediately evaluates the animations the given object and applies the new animation values.
Public methodUpdateAndApplyAnimation(IEnumerableIAnimatableObject)
Immediately evaluates the animations of the given objects and applies the new animation values.
Public methodUpdateAndApplyAnimation(IAnimatableProperty)
Immediately evaluates the animation composition chains of the given property and applies the new animation values.
Public methodUpdateAndApplyAnimation(ListIAnimatableProperty)
Immediately evaluates the animations of the given properties and applies the new animation values.
Top
Properties
  NameDescription
Public propertyEnableMultithreading
Gets or sets a value indicating whether multithreading is enabled.
Top
Remarks

This class implements the IAnimationService. See documentation of IAnimationService.

This class has two important methods: Update(TimeSpan) must be called once per frame, and it updates all managed animations. The new animation values are internally cached but not applied until ApplyAnimations is called. Update(TimeSpan) can usually be called parallel to other game services (graphics, physics, AI, etc.). ApplyAnimations should be called when it is safe to write the animation results to the animated objects and properties.

See Also