STK ObjectsSend comments on this topic.
IAgPlGraphics Interface

Description

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

Public Properties

Public Property ColorThe color in which the planet's marker, label and orbit path (if any) are displayed.
Public Property InertialPositionVisibleSpecify 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 InheritSpecify whether inheritable 2D Graphics attributes are inherited from Scenario-level settings.
Public Property IsObjectGraphicsVisibleSpecify whether graphics attributes of the planet are visible.
Public Property LineStyleThe type of line to represent the object's pattern or tracks.
Public Property LineWidthThe width of the line to represent the object's pattern or tracks.
Public Property MarkerStyleThe style of the marker representing the planet.
Public Property OrbitDisplayThe factor used in determining how much of the orbit displays. A member of the AgEPlOrbitDisplayType enumeration.
Public Property OrbitDisplayDataIf time is used to determine how much of the orbit displays, specify a time value.
Public Property OrbitVisibleSpecify whether the planet's orbit path displays. This option affects only the perspective and orthographic map projections.
Public Property PositionLabelVisibleSpecify whether a label displays for the inertial position of the planet. This option affects only the perspective and orthographic map projections.
Public Property SubPlanetLabelVisibleSpecify whether a label displays for the point on the Earth directly below the planet.
Public Property SubPlanetPointVisibleSpecify whether the point on the Earth directly below the planet displays in the 2D Graphics window.

Example

Configure a planet graphics
[C#]
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;
IAgPlOrbitDisplayTime displayTime = graphics.OrbitDisplayData as IAgPlOrbitDisplayTime;
displayTime.Time = 10000.00;
Configure a planet graphics
[Visual Basic .NET]
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
© 2024 Analytical Graphics, Inc. All Rights Reserved.