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





Description

AgDuringAccess used to access the display intervals and Access objects.

Object Model



Public Properties

Public Property AccessObjects AccessObjects property.
Public Property DisplayIntervals DisplayIntervals property.

Example

Set STK Object Display to use during access mode
[C#] Copy Code
// Attempt to cast STK Object to the IAgDisplayTm interface 
IAgDisplayTm display = stkObject as IAgDisplayTm; 
if (display != null

    // Configure during access 
    if (display.IsDisplayStatusTypeSupported(AgEDisplayTimesType.eDuringAccess)) 
    { 
        display.SetDisplayStatusType(AgEDisplayTimesType.eDuringAccess); 
 
        IAgDuringAccess duringAccess = display.DisplayTimesData as IAgDuringAccess; 
 
        // Add subsequent existing stk objects to access diplay ... 
        duringAccess.AccessObjects.Add("Satellite/satellite1"); 
        duringAccess.AccessObjects.Add("Star/star1"); 
    } 

 

Set STK Object Display to use during access mode
[Visual Basic .NET] Copy Code
' Attempt to cast STK Object to the IAgDisplayTm interface
Dim display As IAgDisplayTm = TryCast(stkObject, IAgDisplayTm)
If display IsNot Nothing Then
    ' Configure during access
    If display.IsDisplayStatusTypeSupported(AgEDisplayTimesType.eDuringAccess) Then
        display.SetDisplayStatusType(AgEDisplayTimesType.eDuringAccess)

        Dim duringAccess As IAgDuringAccess = TryCast(display.DisplayTimesData, IAgDuringAccess)

        ' Add subsequent existing stk objects to access diplay ...
        duringAccess.AccessObjects.Add("Satellite/satellite1")
        duringAccess.AccessObjects.Add("Star/star1")
    End If
End If

CoClasses that Implement IAgDuringAccess

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1