STK ObjectsSend comments on this topic.
IAgAnimation Interface

Description

Provides methods to control scenario animation.

Public Methods

Public Method FasterIncrease the speed of the animation.
Public Method PausePause the animation.
Public Method PlayBackwardAnimate backward.
Public Method PlayForwardAnimate forward.
Public Method RewindStop and reset the animation.
Public Method SlowerDecrease the speed of the animation.
Public Method StepBackwardReverse the animation one step backward.
Public Method StepForwardAdvance the animation one step forward.

Public Properties

Public Property AnimationOptionsAnimation options.
Public Property CurrentTimeCurrent animation time. In Epoch seconds.
Public Property HighSpeedControls the animation speed.
Public Property ModeAnimation mode.
Public Property StepGet animation time step.

CoClasses that Implement IAgAnimation

Example

Change animation mode
[Python - STK API]
# IAgStkObjectRoot root: STK Object Model Root
scenario = root.CurrentScenario
root.AnimationOptions = AgEAnimationOptions.eAniOptionStop
root.Mode = AgEAnimationModes.eAniXRealtime
scenario.Animation.AnimStepValue = 1    # second
scenario.Animation.RefreshDelta = .03   # second


Reset the scenario time
[Python - STK API]
# IAgStkObjectRoot root: STK Object Model Root
root.Rewind()

Change animation mode
[MATLAB]
% IAgStkObjectRoot root: STK Object Model Root
scenario = root.CurrentScenario;
root.AnimationOptions = 'eAniOptionStop';
root.Mode = 'eAniXRealtime';
scenario.Animation.AnimStepValue = 1;   % second
scenario.Animation.RefreshDelta = .03;  % second


        
Reset the scenario time
[MATLAB]
% IAgStkObjectRoot root: STK Object Model Root
root.Rewind;


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.