Skip to main content

Class: MapTrafficIntruderIcon

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.

Hierarchy

  • AbstractMapTrafficIntruderIcon

    MapTrafficIntruderIcon

Constructors

constructor

new MapTrafficIntruderIcon(intruder, trafficModule, ownshipModule): MapTrafficIntruderIcon

Constructor.

Parameters

NameTypeDescription
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

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:328

Properties

intruder

Readonly intruder: TcasIntruder

This icon's associated intruder.

Inherited from

AbstractMapTrafficIntruderIcon.intruder

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:329


isOffScale

isOffScale: boolean = false

Inherited from

AbstractMapTrafficIntruderIcon.isOffScale

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:320


ownshipModule

Protected Readonly ownshipModule: MapOwnAirplanePropsModule

The ownship module for this icon's parent map.

Inherited from

AbstractMapTrafficIntruderIcon.ownshipModule

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:331


projectedPos

Readonly projectedPos: Float64Array

Inherited from

AbstractMapTrafficIntruderIcon.projectedPos

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:318


trafficModule

Protected Readonly trafficModule: MapTrafficModule

The traffic module for this icon's parent map.

Inherited from

AbstractMapTrafficIntruderIcon.trafficModule

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:330

Methods

draw

draw(projection, context, offScaleRange): void

Draws this icon.

Parameters

NameTypeDescription
projectionMapProjectionThe map projection.
contextCanvasRenderingContext2DThe canvas rendering context to which to draw this icon.
offScaleRangeNumberUnitInterface<Distance, Unit<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

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:341


drawIcon

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

Parameters

NameType
projectionMapProjection
contextCanvasRenderingContext2D
projectedPosReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">>
isOffScaleboolean

Returns

void

Inherit Doc

Overrides

AbstractMapTrafficIntruderIcon.drawIcon

Defined in

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


handleOffScaleRange

handleOffScaleRange(projection, ownAirplanePos, offScaleRange): void

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

NameTypeDescription
projectionMapProjectionThe map projection.
ownAirplanePosGeoPointInterfaceThe position of the own airplane.
offScaleRangeNumberUnitInterface<Distance, Unit<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

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:370


updatePosition

updatePosition(projection, offScaleRange): void

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

Parameters

NameTypeDescription
projectionMapProjectionThe map projection.
offScaleRangeNumberUnitInterface<Distance, Unit<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

Defined in

sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:352