AGI STK Objects 11 Send comments on this topic.
IsAnyTrackVisible Method (IAgMtoAnalysisVisibility)
See Also  Example
Time





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
);

[Java]
public bool isAnyTrackVisible(
Variant Time
);

[Unmanaged C++]
public: HRESULT IsAnyTrackVisible(
VARIANT Time,
VARIANT_BOOL * ReturnValue
);

Parameters

Time

Example

Determine if any track is visible from other STK Object at the specified time
[C#] Copy Code
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] Copy Code
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")

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1