Skip to main content

Class: DisplayPanesController

Keeps track of which display pane is being controlled by which GTC.

Constructors

constructor

new DisplayPanesController(bus): DisplayPanesController

Creates a new DisplayPanesController.

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

DisplayPanesController

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPanesController.ts:74

Methods

reset

reset(): void

Resets this controller's display panes to their default configuration:

  • MFD in Half Mode.
  • Navigation Map displayed on both PFD panes and the Left MFD pane.
  • Traffic Map displayed on the Right MFD pane.

This operation leaves PFD Full/Split mode unchanged for both PFDs.

Returns

void

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPanesController.ts:225


getAvailablePanes

getAvailablePanes(gtc1SelectedPane, gtc2SelectedPane, displayPaneVisibleSettings): readonly ControllableDisplayPaneIndex[]

Returns an array of controllable display pane indices that are selectable.

Parameters

NameTypeDescription
gtc1SelectedPane-1 | ControllableDisplayPaneIndexThe index of the selected pane for the left GTC.
gtc2SelectedPane-1 | ControllableDisplayPaneIndexThe index of the selected pane for the right GTC.
displayPaneVisibleSettingsRecord<ControllableDisplayPaneIndex, UserSetting<boolean>>A record of the visibility settings for each controllable display pane.

Returns

readonly ControllableDisplayPaneIndex[]

An array of controllable display pane indices that are selectable.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPanesController.ts:290


getBestAvailablePane

getBestAvailablePane(side, desiredPane, availablePanes): -1 | ControllableDisplayPaneIndex

Determines which pane should be selected from the available panes.

Parameters

NameTypeDescription
sideDisplayPaneControlGtcIndexWhich GTC side is this for.
desiredPane-1 | ControllableDisplayPaneIndexThe preferred pane to select, if available.
availablePanesreadonly ControllableDisplayPaneIndex[]The available panes.

Returns

-1 | ControllableDisplayPaneIndex

The pane to be selected.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPanesController.ts:309