Class AnimationManager
Manages running animations and coordinates frame updates.
public class AnimationManager : IDisposable
- Inheritance
-
AnimationManager
- Implements
- Inherited Members
Properties
ActiveCategories
Gets the currently active animation categories.
public IReadOnlySet<AnimationCategory> ActiveCategories { get; }
Property Value
AnimatingNodeIds
Gets the IDs of all nodes currently being animated.
public IReadOnlySet<string> AnimatingNodeIds { get; }
Property Value
HasAnimations
Gets whether any animations are currently running.
public bool HasAnimations { get; }
Property Value
HasGroupAnimations
Checks if group animations are running.
public bool HasGroupAnimations { get; }
Property Value
HasNodeAnimations
Checks if node position or appearance animations are running.
public bool HasNodeAnimations { get; }
Property Value
HasViewportAnimations
Checks if viewport animations are running.
public bool HasViewportAnimations { get; }
Property Value
TargetFps
Target frames per second for animation updates.
public int TargetFps { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
HasCategory(AnimationCategory)
Checks if a specific animation category is currently active.
public bool HasCategory(AnimationCategory category)
Parameters
categoryAnimationCategory
Returns
Start(IAnimation)
Starts an animation.
public void Start(IAnimation animation)
Parameters
animationIAnimation
Start(IAnimation, AnimationCategory, IEnumerable<string>?)
Starts an animation with category information.
public void Start(IAnimation animation, AnimationCategory category, IEnumerable<string>? affectedNodeIds = null)
Parameters
animationIAnimationcategoryAnimationCategoryaffectedNodeIdsIEnumerable<string>
Stop(IAnimation)
Stops and removes an animation.
public void Stop(IAnimation animation)
Parameters
animationIAnimation
StopAll()
Stops all running animations.
public void StopAll()
StopCategory(AnimationCategory)
Stops all animations of a specific category.
public void StopCategory(AnimationCategory category)
Parameters
categoryAnimationCategory
StopNodeAnimations()
Stops all node animations.
public void StopNodeAnimations()
StopViewportAnimations()
Stops all viewport animations.
public void StopViewportAnimations()
Events
CategoriesChanged
Event raised when the set of active animation categories changes.
public event EventHandler<AnimationCategoriesChangedEventArgs>? CategoriesChanged
Event Type
FrameUpdated
Event raised after each animation frame update.
public event EventHandler? FrameUpdated