API / geotoolkit / deviation / TrackMinMaxWidthStrategy / TrackMinMaxWidthStrategy
deviation.TrackMinMaxWidthStrategy.TrackMinMaxWidthStrategy
This class defines strategy how to scale track width in the range from min to max
↳
TrackMinMaxWidthStrategy
Constructors
Constructors
• new TrackMinMaxWidthStrategy(options)
| Name | Type |
|---|---|
options | Options |
TrackWidthStrategy.constructor
Methods
▸ getClassName(): string
string
TrackWidthStrategy.getClassName
▸ 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 |
TrackWidthStrategy.getDeviceLength
▸ 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