Skip to main content

Abstract Class: AbstractMapTrafficIntruderIcon

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:315

An abstract implementation of MapTrafficIntruderIcon which handles the projection of the intruder's position and off-scale calculations.

Implements​

Constructors​

Constructor​

new AbstractMapTrafficIntruderIcon(intruder, trafficModule, ownshipModule): AbstractMapTrafficIntruderIcon

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:328

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​

AbstractMapTrafficIntruderIcon

Properties​

intruder​

readonly intruder: TcasIntruder

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:329

This icon's associated intruder.

Implementation of​

MapTrafficIntruderIcon.intruder


isOffScale​

isOffScale: boolean = false

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

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

Implementation of​

MapTrafficIntruderIcon.isOffScale


ownshipModule​

protected readonly ownshipModule: MapOwnAirplanePropsModule

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:331

The ownship module for this icon's parent map.


projectedPos​

readonly projectedPos: Float64Array

Defined in: src/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.

Implementation of​

MapTrafficIntruderIcon.projectedPos


trafficModule​

protected readonly trafficModule: MapTrafficModule

Defined in: src/sdk/components/mapsystem/layers/MapSystemTrafficLayer.tsx:330

The traffic module for this icon's parent map.

Methods​

draw()​

draw(projection, context, offScaleRange): void

Defined in: src/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

Implementation of​

MapTrafficIntruderIcon.draw


drawIcon()​

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

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

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


handleOffScaleRange()​

protected handleOffScaleRange(projection, ownAirplanePos, offScaleRange): void

Defined in: src/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


updatePosition()​

protected updatePosition(projection, offScaleRange): void

Defined in: src/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