Skip to main content

Class: MapTrafficIntruderIcon

Defined in: workingtitle-instruments-wt21/shared/Map/MapTrafficIntruderIcon.ts:11

A traffic intruder icon for the WT21. The icon includes a symbol that is chosen based on the intruder's alert level, an altitude label displaying either the intruder's relative or absolute altitude to the nearest hundreds of feet, and a vertical speed direction arrow which is only visible when the magnitude of the intruder's vertical speed is greater than 500 FPM.

Extends​

Constructors​

Constructor​

new MapTrafficIntruderIcon(intruder, trafficModule, ownshipModule): MapTrafficIntruderIcon

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:348

Constructor.

Parameters​

ParameterTypeDescription
intruderTcasIntruderThis icon's associated intruder.
trafficModuleMapTrafficModuleThe traffic module for this icon's parent map.
ownshipModuleMapOwnAirplanePropsModuleThe ownship module for this icon's parent map.

Returns​

MapTrafficIntruderIcon

Inherited from​

AbstractMapTrafficIntruderIcon.constructor

Properties​

intruder​

readonly intruder: TcasIntruder

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:349

This icon's associated intruder.

Inherited from​

AbstractMapTrafficIntruderIcon.intruder


isOffScale​

isOffScale: boolean = false

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:340

Whether this icon's intruder is off-scale at the time it was last drawn.

Inherited from​

AbstractMapTrafficIntruderIcon.isOffScale


ownshipModule​

protected readonly ownshipModule: MapOwnAirplanePropsModule

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:351

The ownship module for this icon's parent map.

Inherited from​

AbstractMapTrafficIntruderIcon.ownshipModule


projectedPos​

readonly projectedPos: Float64Array<ArrayBuffer>

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:338

The projected position of this icon's intruder, in pixel coordinates, at the time it was last drawn.

Inherited from​

AbstractMapTrafficIntruderIcon.projectedPos


trafficModule​

protected readonly trafficModule: MapTrafficModule

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:350

The traffic module for this icon's parent map.

Inherited from​

AbstractMapTrafficIntruderIcon.trafficModule

Methods​

draw()​

draw(projection, context, offScaleRange): void

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:361

Draws this icon.

Parameters​

ParameterTypeDescription
projectionMapProjectionThe map projection.
contextCanvasRenderingContext2DThe canvas rendering context to which to draw this icon.
offScaleRangeNumberUnitInterface<Distance>The distance from the own airplane to this icon's intruder beyond which the intruder is considered off-scale. If the value is NaN, the intruder is never considered off-scale.

Returns​

void

Inherited from​

AbstractMapTrafficIntruderIcon.draw


drawIcon()​

protected drawIcon(projection, context, projectedPos, isOffScale): void

Defined in: workingtitle-instruments-wt21/shared/Map/MapTrafficIntruderIcon.ts:23

Draws this icon.

Parameters​

ParameterTypeDescription
projectionMapProjectionThe map projection.
contextCanvasRenderingContext2DThe canvas rendering context to which to draw this icon.
projectedPosReadonlyFloat64ArrayThe projected position of this icon's intruder.
isOffScalebooleanWhether this icon's intruder is off-scale.

Returns​

void

Overrides​

AbstractMapTrafficIntruderIcon.drawIcon


handleOffScaleRange()​

protected handleOffScaleRange(projection, ownAirplanePos, offScaleRange): void

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:390

Updates this icon's intruder's projected position and off-scale status using a specific range from the own airplane to define off-scale.

Parameters​

ParameterTypeDescription
projectionMapProjectionThe map projection.
ownAirplanePosGeoPointInterfaceThe position of the own airplane.
offScaleRangeNumberUnitInterface<Distance>The distance from the own airplane to this icon's intruder beyond which the intruder is considered off-scale.

Returns​

void

Inherited from​

AbstractMapTrafficIntruderIcon.handleOffScaleRange


updatePosition()​

protected updatePosition(projection, offScaleRange): void

Defined in: sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:372

Updates this icon's intruder's projected position and off-scale status.

Parameters​

ParameterTypeDescription
projectionMapProjectionThe map projection.
offScaleRangeNumberUnitInterface<Distance>The distance from the own airplane to this icon's intruder beyond which the intruder is considered off-scale. If the value is NaN, the intruder is never considered off-scale.

Returns​

void

Inherited from​

AbstractMapTrafficIntruderIcon.updatePosition