Skip to main content

Class: NavSourceFormatter

Utility class for creating nav source name formatters.

Constructors

constructor

new NavSourceFormatter(): NavSourceFormatter

Returns

NavSourceFormatter

Methods

create

create(gpsName, showGpsIndex, showDmeIndex, showAdfIndex): (sourceName: G3000NavSourceName) => string

Creates a function which generates formatted nav source names.

Parameters

NameTypeDescription
gpsName"GPS" | "FMS"The name to use for GPS-type nav sources.
showGpsIndexbooleanWhether to show the index for GPS-type nav sources.
showDmeIndexbooleanWhether to show the index for DME-type nav sources.
showAdfIndexbooleanWhether to show the index for ADF-type nav sources.

Returns

fn

A function which generates formatted nav source names.

▸ (sourceName): string

Parameters
NameType
sourceNameG3000NavSourceName
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

NameTypeDescription
gpsName"GPS" | "FMS"The name to use for GPS-type nav sources.
showGpsIndexbooleanWhether to show the index for GPS-type nav sources.
showDmeIndexbooleanWhether to show the index for DME-type nav sources.
showAdfIndexbooleanWhether 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
NameType
bearingPointerSourcePfdBearingPointerSource
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

NameTypeDescription
gpsName"GPS" | "FMS"The name to use for GPS-type nav sources.
showGpsIndexbooleanWhether to show the index for GPS-type nav sources.
showDmeIndexbooleanWhether to show the index for DME-type nav sources.
showAdfIndexbooleanWhether to show the index for ADF-type nav sources.
showNavTypebooleanWhether 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
NameType
indicatorG3000NavIndicator
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

NameTypeDescription
gpsName"GPS" | "FMS"The name to use for GPS-type nav sources.
showGpsIndexbooleanWhether to show the index for GPS-type nav sources.
showDmeIndexbooleanWhether to show the index for DME-type nav sources.
showAdfIndexbooleanWhether 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
NameType
sourceNavSource<G3000NavSourceName>
Returns

string

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Graphics/Text/NavSourceFormatter.ts:50