Description
IAgScGraphics Interface for Scenario-level 2D Graphics attributes.
Public Methods
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. |
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. |
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. |
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
Example
Set scenario display to hide and show STK Objects in a specified 2D window
[C#] |
---|
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] |
---|
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
Dim objects As Array = New Object() {"Facility/facility1", "Facility/facility2"}
gfx.HideObjects(objects, "1")
gfx.ShowObjects(objects, "all")
|
|