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





Description

IAgScGraphics Interface for Scenario-level 2D Graphics attributes.

Public Methods

Public Method HideObject Hides the object identified by its path in a specified 2D window. Users can specify either a window identifier or a window title or 'all' to hide the object in all 2d windows.
Public Method HideObjects Hides multiple objects in a specified 2D window. Users can specify either a window identifier or a window title or 'all' to hide objects in all 2d windows.
Public Method ShowObject Shows the object identified by its path in a specified 2D window. Users can specify either a window identifier or a window title or 'all' to show the object in all 2d windows.
Public Method ShowObjects Shows multiple objects in a specified 2D window. Users can specify either a window identifier or a window title or 'all' to show the objects in all 2d windows.

Public Properties

Public Property AccessAnimHigh Specify whether to display access animation highlights, i.e. boxes around objects participating in an access.
Public Property AccessLinesVisible Specify whether to display lines during animation between objects participating in an access.
Public Property AccessStatHigh Specify whether to display access static highlights, i.e. thick lines overlying the ground track of a vehicle during access periods.
Public Property AllowAnimUpdate Specify whether to allow animation updates.
Public Property CentroidsVisible Specify whether to display area target centroids.
Public Property ElsetNumVisible Specify whether to display satellite elset numbers.
Public Property GndMarkersVisible Specify whether to display vehicle ground markers.
Public Property GndTracksVisible Specify whether to display vehicle ground tracks.
Public Property InertialPosLabelsVisible Specify whether to display labels at the inertial positions of planets.
Public Property InertialPosVisible Specify whether to display the inertial positions of planets.
Public Property LabelsVisible Specify whether to show labels of objects on the 2D map (general).
Public Property OrbitMarkersVisible Specify whether to display satellite orbit markers and missile and launch vehicle trajectory markers.
Public Property OrbitsVisible Specify whether to display satellite orbits and trajectories of missiles and launch vehicles.
Public Property PlanetOrbitsVisible Specify whether to display planetary orbits.
Public Property SensorsVisible Specify whether to show sensors on the 2D map.
Public Property SubPlanetLabelsVisible Specify whether to display labels for sub-planet points.
Public Property SubPlanetPointsVisible Specify whether to display sub-planet points.
Public Property TextOutlineColor Default text outline color
Public Property TextOutlineStyle Default text outline style

Example

Set scenario display to hide and show STK Objects in a specified 2D window
[C#] Copy Code
IAgScGraphics gfx = scenario.Graphics; 
 
// Individually 
gfx.HideObject("Facility/facility1""all"); 
gfx.ShowObject("Facility/facility1""1"); 
 
// In Batches 
// HideObjects and ShowObjects expects as the first parameter a one dimensional array of object paths 
Array objects = new object[] 
                { 
                    "Facility/facility1"
                    "Facility/facility2" 
                }; 
gfx.HideObjects(ref objects, "1"); 
gfx.ShowObjects(ref objects, "all"); 
 

Set scenario display to hide and show STK Objects in a specified 2D window
[Visual Basic .NET] Copy Code
Dim gfx As IAgScGraphics = scenario.Graphics

' Individually
gfx.HideObject("Facility/facility1", "all")
gfx.ShowObject("Facility/facility1", "1")

' In Batches
' HideObjects and ShowObjects expects as the first parameter a one dimensional array of object paths
#If Not CSToJava Then
#Else
#End If
Dim objects As Array = New Object() {"Facility/facility1", "Facility/facility2"}
#If Not CSToJava Then
gfx.HideObjects(objects, "1")
gfx.ShowObjects(objects, "all")
#Else
#End If

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1