Last updated

API / geotoolkit / deviation / TrackWidthStrategy / TrackWidthStrategy

Class: TrackWidthStrategy

deviation.TrackWidthStrategy.TrackWidthStrategy

This class defines abstract strategy how to scale track width

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new TrackWidthStrategy()

new TrackWidthStrategy()

Methods

getClassName

getClassName(): string

Returns

string


getDeviceLength

getDeviceLength(trajectory, tr): Object

Calculates trajectory widths (both: model and device)

Parameters

Name Type Description
trajectoryTrajectory2dtrajectory
trTransformationtransformation to device

Returns

Object

NameType
devicelengthnumber
lengthnumber

getWidth

Abstract getWidth(tr, options): number

Return track width in pixels

Parameters

Name Type Description
trTransformationtransformation to device
optionsObjectoptions
options.trajectoryTrajectory2d
options.widthnumber

Returns

number


getClassName

Static getClassName(): string

Returns

string