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





Windows & Linux

Description

Returns true if any track is visible to the object.

Syntax

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

Parameters

Time

See Also

Example

Determine if any track is visible from 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";
bool anyTrackIsVisible = mtoVisibility.IsAnyTrackVisible("1 Jan 2012 14:02:00.000");
Determine if any track is visible from 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 anyTrackIsVisible As Boolean = mtoVisibility.IsAnyTrackVisible("1 Jan 2012 14:02:00.000")
© 2024 Analytical Graphics, Inc. All Rights Reserved.