Skip to main content

Class: AbstractG3000MfdPlugin

An abstract implementation of G3000MfdPlugin that by default does nothing. Subclasses should override the appropriate methods to provide desired functionality.

Hierarchy

Implements

Constructors

constructor

new AbstractG3000MfdPlugin(binder): AbstractG3000MfdPlugin

Creates an instance of a Plugin.

Parameters

NameTypeDescription
binderG3000MfdPluginBinderThe avionics specific plugin binder to accept from the system.

Returns

AbstractG3000MfdPlugin

Inherited from

AvionicsPlugin<G3000MfdPluginBinder>.constructor

Defined in

sdk/components/FSComponent.ts:1424

Properties

binder

Protected Readonly binder: G3000MfdPluginBinder

The avionics specific plugin binder to accept from the system.

Implementation of

G3000MfdPlugin.binder

Inherited from

AvionicsPlugin.binder

Defined in

sdk/components/FSComponent.ts:1424


onComponentCreated

Optional onComponentCreated: (component: DisplayComponent<any, []>) => void

An optional hook called when a component is created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.

Type declaration

▸ (component): void

An optional hook called when a component is created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.

Parameters
NameType
componentDisplayComponent<any, []>
Returns

void

Implementation of

G3000MfdPlugin.onComponentCreated

Inherited from

AvionicsPlugin.onComponentCreated

Defined in

sdk/components/FSComponent.ts:1444


onComponentCreating

Optional onComponentCreating: (constructor: DisplayComponentFactory<any, []>, props: any) => undefined | DisplayComponent<any, []>

An optional hook called when a component is about to be created. Returning a component causes that component to be used instead of the one that was to be created, and returning undefined will cause the original component to be created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.

Type declaration

▸ (constructor, props): undefined | DisplayComponent<any, []>

An optional hook called when a component is about to be created. Returning a component causes that component to be used instead of the one that was to be created, and returning undefined will cause the original component to be created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.

Parameters
NameType
constructorDisplayComponentFactory<any, []>
propsany
Returns

undefined | DisplayComponent<any, []>

Implementation of

G3000MfdPlugin.onComponentCreating

Inherited from

AvionicsPlugin.onComponentCreating

Defined in

sdk/components/FSComponent.ts:1437


onComponentRendered

Optional onComponentRendered: (node: VNode) => void

An optional hook called when a component has completed rendering. If this hook is present, it will be called for EVERY component render completion, so be sure to ensure that this code is well optimized.

Type declaration

▸ (node): void

An optional hook called when a component has completed rendering. If this hook is present, it will be called for EVERY component render completion, so be sure to ensure that this code is well optimized.

Parameters
NameType
nodeVNode
Returns

void

Implementation of

G3000MfdPlugin.onComponentRendered

Inherited from

AvionicsPlugin.onComponentRendered

Defined in

sdk/components/FSComponent.ts:1451

Methods

getPersistentSettings

getPersistentSettings(): Iterable<UserSetting<any>>

Gets settings whose values should be saved across flight sessions.

Returns

Iterable<UserSetting<any>>

An iterable of settings whose values should be saved across flight sessions.

Implementation of

G3000MfdPlugin.getPersistentSettings

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:95


getStartupScreenRows

getStartupScreenRows(): undefined | readonly (StartupScreenRowFactory | StartupScreenPrebuiltRow)[]

Gets the data rows to render on the right side of the MFD startup screen. Each row is defined by either a function which returns an object describing the row to render, or a pre-built row key. Up to eleven rows can be rendered. This method is ignored if the system is not configured to support the startup screen.

Returns

undefined | readonly (StartupScreenRowFactory | StartupScreenPrebuiltRow)[]

An array of rows to render on the right side of the MFD startup screen. The rows will be rendered from top to bottom in the order in which they appear in the array. If not defined, a default set of rows will be rendered.

Implementation of

G3000MfdPlugin.getStartupScreenRows

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:100


getToldModule

getToldModule(): undefined | ToldModule

Gets a module to be used for calculating takeoff and landing performance values. This method is only called if TOLD calculations are configured via panel.xml. If TOLD calculations are configured but a module is not provided by this method, then TOLD calculations will be disabled.

Returns

undefined | ToldModule

A TOLD module, or undefined if no TOLD module is to be used.

Implementation of

G3000MfdPlugin.getToldModule

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:90


loadCss

loadCss(uri): Promise<void>

Loads a CSS file into the instrument.

Parameters

NameTypeDescription
uristringThe URI to the CSS file.

Returns

Promise<void>

Implementation of

G3000MfdPlugin.loadCss

Inherited from

AvionicsPlugin.loadCss

Defined in

sdk/components/FSComponent.ts:1457


onInit

onInit(): void

Lifecycle method called during instrument initialization.

Returns

void

Implementation of

G3000MfdPlugin.onInit

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:74


onInstalled

onInstalled(): void

A callback run when the plugin has been installed.

Returns

void

Implementation of

G3000MfdPlugin.onInstalled

Overrides

AvionicsPlugin.onInstalled

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:69


registerDisplayPaneViews

registerDisplayPaneViews(viewFactory): void

Registers display pane views.

Parameters

NameTypeDescription
viewFactoryDisplayPaneViewFactoryThe factory with which to register views.

Returns

void

Implementation of

G3000MfdPlugin.registerDisplayPaneViews

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:85


renderEis

renderEis(): null | VNode

Renders the EIS.

Returns

null | VNode

The EIS, as a VNode, or null if no EIS is to be rendered.

Implementation of

G3000MfdPlugin.renderEis

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/G3000MFDPlugin.ts:79