STK ObjectsSend comments on this topic.
AreTracksInFOV Method (IAgMtoAnalysisFieldOfView)
See Also
AnyOrAll
Tracks
Time
Windows





Windows & Linux

Description

Return an array of track ids and boolean values.

Syntax

[Visual Basic .NET]
Public Function AreTracksInFOV( _
    ByVal AnyOrAll As AgEMtoTrackEval, _
    ByVal Tracks As System.Array, _
    ByVal Time As System.Object _
) As Boolean
[C#]
public bool AreTracksInFOV(
    AgEMtoTrackEval AnyOrAll,
    System.Array Tracks,
    System.Object Time
);
[Managed C++]
public: bool AreTracksInFOV(
    AgEMtoTrackEval AnyOrAll,
    System::Array ^ Tracks,
    VARIANT Time
);
[Unmanaged C++]
public: HRESULT AreTracksInFOV(
    AgEMtoTrackEval AnyOrAll,
    SAFEARRAY * * Tracks,
    VARIANT Time,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool areTracksInFOV(
    AgEMtoTrackEval AnyOrAll,
    AgSafeArray Tracks,
    AgVariant Time
);
[Python - STK API ]
def AreTracksInFOV(self, AnyOrAll:"AgEMtoTrackEval", Tracks:list, Time:typing.Any) -> bool:

Parameters

AnyOrAll
Tracks
Time

See Also

Example

Compute MTO field of view
[C#]
IAgMtoAnalysisFieldOfView fov = mto.Analysis.FieldOfView;
fov.Sensor = "Satellite/J2Satellite/Sensor/Sensor1";

// AreTracksInFOV expects a one dimensional array of mto track ids
Array tracks = new object[]
               {
                   1, 4
               };
bool tracksInView = fov.AreTracksInFOV(AgEMtoTrackEval.eMtoTrackEvalAny, ref tracks, "1 Jan 2012 12:00:00.000");
Compute MTO field of view
[Visual Basic .NET]
Dim fov As IAgMtoAnalysisFieldOfView = mto.Analysis.FieldOfView
fov.Sensor = "Satellite/J2Satellite/Sensor/Sensor1"

' AreTracksInFOV expects a one dimensional array of mto track ids
Dim tracks As Array = New Object() {1, 4}

Dim tracksInView As Boolean = fov.AreTracksInFOV(AgEMtoTrackEval.eMtoTrackEvalAny, tracks, "1 Jan 2012 12:00:00.000")
© 2024 Analytical Graphics, Inc. All Rights Reserved.