Description | Example | Return message | Group

Graphics WindowState

Control the display of object graphics in the 2D window.

Syntax

Graphics <ObjectPath> WindowState {Options}

Related commands

Description

The Graphics WindowState command allows you to turn off all graphics for an object in a 2D Map Window.

{Option}Description
Show {On | Off}Specify whether graphics should be on or off.
WindowID {<WinNumber> | All}Enter the number of the 2D window where graphics will be turned on or off, or enter All to turn graphics on or off in all 2D windows.
WindowTitle "<WindowTitle>"Enter the title of the 2D window where graphics will be turned on or off.

If Show Off is specified then all graphics for the object will be hidden in the specified 2D Window regardless of other window on/off flags.

To find window ids and titles use the MapID_R command.

If either of the objects that are disabled in a window, are being used in access calculations, the access graphics for the access pair including the disabled object will not be displayed.

This command does not affect chains, constellations or attitude coverage objects

When a 2d window is created, all graphics will show up in that window until explicitly disabled by this command.

When a 2d window is destroyed, the on/off state of an object is reset for that window id. For example, if an object is off in window id 2 and then that window is destroyed, if another widow is created and this reuses the windowid of 2, that window will display all objects in it, even the object that was previously off in window 2.

Child objects will not display in windows where the parent object is disabled.

Examples

Turn on graphics for Target t1 in 2D window 1:

Graphics * WindowState Show On Object Target/t1 WindowId 1

Turn off graphics for Sensor5 in 2D windows 1 and 2:

Graphics */Satellite/Satellite1/Sensor/Sensor5 WindowState Show off WindowId 1 WindowId 2

Turn off graphics for the Satellite, and its children, in the 2D window with the specified title:

Graphics */Satellite/Satellite1 WindowState Show off WindowTitle "2D Graphics 1 - Earth"

Return message

Group membership

This command belongs to the following group(s):

Area Targets

Comm

CAT

Coverage

Facilities, Places & Targets

2D Object Graphics

Line Targets

Radar

Scenarios

Sensors

Stars & Planets

Vehicles

Version

10