Description
The display time interface.
Public Methods
Public Properties
CoClasses that Implement IAgDisplayTm
Example
Set STK Object Display to always on
| [C#] | 
|---|
IAgDisplayTm display = stkObject as IAgDisplayTm;
display.SetDisplayStatusType(AgEDisplayTimesType.eAlwaysOn);
  |  
  | 
Set STK Object Display to use intervals mode
| [C#] | 
|---|
// 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#] | 
|---|
// 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 always on
| [Visual Basic .NET] | 
|---|
Dim display As IAgDisplayTm = TryCast(stkObject, IAgDisplayTm)
display.SetDisplayStatusType(AgEDisplayTimesType.eAlwaysOn)
  |  
  | 
Set STK Object Display to use intervals 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 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] | 
|---|
' 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
 |  
  |