Class that starts, updates and stops IAnimation objects that are assigned to it.
More...
Class that starts, updates and stops IAnimation objects that are assigned to it.
This class is used by the Map class. See Map.AnimationManager.
- Since
- 2021.1
◆ Dispose()
| void Luciad.Animations.AnimationManager.Dispose |
( |
| ) |
|
|
inline |
◆ Equals()
| override bool Luciad.Animations.AnimationManager.Equals |
( |
object | obj | ) |
|
|
inline |
◆ GetCurrentAnimation()
| Luciad.Animations.AnimationManager.? OngoingAnimation Luciad.Animations.AnimationManager.GetCurrentAnimation |
( |
string | key | ) |
|
|
inline |
Returns the currently ongoing animation if present or null if no animation with that key is ongoing.
- Parameters
-
| key | The key attached to an animation |
- Returns
- the currently ongoing animation if present or null if no animation with that key is ongoing.
◆ GetHashCode()
| override int Luciad.Animations.AnimationManager.GetHashCode |
( |
| ) |
|
|
inline |
◆ StartAnimation()
Starts a new animation.
Upon starting, the animation manager invokes IAnimation.OnStart on the IAnimation.
Each animation has a key attached to it. You can stop an animation by invoking AnimationManager.StopAnimation with this key or you can replace the animation by invoking AnimationManager.StartAnimation with the same key.
- Parameters
-
| key | The key attached to that animation. If an animation is already playing with that key, the manager stops it before starting the new animation. |
| animation | The IAnimation object to be played, cannot be null. |
- Exceptions
-
| System.ArgumentNullException | when the passed animation is null. |
◆ StopAnimation()
| void Luciad.Animations.AnimationManager.StopAnimation |
( |
string | key | ) |
|
|
inline |
Stops the animation that was added with the given key, if present.
If an animation is currently playing with that key, the manager invokes IAnimation.OnStop on that animation.
- Parameters
-
| key | The key attached to the animation that should be removed. |