AGI STK Objects 11 Send comments on this topic.
IAgMtoVOTrack Interface





Description

Interface for setting 3D graphics properties for MTO tracks.

Object Model








Public Properties

Public Property DropLines Returns an interface allowing you to configure the MTO's drop lines.
Public Property Id The identification number of the track. Dimensionless.
Public Property IsVisible Opt whether to display the track in the 3D Graphics window.
Public Property Label Get the track's 3D label properties.
Public Property Marker Get the track's 3D marker properties.
Public Property Model Get the track's 3D model properties.
Public Property Point Get the track's 3D point properties.
Public Property RangeContours Get the MTO's 3D range contour properties.
Public Property ShouldFadeOverTrailTime Controls whether trailing line fades over trail time.
Public Property SwapDistances Get the track's 3D swap distance properties.

Example

Configure MTO graphics
[C#] Copy Code
IAgMtoVOTrackCollection tracks = mto.VO.Tracks; 
foreach (IAgMtoVOTrack element in tracks) 

    element.Marker.PixelSize = 12
    element.Marker.OrientationMode = AgEVOMarkerOrientation.eVOMarkerOrientationAngle; 
    element.Marker.XOrigin = AgEVOMarkerOriginType.eRight; 
    element.Marker.YOrigin = AgEVOMarkerOriginType.eBottom; 
    element.Marker.Angle = 1.23
 
    element.Marker.MarkerType = AgEMarkerType.eImageFile; 
    element.Marker.SetMarkerImageFile(@"STKData\VO\Markers\Fire.ppm"); 
 
    element.Model.IsVisible = true
    element.Model.Filename = @"STKData\VO\Models\Land\ariane-lp.mdl"
    element.Model.InitialBearing = 3.0
    element.Model.ScaleValue = 2.0
    element.Model.ZPointsNadir = true
 
    element.Label.Enable = true
    element.Label.X = 33.5
    element.Label.Y = 82.2
    element.Label.Z = 100.0
    element.Label.OffsetFrame = AgEOffsetFrameType.eOffsetFrameCartesian; 

 

Configure MTO graphics
[Visual Basic .NET] Copy Code
Dim tracks As IAgMtoVOTrackCollection = mto.VO.Tracks
For Each element As IAgMtoVOTrack In tracks
    element.Marker.PixelSize = 12
    element.Marker.OrientationMode = AgEVOMarkerOrientation.eVOMarkerOrientationAngle
    element.Marker.XOrigin = AgEVOMarkerOriginType.eRight
    element.Marker.YOrigin = AgEVOMarkerOriginType.eBottom
    element.Marker.Angle = 1.23

    element.Marker.MarkerType = AgEMarkerType.eImageFile
    element.Marker.SetMarkerImageFile("STKData\VO\Markers\Fire.ppm")

    element.Model.IsVisible = True
    element.Model.Filename = "STKData\VO\Models\Land\ariane-lp.mdl"
    element.Model.InitialBearing = 3
    element.Model.ScaleValue = 2
    element.Model.ZPointsNadir = True

    element.Label.Enable = True
    element.Label.X = 33.5
    element.Label.Y = 82.2
    element.Label.Z = 100
    element.Label.OffsetFrame = AgEOffsetFrameType.eOffsetFrameCartesian
Next

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1