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





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

[Java]
public bool areAllTracksVisible(
Variant Time
);

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

Parameters

Time

Example

Compute visibility with MTO tracks
[C#] Copy Code
// 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] Copy Code
' 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")

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1