Class: MapAliasedUserSettingManager
An aliased map user setting manager which can switch the true settings from which its aliased settings are sourced. The supported sources are:
- Each set of display pane map settings.
- Each set of PFD map settings.
Implements
UserSettingManager
<G3000MapUserSettingTypes
>
Constructors
constructor
• new MapAliasedUserSettingManager(bus
): MapAliasedUserSettingManager
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:25
Methods
getAllSettings
▸ getAllSettings(): UserSetting
<UserSettingValue
>[]
Returns
UserSetting
<UserSettingValue
>[]
Inherit Doc
Implementation of
UserSettingManager.getAllSettings
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:73
getSetting
▸ getSetting<K
>(name
): UserSetting
<NonNullable
<G3000MapUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends "mapRangeIndex" | "mapOrientation" | "mapAutoNorthUpActive" | "mapAutoNorthUpRangeIndex" | "mapGroundNorthUpActive" | "mapDeclutter" | "mapTerrainMode" | "mapTerrainRangeIndex" | "mapTerrainScaleShow" | "mapAirportLargeRangeIndex" | "mapAirportMediumRangeIndex" | "mapAirportSmallRangeIndex" | "mapVorShow" | "mapVorRangeIndex" | "mapNdbShow" | "mapNdbRangeIndex" | "mapIntersectionShow" | "mapIntersectionRangeIndex" | "mapUserWaypointShow" | "mapUserWaypointRangeIndex" | "mapAirspaceClassBRangeIndex" | "mapAirspaceClassCRangeIndex" | "mapAirspaceClassDRangeIndex" | "mapAirspaceRestrictedRangeIndex" | "mapAirspaceMoaRangeIndex" | "mapAirspaceOtherRangeIndex" | "mapTrafficShow" | "mapTrafficRangeIndex" | "mapTrafficLabelShow" | "mapTrafficLabelRangeIndex" | "mapTrafficAlertLevelMode" | "mapNexradShow" | "mapNexradRangeIndex" | "mapTrackVectorShow" | "mapTrackVectorLookahead" | "mapAltitudeArcShow" | "mapWindVectorShow" | "mapAirspaceShow" | "mapAirportShow" | "mapInsetMode" | "mapInsetTextCumulative" |
Parameters
Name | Type |
---|---|
name | K |
Returns
UserSetting
<NonNullable
<G3000MapUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.getSetting
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:63
mapTo
▸ mapTo<M
>(map
): UserSettingManager
<M
& Omit
<MapUserSettingTypes
, G3000MapDelegatedUserSettingNames
> & G3000SpecificMapUserSettingTypes
>
Type parameters
Name | Type |
---|---|
M | extends UserSettingRecord |
Parameters
Name | Type |
---|---|
map | UserSettingMap <M , G3000MapUserSettingTypes > |
Returns
UserSettingManager
<M
& Omit
<MapUserSettingTypes
, G3000MapDelegatedUserSettingNames
> & G3000SpecificMapUserSettingTypes
>
Inherit Doc
Implementation of
UserSettingManager.mapTo
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:78
tryGetSetting
▸ tryGetSetting<K
>(name
): K
extends "mapRangeIndex"
| "mapOrientation"
| "mapAutoNorthUpActive"
| "mapAutoNorthUpRangeIndex"
| "mapGroundNorthUpActive"
| "mapDeclutter"
| "mapTerrainMode"
| "mapTerrainRangeIndex"
| "mapTerrainScaleShow"
| "mapAirportLargeRangeIndex"
| "mapAirportMediumRangeIndex"
| "mapAirportSmallRangeIndex"
| "mapVorShow"
| "mapVorRangeIndex"
| "mapNdbShow"
| "mapNdbRangeIndex"
| "mapIntersectionShow"
| "mapIntersectionRangeIndex"
| "mapUserWaypointShow"
| "mapUserWaypointRangeIndex"
| "mapAirspaceClassBRangeIndex"
| "mapAirspaceClassCRangeIndex"
| "mapAirspaceClassDRangeIndex"
| "mapAirspaceRestrictedRangeIndex"
| "mapAirspaceMoaRangeIndex"
| "mapAirspaceOtherRangeIndex"
| "mapTrafficShow"
| "mapTrafficRangeIndex"
| "mapTrafficLabelShow"
| "mapTrafficLabelRangeIndex"
| "mapTrafficAlertLevelMode"
| "mapNexradShow"
| "mapNexradRangeIndex"
| "mapTrackVectorShow"
| "mapTrackVectorLookahead"
| "mapAltitudeArcShow"
| "mapWindVectorShow"
| keyof G3000SpecificMapUserSettingTypes ? UserSetting
<G3000MapUserSettingTypes
[K
]> : undefined
Type parameters
Name | Type |
---|---|
K | extends string |
Parameters
Name | Type |
---|---|
name | K |
Returns
K
extends "mapRangeIndex"
| "mapOrientation"
| "mapAutoNorthUpActive"
| "mapAutoNorthUpRangeIndex"
| "mapGroundNorthUpActive"
| "mapDeclutter"
| "mapTerrainMode"
| "mapTerrainRangeIndex"
| "mapTerrainScaleShow"
| "mapAirportLargeRangeIndex"
| "mapAirportMediumRangeIndex"
| "mapAirportSmallRangeIndex"
| "mapVorShow"
| "mapVorRangeIndex"
| "mapNdbShow"
| "mapNdbRangeIndex"
| "mapIntersectionShow"
| "mapIntersectionRangeIndex"
| "mapUserWaypointShow"
| "mapUserWaypointRangeIndex"
| "mapAirspaceClassBRangeIndex"
| "mapAirspaceClassCRangeIndex"
| "mapAirspaceClassDRangeIndex"
| "mapAirspaceRestrictedRangeIndex"
| "mapAirspaceMoaRangeIndex"
| "mapAirspaceOtherRangeIndex"
| "mapTrafficShow"
| "mapTrafficRangeIndex"
| "mapTrafficLabelShow"
| "mapTrafficLabelRangeIndex"
| "mapTrafficAlertLevelMode"
| "mapNexradShow"
| "mapNexradRangeIndex"
| "mapTrackVectorShow"
| "mapTrackVectorLookahead"
| "mapAltitudeArcShow"
| "mapWindVectorShow"
| keyof G3000SpecificMapUserSettingTypes ? UserSetting
<G3000MapUserSettingTypes
[K
]> : undefined
Inherit Doc
Implementation of
UserSettingManager.tryGetSetting
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:58
useDisplayPaneSettings
▸ useDisplayPaneSettings(index
): void
Switches the source of this manager's settings to a set of display pane map settings.
Parameters
Name | Type | Description |
---|---|---|
index | ControllableDisplayPaneIndex | The index of the display pane. |
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:45
usePfdSettings
▸ usePfdSettings(index
): void
Switches the source of this manager's settings to a set of PFD map settings.
Parameters
Name | Type | Description |
---|---|---|
index | PfdIndex | The index of the PFD. |
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:53
whenSettingChanged
▸ whenSettingChanged<K
>(name
): Consumer
<NonNullable
<G3000MapUserSettingTypes
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends "mapRangeIndex" | "mapOrientation" | "mapAutoNorthUpActive" | "mapAutoNorthUpRangeIndex" | "mapGroundNorthUpActive" | "mapDeclutter" | "mapTerrainMode" | "mapTerrainRangeIndex" | "mapTerrainScaleShow" | "mapAirportLargeRangeIndex" | "mapAirportMediumRangeIndex" | "mapAirportSmallRangeIndex" | "mapVorShow" | "mapVorRangeIndex" | "mapNdbShow" | "mapNdbRangeIndex" | "mapIntersectionShow" | "mapIntersectionRangeIndex" | "mapUserWaypointShow" | "mapUserWaypointRangeIndex" | "mapAirspaceClassBRangeIndex" | "mapAirspaceClassCRangeIndex" | "mapAirspaceClassDRangeIndex" | "mapAirspaceRestrictedRangeIndex" | "mapAirspaceMoaRangeIndex" | "mapAirspaceOtherRangeIndex" | "mapTrafficShow" | "mapTrafficRangeIndex" | "mapTrafficLabelShow" | "mapTrafficLabelRangeIndex" | "mapTrafficAlertLevelMode" | "mapNexradShow" | "mapNexradRangeIndex" | "mapTrackVectorShow" | "mapTrackVectorLookahead" | "mapAltitudeArcShow" | "mapWindVectorShow" | "mapAirspaceShow" | "mapAirportShow" | "mapInsetMode" | "mapInsetTextCumulative" |
Parameters
Name | Type |
---|---|
name | K |
Returns
Consumer
<NonNullable
<G3000MapUserSettingTypes
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.whenSettingChanged
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:68