API / geotoolkit / deviation / TrackWidthStrategy / TrackWidthStrategy
deviation.TrackWidthStrategy.TrackWidthStrategy
This class defines abstract strategy how to scale track width
TrackWidthStrategy
Constructors
Methods
▸ getClassName(): string
string
▸ getDeviceLength(trajectory, tr): Object
Calculates trajectory widths (both: model and device)
| Name | Type | Description |
|---|---|---|
trajectory | Trajectory2d | trajectory |
tr | Transformation | transformation to device |
Object
| Name | Type |
|---|---|
devicelength | number |
length | number |
▸ Abstract getWidth(tr, options): number
Return track width in pixels
| Name | Type | Description |
|---|---|---|
tr | Transformation | transformation to device |
options | Object | options |
options.trajectory | Trajectory2d | |
options.width | number |
number
▸ Static getClassName(): string
string