Package org.openstreetmap.josm.data.gpx
Class GpxImageDirectionPositionSettings
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.GpxImageDirectionPositionSettings
-
public class GpxImageDirectionPositionSettings extends java.lang.Object
Image direction / position modification settings used byGpxImageCorrelationSettings.- Since:
- 18061
-
-
Field Summary
Fields Modifier and Type Field Description private doubleelevationShiftprivate doubleimageDirectionAngleOffsetprivate booleansetGpxTrackDirectionprivate booleansetImageDirectionprivate doubleshiftImageXprivate doubleshiftImageY
-
Constructor Summary
Constructors Constructor Description GpxImageDirectionPositionSettings(boolean setImageDirection, double imageDirectionAngleOffset, boolean setGpxTrackDirection, double shiftImageX, double shiftImageY, double elevationShift)Constructs a newGpxImageDirectionPositionSettings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetElevationShift()Returns image elevation shift in metersdoublegetImageDirectionAngleOffset()Returns direction angle offset in degreesdoublegetShiftImageX()Returns image shift on X axis relative to the direction in metersdoublegetShiftImageY()Returns image shift on Y axis relative to the direction in metersbooleanisSetGpxTrackDirection()Determines if GPS course direction must be set.booleanisSetImageDirection()Determines if image direction must be set towards the next GPX waypointjava.lang.StringtoString()
-
-
-
Field Detail
-
setImageDirection
private final boolean setImageDirection
-
imageDirectionAngleOffset
private final double imageDirectionAngleOffset
-
setGpxTrackDirection
private final boolean setGpxTrackDirection
-
shiftImageX
private final double shiftImageX
-
shiftImageY
private final double shiftImageY
-
elevationShift
private final double elevationShift
-
-
Constructor Detail
-
GpxImageDirectionPositionSettings
public GpxImageDirectionPositionSettings(boolean setImageDirection, double imageDirectionAngleOffset, boolean setGpxTrackDirection, double shiftImageX, double shiftImageY, double elevationShift)
Constructs a newGpxImageDirectionPositionSettings.- Parameters:
setImageDirection- determines if image direction must be set towards the next GPX waypointimageDirectionAngleOffset- direction angle offset in degreessetGpxTrackDirection- determines if image course direction must be setshiftImageX- image shift on X axis relative to the direction in metersshiftImageY- image shift on Y axis relative to the direction in meterselevationShift- image elevation shift in meters- Since:
- 19387 @setGpsTrackDirection was added
-
-
Method Detail
-
isSetImageDirection
public boolean isSetImageDirection()
Determines if image direction must be set towards the next GPX waypoint- Returns:
trueif image direction must be set towards the next GPX waypoint
-
getImageDirectionAngleOffset
public double getImageDirectionAngleOffset()
Returns direction angle offset in degrees- Returns:
- direction angle offset in degrees
-
isSetGpxTrackDirection
public boolean isSetGpxTrackDirection()
Determines if GPS course direction must be set. Angle value is from the gpx trace.- Returns:
trueif image GPS course must be set- Since:
- 19387
-
getShiftImageX
public double getShiftImageX()
Returns image shift on X axis relative to the direction in meters- Returns:
- image shift on X axis relative to the direction in meters
-
getShiftImageY
public double getShiftImageY()
Returns image shift on Y axis relative to the direction in meters- Returns:
- image shift on Y axis relative to the direction in meters
-
getElevationShift
public double getElevationShift()
Returns image elevation shift in meters- Returns:
- image elevation shift in meters
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-