API / geotoolkit / schematics / FixedTrackWidthStrategy / FixedTrackWidthStrategy
schematics.FixedTrackWidthStrategy.FixedTrackWidthStrategy
The strategy sets track width equal to the passed value
↳
FixedTrackWidthStrategy
Constructors
Constructors
• new FixedTrackWidthStrategy(width?)
| Name | Type |
|---|---|
Optional width | number |
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