AGI STK Objects 11 Send comments on this topic.
AreTracksInFOV Method (IAgMtoAnalysisFieldOfView)
See Also  Example
AnyOrAll
Tracks
Time





Description

Return an array of track ids and boolean values.

Syntax

[Visual Basic .NET]
Public Function AreTracksInFOV( _
   ByVal AnyOrAll As AgEMtoTrackEval, _
   ByRef Tracks As System.Array, _
   ByVal Time As System.Object _
) As Boolean

[C#]
public bool AreTracksInFOV(
AgEMtoTrackEval AnyOrAll,
ref System.Array Tracks,
System.Object Time
);

[Managed C++]
public: bool AreTracksInFOV(
AgEMtoTrackEval AnyOrAll,
System::Array ^^ Tracks,
VARIANT Time
);

[Java]
public bool areTracksInFOV(
AgEMtoTrackEval AnyOrAll,
Object[] Tracks,
Variant Time
);

[Unmanaged C++]
public: HRESULT AreTracksInFOV(
AgEMtoTrackEval AnyOrAll,
SAFEARRAY ** Tracks,
VARIANT Time,
VARIANT_BOOL * ReturnValue
);

Parameters

AnyOrAll
Member Value Description
eMtoTrackEvalAll 0 Returns 1 if every track is within range otherwise it returns 0.
eMtoTrackEvalAny 1 Returns 1 if any track is in range of the Object, (ie, lowerLimit <= range <= upperLimit) else returns 0.
Tracks
Time

Example

Compute MTO field of view
[C#] Copy Code
IAgMtoAnalysisFieldOfView fov = mto.Analysis.FieldOfView; 
 
// AreTracksInFOV expects a one dimensional array of mto track ids 
Array tracks = new object[] 
               { 
                   14 
               }; 
 
bool tracksInView = fov.AreTracksInFOV(AgEMtoTrackEval.eMtoTrackEvalAny, ref tracks, "1 Jan 2012 12:00:00.000"); 
 

Compute MTO field of view
[Visual Basic .NET] Copy Code
Dim fov As IAgMtoAnalysisFieldOfView = mto.Analysis.FieldOfView

' AreTracksInFOV expects a one dimensional array of mto track ids
#If Not CSToJava Then
#Else
#End If
Dim tracks As Array = New Object() {1, 4}

#If Not CSToJava Then
Dim tracksInView As Boolean = fov.AreTracksInFOV(AgEMtoTrackEval.eMtoTrackEvalAny, tracks, "1 Jan 2012 12:00:00.000")
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1