-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathimagedata.h
67 lines (54 loc) · 1.53 KB
/
imagedata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/** @file imagedata.h
* Hlavickovy soubor tridy ImageData dedici ze tridy QObject obsahujici data nactena z fotografie
*/
#ifndef IMAGEDATA_H
#define IMAGEDATA_H
#include "exifreaderwriter.h"
#include <QDateTime>
#include <QFileSystemWatcher>
#include <QImage>
#include <QImageReader>
#include <QObject>
#include <QTimer>
#define RELOAD_TIMER_INTERVAL 1500
class ImageData : public QObject {
Q_OBJECT
public:
explicit ImageData(QObject* parent = 0);
int id;
int gpsSource; // 1 = z fotografie
// 2 = prirazene z trasy
// 3 = prirazene rucne
QString pictureName;
QDateTime* dateTime;
QDateTime originalDateTime;
QDateTime lastDateTimeSaved;
bool isDateTimeChanged;
bool isGps;
bool isDateTimeSaved;
bool isGpsSaved;
double latitude;
double longitude;
double altitude;
double direction;
double angleOfView;
double objLatitude;
double objLongitude;
QImage* image_small = NULL;
int loadData(QString pictureFName);
void scaleImage(QString pictureName);
QSize scaleSize;
ExifReaderWriter* exifRW;
QFileSystemWatcher* watcher;
QTimer* reloadTimer;
signals:
void readExif(QString n);
void imageReloadDone();
public slots:
void setDateTime(QDateTime dateTime);
void setGps(double _lat, double _lon, double _alt, double _direction, double _angleOfView);
void setObjGps(double _lat, double _lon);
void imageReload();
void watchedFileChanged(const QString filename);
};
#endif // IMAGEDATA_H