Skip to content

API / geotoolkit / deviation / TrackMinMaxWidthStrategy / TrackMinMaxWidthStrategy

Class: TrackMinMaxWidthStrategy

deviation.TrackMinMaxWidthStrategy.TrackMinMaxWidthStrategy

This class defines strategy how to scale track width in the range from min to max

Hierarchy

Table of contents

Constructors
  • [new TrackMinMaxWidthStrategy(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.deviation.trackminmaxwidthstrategy.trackminmaxwidthstrategy.md#new trackminmaxwidthstrategy(options))
Methods

Contents

Constructors

new TrackMinMaxWidthStrategy(options)

• new TrackMinMaxWidthStrategy(options)

Parameters

Name Type
optionsOptions

Overrides

TrackWidthStrategy.constructor

Methods

getClassName

▸ getClassName(): string

Returns

string

Inherited from

TrackWidthStrategy.getClassName


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

Inherited from

TrackWidthStrategy.getDeviceLength


getWidth

▸ getWidth(tr, options): number

Return track width in pixels

Parameters

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

Returns

number

Overrides

TrackWidthStrategy.getWidth


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

TrackWidthStrategy.getClassName