AGI STK VGT 11Send comments on this topic.
SetStartEpoch Method (IAgCrdnEventIntervalSmartInterval)
See Also  Example
StartEpoch
Epoch component.
Windows






Windows & Linux

Description

Sets a start of the interval using specified epoch component.

Syntax

[Visual Basic .NET]
Public Sub SetStartEpoch( _
   ByVal StartEpoch As IAgCrdnEventSmartEpoch _
) 
[C#]
public void SetStartEpoch(
   IAgCrdnEventSmartEpoch StartEpoch
);
[Managed C++]
public: void SetStartEpoch(
   IAgCrdnEventSmartEpoch ^ StartEpoch
);
[Java]
public  setStartEpoch(
   IAgCrdnEventSmartEpoch StartEpoch
);
[Unmanaged C++]
public: HRESULT SetStartEpoch(
   IAgCrdnEventSmartEpoch * StartEpoch
);

Parameters

StartEpoch
Epoch component.

Example

Configure the start and stop epoch time with smart epochs.
[C#]Copy Code
smartInterval.State = AgECrdnSmartIntervalState.eCrdnSmartIntervalStateStartStop; 
 
IAgCrdnEventSmartEpoch accessStartEpoch = smartInterval.GetStartEpoch(); 
accessStartEpoch.SetImplicitTime(startEventEpoch); 
smartInterval.SetStartEpoch(accessStartEpoch); 
 
IAgCrdnEventSmartEpoch accessStopEpoch = smartInterval.GetStopEpoch(); 
accessStopEpoch.SetImplicitTime(stopEventEpoch); 
smartInterval.SetStopEpoch(accessStopEpoch); 
 

Configure the start and stop epoch time with smart epochs.
[Visual Basic .NET]Copy Code
smartInterval.State = AgECrdnSmartIntervalState.eCrdnSmartIntervalStateStartStop

Dim accessStartEpoch As IAgCrdnEventSmartEpoch = smartInterval.GetStartEpoch()
accessStartEpoch.SetImplicitTime(startEventEpoch)
smartInterval.SetStartEpoch(accessStartEpoch)

Dim accessStopEpoch As IAgCrdnEventSmartEpoch = smartInterval.GetStopEpoch()
accessStopEpoch.SetImplicitTime(stopEventEpoch)
smartInterval.SetStopEpoch(accessStopEpoch)

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.