STK Vector Geometry ToolSend comments on this topic.
IAgCrdnEventStartStopTime Interface

Description

Event is either start or stop time selected from a reference interval.

Public Properties

Public Property ReferenceEventIntervalThe reference interval.
Public Property UseStartIndicates whether to use start (true) or stop (false).

Interfaces

Implemented Interface
IAgCrdnEvent
IAgCrdn

CoClasses that Implement IAgCrdnEventStartStopTime

Example

Create and configure start stop time event.
[C#]
IAgCrdnEvent timeEvent = provider.Events.Factory.CreateEventStartStopTime("MyEventStartStopTime", "MyDescription");
IAgCrdnEventStartStopTime asStartStopTime = timeEvent as IAgCrdnEventStartStopTime;

asStartStopTime.ReferenceEventInterval = provider.EventIntervals["EphemerisTimeSpan"];

asStartStopTime.UseStart = true;

IAgCrdnEventFindOccurrenceResult occurrence = timeEvent.FindOccurrence();
if (occurrence.IsValid)
{
    Console.WriteLine("Event occurred at: " + occurrence.Epoch);
}
Create and configure start stop time event.
[Visual Basic .NET]
Dim timeEvent As IAgCrdnEvent = provider.Events.Factory.CreateEventStartStopTime("MyEventStartStopTime", "MyDescription")
Dim asStartStopTime As IAgCrdnEventStartStopTime = TryCast(timeEvent, IAgCrdnEventStartStopTime)

asStartStopTime.ReferenceEventInterval = provider.EventIntervals("EphemerisTimeSpan")

asStartStopTime.UseStart = True

Dim occurrence As IAgCrdnEventFindOccurrenceResult = timeEvent.FindOccurrence()
If occurrence.IsValid Then
	Console.WriteLine("Event occurred at: " + occurrence.Epoch)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.