STK ObjectsSend comments on this topic.
AreTracksVisible Method (IAgMtoAnalysisVisibility)
See Also
Eval
TrackIds
Time
Windows





Windows & Linux

Description

Returns true if any track in the array is visible to the object.

Syntax

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

Parameters

Eval
TrackIds
Time

See Also

Example

Determine if all the specified tracks (i.e. a subset of the MTO tracks) are visible from the other STK Object at the specified time?
[C#]
IAgMtoAnalysisVisibility mtoVisibility = mto.Analysis.Visibility;
mtoVisibility.UseTerrain = false; // Set to true to use terrain instead of line of sight.
mtoVisibility.Entirety = AgEMtoEntirety.eMtoEntiretyPartial; // Only applies if MTO is static (i.e. non time dependent).

mtoVisibility.StkObjectPath = "Satellite/J2Satellite";

Array tracksOfInterest = new object[]
                         {
                             1, 2, 7
                         };

// AreTracksVisible expects as the second parameter a one dimensional array of mto track ids
bool areTracksAreVisible = mtoVisibility.AreTracksVisible(AgEMtoTrackEval.eMtoTrackEvalAll, ref tracksOfInterest, "1 Jan 2012 12:02:00.000");
Determine if all the specified tracks (i.e. a subset of the MTO tracks) are visible from the other STK Object at the specified time?
[Visual Basic .NET]
Dim mtoVisibility As IAgMtoAnalysisVisibility = mto.Analysis.Visibility
mtoVisibility.UseTerrain = False
' Set to true to use terrain instead of line of sight.
mtoVisibility.Entirety = AgEMtoEntirety.eMtoEntiretyPartial
' Only applies if MTO is static (i.e. non time dependent).
mtoVisibility.StkObjectPath = "Satellite/J2Satellite"

Dim tracksOfInterest As Array = New Object() {1, 2, 7}

' AreTracksVisible expects as the second parameter a one dimensional array of mto track ids
Dim areTracksAreVisible As Boolean = mtoVisibility.AreTracksVisible(AgEMtoTrackEval.eMtoTrackEvalAll, tracksOfInterest, "1 Jan 2012 12:02:00.000")
© 2024 Analytical Graphics, Inc. All Rights Reserved.