AGI STK Objects 11 Send comments on this topic.
IAgScAnimation Interface





Description

IAgScAnimation Interface for Scenario-level properties that control the animation cycle, animation step definition and the intervals between refresh updates in the 2D and 3D windows.

Object Model


Public Properties

Public Property AnimCycleTime Animation end time. Uses DateFormat Dimension.
Public Property AnimCycleType Animation end time or loop-at time. A member of the AgEScEndLoopType enumeration.
Public Property AnimStepType Time step, real time (with offset) or a multiple of real time. A member of the AgEScTimeStepType enumeration.
Public Property AnimStepValue Animation time step. Dimension depends on context.
Public Property ContinueXRealtimeFromPause Animation XRealtime Continue from Paused Time.
Public Property EnableAnimCycleTime Enable a selection between end time and loop-at time.
Public Property RefreshDelta Refresh Delta property, the amount of time between refresh updates. The actual refresh delta is limited by the minimum time necessary to draw the scenario. The refresh time varies with processor performance, graphics hardware and scenario complexity. Uses Time Dimension.
Public Property RefreshDeltaType Refresh Delta or high speed. A member of the AgEScRefreshDeltaType enumeration.
Public Property StartTime Animation start time. Uses DateFormat Dimension.
Public Property TimePeriod Allows the user to configure the scenario's animation time period

Example

Configure scenario animation
[C#] Copy Code
IAgScAnimation animation = scenario.Animation; 
 
animation.StartTime = "1 Jun 2004 12:00:00.00"
animation.EnableAnimCycleTime = true
animation.AnimCycleType = AgEScEndLoopType.eEndTime; 
animation.AnimCycleTime = "2 Jun 2004 12:00:00.00"
animation.AnimStepValue = 1000
animation.RefreshDeltaType = AgEScRefreshDeltaType.eRefreshDelta; 
animation.RefreshDelta = 0.02
 

Configure scenario animation
[Visual Basic .NET] Copy Code
Dim animation As IAgScAnimation = scenario.Animation

animation.StartTime = "1 Jun 2004 12:00:00.00"
animation.EnableAnimCycleTime = True
animation.AnimCycleType = AgEScEndLoopType.eEndTime
animation.AnimCycleTime = "2 Jun 2004 12:00:00.00"
animation.AnimStepValue = 1000
animation.RefreshDeltaType = AgEScRefreshDeltaType.eRefreshDelta
animation.RefreshDelta = 0.02

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1