-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlifesupport.h
49 lines (43 loc) · 1 KB
/
lifesupport.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
#ifndef LIFESUPPORT_H
#define LIFESUPPORT_H
#include <QObject>
#include <QProcess>
#include <QTextBrowser>
#include <QString>
#include <QPointF>
constexpr double EARTH_RADIUS_IN_METERS = 6372797.560856;
constexpr double DEG_TO_RAD = 0.017453292519943295769236907684886;
class LifeSupport : public QObject
{
public:
LifeSupport(QProcess* classifier, QTextBrowser* consoleOutput) ;
QProcess* classifier ;
QTextBrowser* consoleOutput ;
QString filePath, imagePath ;
~LifeSupport() ;
};
struct LatLon
{
double lat = 0;
double lon = 0;
QPointF convertToXY(double avgLat);
static LatLon xyToLatLon(QPointF xy, double avgLat);
};
struct TargetData
{
QString imagePath;
QString name;
QString coord;
int x;
int y;
LatLon latlon;
QString desc;
QChar alphanumeric;
QString shape;
QString shapeColor;
QString alphanumericColor;
QString orientation;
// converts target info into a unique id string
QString idStr();
};
#endif // LIFESUPPORT_H