AGI STK Objects 11 Send comments on this topic.
IAgAnimation Interface
Windows






Windows & Linux

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.

Example

Change animation mode
[MATLAB]Copy Code
% 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]Copy Code
% IAgStkObjectRoot root: STK Object Model Root 
root.Rewind; 
 
 
Change animation mode
[Python]Copy Code
# IAgStkObjectRoot root: STK Object Model Root 
scenario = root.CurrentScenario 
root.AnimationOptions = 2 # eAniOptionStop 
root.Mode = 32 # eAniXRealtime 
scenario.Animation.AnimStepValue = 1   # second 
scenario.Animation.RefreshDelta = .03  #second 
 
 
 
Reset the scenario time
[Python]Copy Code
# IAgStkObjectRoot root: STK Object Model Root 
root.Rewind 
 
 

CoClasses that Implement IAgAnimation

© 2018 Analytical Graphics, Inc. All Rights Reserved.