Class: NavSourceFormatter
Utility class for creating nav source name formatters.
Constructors
constructor
• new NavSourceFormatter(): NavSourceFormatter
Returns
Methods
create
▸ create(gpsName
, showGpsIndex
, showDmeIndex
, showAdfIndex
): (sourceName
: G3000NavSourceName
) => string
Creates a function which generates formatted nav source names.
Parameters
Name | Type | Description |
---|---|---|
gpsName | "GPS" | "FMS" | The name to use for GPS-type nav sources. |
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showDmeIndex | boolean | Whether to show the index for DME-type nav sources. |
showAdfIndex | boolean | Whether to show the index for ADF-type nav sources. |
Returns
fn
A function which generates formatted nav source names.
▸ (sourceName
): string
Parameters
Name | Type |
---|---|
sourceName | G3000NavSourceName |
Returns
string
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Graphics/Text/NavSourceFormatter.ts:20
createForBearingPointerSetting
▸ createForBearingPointerSetting(gpsName
, showGpsIndex
, showDmeIndex
, showAdfIndex
): (bearingPointerSource
: PfdBearingPointerSource
) => string
Creates a function which generates formatted nav source names for nav sources.
Parameters
Name | Type | Description |
---|---|---|
gpsName | "GPS" | "FMS" | The name to use for GPS-type nav sources. |
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showDmeIndex | boolean | Whether to show the index for DME-type nav sources. |
showAdfIndex | boolean | Whether to show the index for ADF-type nav sources. |
Returns
fn
A function which generates formatted nav source names for nav sources.
▸ (bearingPointerSource
): string
Parameters
Name | Type |
---|---|
bearingPointerSource | PfdBearingPointerSource |
Returns
string
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Graphics/Text/NavSourceFormatter.ts:117
createForIndicator
▸ createForIndicator(gpsName
, showGpsIndex
, showDmeIndex
, showAdfIndex
, showNavType
): (indicator
: G3000NavIndicator
) => string
Creates a function which generates formatted nav source names for nav indicators.
Parameters
Name | Type | Description |
---|---|---|
gpsName | "GPS" | "FMS" | The name to use for GPS-type nav sources. |
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showDmeIndex | boolean | Whether to show the index for DME-type nav sources. |
showAdfIndex | boolean | Whether to show the index for ADF-type nav sources. |
showNavType | boolean | Whether to show the navaid type (VOR vs LOC) for NAV-type nav sources. If false , 'NAV' will be used as the name for all NAV-type sources. |
Returns
fn
A function which generates formatted nav source names for nav indicators.
▸ (indicator
): string
Parameters
Name | Type |
---|---|
indicator | G3000NavIndicator |
Returns
string
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Graphics/Text/NavSourceFormatter.ts:73
createForSource
▸ createForSource(gpsName
, showGpsIndex
, showDmeIndex
, showAdfIndex
): (source
: NavSource
<G3000NavSourceName
>) => string
Creates a function which generates formatted nav source names for nav sources.
Parameters
Name | Type | Description |
---|---|---|
gpsName | "GPS" | "FMS" | The name to use for GPS-type nav sources. |
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showDmeIndex | boolean | Whether to show the index for DME-type nav sources. |
showAdfIndex | boolean | Whether to show the index for ADF-type nav sources. |
Returns
fn
A function which generates formatted nav source names for nav sources.
▸ (source
): string
Parameters
Name | Type |
---|---|
source | NavSource <G3000NavSourceName > |
Returns
string
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Graphics/Text/NavSourceFormatter.ts:50