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





Description

AgPlGraphics used to access the 2D graphics of the planet.

Object Model


Public Properties

Public Property Color The color in which the planet's marker, label and orbit path (if any) are displayed.
Public Property InertialPositionVisible Specify whether the position of the planet displays in the 2D Graphics window in the Central-Body Inertial (CBI) coordinate frame. This option affects only the perspective and orthographic map projections.
Public Property Inherit Specify whether inheritable 2D Graphics attributes are inherited from Scenario-level settings.
Public Property IsObjectGraphicsVisible Specify whether graphics attributes of the planet are visible.
Public Property LineStyle The type of line to represent the object's pattern or tracks.
Public Property LineWidth The width of the line to represent the object's pattern or tracks.
Public Property MarkerStyle The style of the marker representing the planet.
Public Property OrbitDisplay The factor used in determining how much of the orbit displays. A member of the AgEPlOrbitDisplayType enumeration.
Public Property OrbitDisplayData If time is used to determine how much of the orbit displays, specify a time value.
Public Property OrbitVisible Specify whether the planet's orbit path displays. This option affects only the perspective and orthographic map projections.
Public Property PositionLabelVisible Specify whether a label displays for the inertial position of the planet. This option affects only the perspective and orthographic map projections.
Public Property SubPlanetLabelVisible Specify whether a label displays for the point on the Earth directly below the planet.
Public Property SubPlanetPointVisible Specify whether the point on the Earth directly below the planet displays in the 2D Graphics window.

Example

Configure a planet graphics
[C#] Copy Code
graphics.Inherit = false
 
graphics.Color = Color.Red; 
graphics.MarkerStyle = "Circle"
graphics.LineStyle =  <a href="STKUtil.chm::/STKUtil~Enumerations~AgELineStyle_EN.html">AgELineStyle</a>.eMDashDot; 
graphics.LineWidth = AgELineWidth.e4; 
 
graphics.InertialPositionVisible = false
graphics.SubPlanetPointVisible = false
graphics.PositionLabelVisible = false
graphics.SubPlanetLabelVisible = false
graphics.OrbitVisible = true
graphics.OrbitDisplay = AgEPlOrbitDisplayType.eOrbitDisplayTime; 
IAgPlOrbitDisplayTime displayTime = graphics.OrbitDisplayData as IAgPlOrbitDisplayTime; 
displayTime.Time = 10000.00
 

Configure a planet graphics
[Visual Basic .NET] Copy Code
graphics.Inherit = False

graphics.Color = Color.Red
graphics.MarkerStyle = "Circle"
graphics.LineStyle = AgELineStyle.eMDashDot
graphics.LineWidth = AgELineWidth.e4

graphics.InertialPositionVisible = False
graphics.SubPlanetPointVisible = False
graphics.PositionLabelVisible = False
graphics.SubPlanetLabelVisible = False
graphics.OrbitVisible = True
graphics.OrbitDisplay = AgEPlOrbitDisplayType.eOrbitDisplayTime
Dim displayTime As IAgPlOrbitDisplayTime = TryCast(graphics.OrbitDisplayData, IAgPlOrbitDisplayTime)
displayTime.Time = 10000

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1