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
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
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
Name | Type | Description |
---|---|---|
gtc1SelectedPane | -1 | ControllableDisplayPaneIndex | The index of the selected pane for the left GTC. |
gtc2SelectedPane | -1 | ControllableDisplayPaneIndex | The index of the selected pane for the right GTC. |
displayPaneVisibleSettings | Record <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
Name | Type | Description |
---|---|---|
side | DisplayPaneControlGtcIndex | Which GTC side is this for. |
desiredPane | -1 | ControllableDisplayPaneIndex | The preferred pane to select, if available. |
availablePanes | readonly 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