STK ObjectsSend comments on this topic.
IAgDuringAccess Interface

Description

AgDuringAccess used to access the display intervals and Access objects.

Public Properties

Public Property AccessObjectsGets the access objects property.
Public Property DisplayIntervalsGets the display intervals property.

Interfaces

Implemented Interface
IAgDisplayTimesData

CoClasses that Implement IAgDuringAccess

Example

Set STK Object Display to use during access mode
[C#]
// 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 display
        duringAccess.AccessObjects.Add("Satellite/satellite1");
        duringAccess.AccessObjects.Add("Star/star1");
    }
}
Set STK Object Display to use during access mode
[Visual Basic .NET]
' 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 display
		duringAccess.AccessObjects.Add("Satellite/satellite1")
		duringAccess.AccessObjects.Add("Star/star1")
	End If
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.