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#] | Copy Code |
---|
IAgScGraphics gfx = scenario.Graphics;
gfx.HideObject("Facility/facility1", "all");
gfx.ShowObject("Facility/facility1", "1");
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
gfx.HideObject("Facility/facility1", "all") gfx.ShowObject("Facility/facility1", "1")
Dim objects As Array = New Object() {"Facility/facility1", "Facility/facility2"} gfx.HideObjects(objects, "1") gfx.ShowObjects(objects, "all")
|
|