public final class ImageEntry extends Object implements Comparable<ImageEntry>, Cloneable
Modifier and Type | Field and Description |
---|---|
private Double |
elevation
Elevation (altitude) in meters
|
private LatLon |
exifCoor |
private Date |
exifGpsTime
Temporary source of GPS time if not correlated with GPX track.
|
private Double |
exifImgDir |
private Integer |
exifOrientation |
private Date |
exifTime |
private File |
file |
private Date |
gpsTime
The time after correlation with a gpx track
|
private boolean |
isNewGpsData
Flag isNewGpsData indicates that the GPS data of the image is new or has changed.
|
private CachedLatLon |
pos
The following values are computed from the correlation with the gpx track
or extracted from the image EXIF data.
|
private Double |
speed
Speed in kilometer per second
|
(package private) Image |
thumbnail |
(package private) ImageEntry |
tmp
When the correlation dialog is open, we like to show the image position
for the current time offset on the map in real time.
|
Constructor and Description |
---|
ImageEntry() |
Modifier and Type | Method and Description |
---|---|
void |
applyTmp()
Copy the values from the temporary variable to the main instance.
|
void |
cleanTmp()
Make a fresh copy and save it in the temporary variable.
|
ImageEntry |
clone() |
int |
compareTo(ImageEntry image) |
void |
flagNewGpsData()
Indicates that the image has new GPS data.
|
private static Date |
getDefensiveDate(Date date) |
Double |
getElevation() |
LatLon |
getExifCoor() |
Date |
getExifGpsTime()
Returns the EXIF GPS time.
|
Double |
getExifImgDir() |
Integer |
getExifOrientation() |
Date |
getExifTime() |
File |
getFile()
other getter methods
|
Date |
getGpsTime() |
CachedLatLon |
getPos()
getter methods that refer to the temporary value
|
Double |
getSpeed() |
boolean |
hasExifGpsTime()
Convenient way to determine if this entry has a EXIF GPS time, without the cost of building a defensive copy.
|
boolean |
hasExifTime()
Convenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.
|
boolean |
hasGpsTime()
Convenient way to determine if this entry has a GPS time, without the cost of building a defensive copy.
|
boolean |
hasNewGpsData()
Queries whether the GPS data changed.
|
boolean |
hasThumbnail() |
boolean |
isTagged()
If it has been tagged i.e. matched to a gpx track or retrieved lat/lon from exif
|
void |
setElevation(Double elevation) |
void |
setExifCoor(LatLon exifCoor) |
void |
setExifGpsTime(Date exifGpsTime)
Sets the EXIF GPS time.
|
void |
setExifImgDir(double exifDir) |
void |
setExifOrientation(Integer exifOrientation) |
void |
setExifTime(Date exifTime) |
void |
setFile(File file) |
void |
setGpsTime(Date gpsTime) |
void |
setPos(CachedLatLon pos)
setter methods
|
void |
setPos(LatLon pos) |
void |
setSpeed(Double speed) |
String |
toString()
String representation.
|
private Integer exifOrientation
private Double exifImgDir
private boolean isNewGpsData
private Date exifGpsTime
private CachedLatLon pos
ImageEntry tmp
public ImageEntry()
public CachedLatLon getPos()
public Double getElevation()
public Date getGpsTime()
public final boolean hasGpsTime()
true
if this entry has a GPS timepublic Integer getExifOrientation()
public Date getExifTime()
public final boolean hasExifTime()
true
if this entry has a EXIF timepublic final Date getExifGpsTime()
public final boolean hasExifGpsTime()
true
if this entry has a EXIF GPS timeprivate static Date getDefensiveDate(Date date)
public LatLon getExifCoor()
public Double getExifImgDir()
public boolean hasThumbnail()
public void setPos(CachedLatLon pos)
public void setElevation(Double elevation)
public void setExifOrientation(Integer exifOrientation)
public void setExifTime(Date exifTime)
public final void setExifGpsTime(Date exifGpsTime)
exifGpsTime
- the EXIF GPS timepublic void setGpsTime(Date gpsTime)
public void setExifCoor(LatLon exifCoor)
public void setExifImgDir(double exifDir)
public ImageEntry clone()
public int compareTo(ImageEntry image)
compareTo
in interface Comparable<ImageEntry>
public void cleanTmp()
public void applyTmp()
public boolean isTagged()
public void flagNewGpsData()
public boolean hasNewGpsData()
true
if GPS data changed, false
otherwise