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





Description

The display time interface

Object Model


Public Methods

Public Method IsDisplayStatusTypeSupported Gets a value indicating whether the specified type can be used.
Public Method SetDisplayStatusType Sets the display status type.

Public Properties

Public Property DisplayStatusSupportedTypes Returns an array of valid choices.
Public Property DisplayStatusType Returns the Display Status type.
Public Property DisplayTimesData Returns the display times data.

Example

Set STK Object Display to always on
[C#] Copy Code
IAgDisplayTm display = stkObject as IAgDisplayTm; 
display.SetDisplayStatusType(AgEDisplayTimesType.eAlwaysOn); 
 

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

    // Configure display intervals 
    if (display.IsDisplayStatusTypeSupported(AgEDisplayTimesType.eUseIntervals)) 
    { 
        display.SetDisplayStatusType(AgEDisplayTimesType.eUseIntervals); 
 
        // Get IAgIntervalCollection interface 
        IAgIntervalCollection intervalCollection = display.DisplayTimesData as IAgIntervalCollection; 
        intervalCollection.RemoveAll(); 
 
        // Add subsequent intervals... 
        intervalCollection.Add( 
            "1 Jan 2012 12:00:00.00"
            "1 Jan 2012 13:00:00.000"); 
    } 

 

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 always on
[Visual Basic .NET] Copy Code
Dim display As IAgDisplayTm = TryCast(stkObject, IAgDisplayTm)
display.SetDisplayStatusType(AgEDisplayTimesType.eAlwaysOn)

Set STK Object Display to use intervals 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 display intervals
    If display.IsDisplayStatusTypeSupported(AgEDisplayTimesType.eUseIntervals) Then
        display.SetDisplayStatusType(AgEDisplayTimesType.eUseIntervals)

        ' Get IAgIntervalCollection interface
        Dim intervalCollection As IAgIntervalCollection = TryCast(display.DisplayTimesData, IAgIntervalCollection)
        intervalCollection.RemoveAll()

        ' Add subsequent intervals...
        intervalCollection.Add("1 Jan 2012 12:00:00.00", "1 Jan 2012 13:00:00.000")
    End If
End If

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 IAgDisplayTm

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1