-
Notifications
You must be signed in to change notification settings - Fork 0
/
worldmap.h
54 lines (41 loc) · 1.02 KB
/
worldmap.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
#ifndef WORLDMAP_H
#define WORLDMAP_H
#include <qframe.h>
#include <qpixmap.h>
#include <qpointarray.h>
#include <qpainter.h>
#include <qlabel.h>
#include <qtimer.h>
#include <time.h>
#include <sys/timeb.h>
#include <sys/time.h>
#include "sunpropagator.h"
#include "moonpropagator.h"
class WorldMap : public QFrame
{
Q_OBJECT
public:
WorldMap(QWidget *parent = 0, const char *name = 0);
void setObserver( double, double );
public slots:
void compute();
void plot();
private:
SunPropagator *sun;
MoonPropagator *moon;
QPointArray *sunPoints;
QPixmap *world_pix;
QWidget *map;
QLabel *sunLabel;
QLabel *moonLabel;
int sun_x, sun_y, moon_x, moon_y;
double my_lon, my_lat;
int plotFlag;
struct tm *tm_ptr;
void drawMap();
double arccos( double, double );
void calculateSunFootprint();
protected:
signals:
};
#endif