Skip to main content

Class: AbstractFlightPathPlanRenderer<Args>

Renders flight plan paths one leg at a time in either forward or reverse order. Optionally forces the rendering of the active flight plan leg to be last.

Type parameters

NameType
Argsextends any[] = []

Hierarchy

Constructors

constructor

new AbstractFlightPathPlanRenderer<Args>(renderOrder?, renderActiveLegLast?): AbstractFlightPathPlanRenderer<Args>

Constructor.

Type parameters

NameType
Argsextends any[] = []

Parameters

NameTypeDefault valueDescription
renderOrderFlightPathPlanRenderOrder'forward'The order which this renderer renders the flight plan legs. Forward order renders the legs in a first-to-last fashion. Reverse order renders the legs in a last-to-first fashion. Defaults to forward.
renderActiveLegLastbooleantrueWhether to render the active leg last. Defaults to true.

Returns

AbstractFlightPathPlanRenderer<Args>

Defined in

src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:20

Properties

renderActiveLegLast

Protected Readonly renderActiveLegLast: boolean = true

Whether to render the active leg last. Defaults to true.

Defined in

src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:20


renderOrder

Protected Readonly renderOrder: FlightPathPlanRenderOrder = 'forward'

The order which this renderer renders the flight plan legs. Forward order renders the legs in a first-to-last fashion. Reverse order renders the legs in a last-to-first fashion. Defaults to forward.

Defined in

src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:20

Methods

render

render(plan, startIndex, endIndex, context, streamStack, ...args): void

Renders a flight plan path to a canvas.

Parameters

NameTypeDescription
planFlightPlanThe flight plan to render.
startIndexundefined | numberThe global index of the first flight plan leg to render, inclusive. Defaults to 0.
endIndexundefined | numberThe global index of the last flight plan leg to render, inclusive. Defaults to plan.length - 1.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
...argsArgsAdditional arguments.

Returns

void

Defined in

src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:32


renderLeg

renderLeg(leg, plan, activeLeg, legIndex, activeLegIndex, context, streamStack, ...args): void

Renders a flight plan leg.

Parameters

NameTypeDescription
legLegDefinitionThe flight plan leg to render.
planFlightPlanThe flight plan containing the leg to render.
activeLegundefined | LegDefinitionThe active leg in the flight plan.
legIndexnumberThe global index of the leg in its flight plan.
activeLegIndexnumberThe global index of the active flight plan leg.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
...argsArgs-

Returns

void

Defined in

src/sdk/components/map/AbstractFlightPathPlanRenderer.ts:87