STK Vector Geometry ToolSend comments on this topic.
IAgCrdnFindTimesResult Interface

Description

Returns a collection of intervals and an array of times.

Public Properties

Public Property IntervalsA collection of found intervals.
Public Property IsValidIndicates whether the result object is valid.
Public Property StartThe start time of the entire interval span.
Public Property StopThe stop time of the entire interval span.
Public Property TimesAn array of found times.

Example

Determines the time intervals of an event array.
[C#]
IAgCrdnEventArray eventArray = provider.EventArrays["Orbit.Classical.SemimajorAxis.TimesOfLocalMax"];

IAgCrdnFindTimesResult foundTimes = eventArray.FindTimes();
if (foundTimes.IsValid)
{
    Console.WriteLine("Times");
    int numTimes = foundTimes.Times.GetLength(0);
    for (int i = 0; i < numTimes; ++i)
    {
        Console.WriteLine(foundTimes.Times.GetValue(i));
    }

    foreach (IAgCrdnInterval timeArray in foundTimes.Intervals)
    {
        Console.WriteLine("Start: " + timeArray.Start);
        Console.WriteLine("Stop: " + timeArray.Stop);
    }
}
Determines the time intervals of an event array.
[Visual Basic .NET]
Dim eventArray As IAgCrdnEventArray = provider.EventArrays("Orbit.Classical.SemimajorAxis.TimesOfLocalMax")

Dim foundTimes As IAgCrdnFindTimesResult = eventArray.FindTimes()
If foundTimes.IsValid Then
	Console.WriteLine("Times")
	Dim numTimes As Integer = foundTimes.Times.GetLength(0)
	Dim i As Integer = 0
	While i < numTimes
		Console.WriteLine(foundTimes.Times.GetValue(i))
		System.Threading.Interlocked.Increment(i)
	End While

	For Each timeArray As IAgCrdnInterval In foundTimes.Intervals
		Console.WriteLine("Start: " + timeArray.Start)
		Console.WriteLine("Stop: " + timeArray.[Stop])
	Next
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.