API / geotoolkit / schematics / WeightedAspectRatioWidthStrategy / WeightedAspectRatioWidthStrategy
schematics.WeightedAspectRatioWidthStrategy.WeightedAspectRatioWidthStrategy
The strategy sets track width according to the equation:
"trackWidth[device] = (trackLength[device] / aspectratio) * (OD[maximum] / OD[medium])"
↳
WeightedAspectRatioWidthStrategy
Constructors
Constructors
• new WeightedAspectRatioWidthStrategy(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