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
|
Parameters
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")
|
|