Skip to main content

Class: MapTerrainColorsController

Controls the display of terrain colors based on GPWS data.

Hierarchy

Constructors

constructor

new MapTerrainColorsController(context): MapTerrainColorsController

Constructor.

Parameters

NameTypeDescription
contextMapSystemContext<MapTerrainColorsControllerModules, any, any, any>This controller's map context.

Returns

MapTerrainColorsController

Inherited from

MapSystemController<MapTerrainColorsControllerModules>.constructor

Defined in

sdk/components/mapsystem/MapSystemController.ts:30

Properties

context

Protected Readonly context: MapSystemContext<MapTerrainColorsControllerModules, any, any, any>

Inherited from

MapSystemController.context

Defined in

sdk/components/mapsystem/MapSystemController.ts:24

Accessors

isAlive

get isAlive(): boolean

Whether this controller is alive.

Returns

boolean

Inherited from

MapSystemController.isAlive

Defined in

sdk/components/mapsystem/MapSystemController.ts:20

Methods

destroy

destroy(): void

Destroys this controller.

Returns

void

Inherited from

MapSystemController.destroy

Defined in

sdk/components/mapsystem/MapSystemController.ts:106


onAfterMapRender

onAfterMapRender(): void

Returns

void

Inherit Doc

Overrides

MapSystemController.onAfterMapRender

Defined in

workingtitle-instruments-wt21/shared/Map/MapTerrainColorsController.ts:91


onAfterUpdated

onAfterUpdated(time): void

Parameters

NameType
timenumber

Returns

void

Inherit Doc

Overrides

MapSystemController.onAfterUpdated

Defined in

workingtitle-instruments-wt21/shared/Map/MapTerrainColorsController.ts:133


onBeforeUpdated

onBeforeUpdated(time, elapsed): void

This method is called immediately before this controller's map updates its layers.

Parameters

NameTypeDescription
timenumberThe current time, as a Javascript timestamp.
elapsednumberThe elapsed time, in milliseconds, since the last update.

Returns

void

Inherited from

MapSystemController.onBeforeUpdated

Defined in

sdk/components/mapsystem/MapSystemController.ts:68


onDeadZoneChanged

onDeadZoneChanged(deadZone): void

This method is called when the dead zone of this controller's map changes.

Parameters

NameTypeDescription
deadZoneReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">>The map's new dead zone.

Returns

void

Inherited from

MapSystemController.onDeadZoneChanged

Defined in

sdk/components/mapsystem/MapSystemController.ts:48


onMapDestroyed

onMapDestroyed(): void

This method is called when this controller's map is destroyed.

Returns

void

Inherited from

MapSystemController.onMapDestroyed

Defined in

sdk/components/mapsystem/MapSystemController.ts:99


onMapProjectionChanged

onMapProjectionChanged(mapProjection, changeFlags): void

This method is called when the projection of this controller's map changes.

Parameters

NameTypeDescription
mapProjectionMapProjectionThe map projection.
changeFlagsnumberBit flags describing the type of change.

Returns

void

Inherited from

MapSystemController.onMapProjectionChanged

Defined in

sdk/components/mapsystem/MapSystemController.ts:58


onSleep

onSleep(): void

Returns

void

Inherit Doc

Overrides

MapSystemController.onSleep

Defined in

workingtitle-instruments-wt21/shared/Map/MapTerrainColorsController.ts:117


onWake

onWake(): void

This method is called when this controller's map is awakened.

Returns

void

Inherited from

MapSystemController.onWake

Defined in

sdk/components/mapsystem/MapSystemController.ts:85