STK ObjectsSend comments on this topic.
AreAllTracksVisible Method (IAgMtoAnalysisVisibility)
See Also
Time
Windows





Windows & Linux

Description

Returns true if all tracks are visible to the object.

Syntax

[Visual Basic .NET]
Public Function AreAllTracksVisible( _
    ByVal Time As System.Object _
) As Boolean
[C#]
public bool AreAllTracksVisible(
    System.Object Time
);
[Managed C++]
public: bool AreAllTracksVisible(
    VARIANT Time
);
[Unmanaged C++]
public: HRESULT AreAllTracksVisible(
    VARIANT Time,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool areAllTracksVisible(
    AgVariant Time
);
[Python - STK API ]
def AreAllTracksVisible(self, Time:typing.Any) -> bool:

Parameters

Time

See Also

Example

Compute visibility with MTO tracks
[C#]
// Are all the tracks visible from the other STK Object at the specified time?

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";
bool allTracksAreVisible = mtoVisibility.AreAllTracksVisible("1 Jan 2012 14:02:00.000");
Compute visibility with MTO tracks
[Visual Basic .NET]
' Are all the tracks visible from the other STK Object at the specified time?

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 allTracksAreVisible As Boolean = mtoVisibility.AreAllTracksVisible("1 Jan 2012 14:02:00.000")
© 2024 Analytical Graphics, Inc. All Rights Reserved.