Skip to main content

Class: MapTrafficIntruderIcon

Defined in: workingtitle-instruments-epic2/shared/Map/MapTrafficIntruderIcon.ts:17

A view representation of a TCAS intruder for MapTrafficIntruderLayer.

Extends

Constructors

Constructor

new MapTrafficIntruderIcon(intruder, trafficModule, ownshipModule, styles): MapTrafficIntruderIcon

Defined in: workingtitle-instruments-epic2/shared/Map/MapTrafficIntruderIcon.ts:43

Constructor.

Parameters

ParameterTypeDescription
intruderEpic2TcasIntruderThis view's associated intruder.
trafficModuleEpic2MapTrafficModuleThe traffic module for this icon's parent map.
ownshipModuleMapOwnAirplanePropsModuleThe own airplane properties module for this icon's parent map.
stylesMapStylesThe map styles.

Returns

MapTrafficIntruderIcon

Overrides

AbstractMapTrafficIntruderIcon.constructor

Properties

intruder

readonly intruder: Epic2TcasIntruder

Defined in: workingtitle-instruments-epic2/shared/Map/MapTrafficIntruderIcon.ts:44

This view's associated intruder.

Inherited from

AbstractMapTrafficIntruderIcon.intruder


isOffScale

isOffScale: boolean = false

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

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: workingtitle-instruments-epic2/shared/Map/MapTrafficIntruderIcon.ts:46

The own airplane properties module for this icon's parent map.

Inherited from

AbstractMapTrafficIntruderIcon.ownshipModule


projectedPos

readonly projectedPos: Float64Array<ArrayBuffer>

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

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: Epic2MapTrafficModule

Defined in: workingtitle-instruments-epic2/shared/Map/MapTrafficIntruderIcon.ts:45

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:341

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-epic2/shared/Map/MapTrafficIntruderIcon.ts:54

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:370

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:352

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