-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdatethread.h
46 lines (39 loc) · 985 Bytes
/
updatethread.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
#ifndef UPDATETHREAD_H
#define UPDATETHREAD_H
#include <QThread>
#include "daten.h"
#include <QMutex>
#include <QMutexLocker>
#include <QtGui>
class UpdateThread : public QThread
{
Q_OBJECT
public:
explicit UpdateThread(Daten *data,QGraphicsScene *sceneEADI, QGraphicsScene *sceneCourse, QGraphicsScene *sceneWind, QObject *parent = 0);
~UpdateThread();
void drawEADI();
void drawCourse();
void drawWind();
void run();
signals:
void setPos(const QString &pos);
void setAirspeed(const QString &airspeed);
void setGroundspeed(const QString &groundspeed);
void setHeight(const QString &height);
public slots:
void stopSimulation();
private slots:
private:
QGraphicsScene *sceneEADI;
QGraphicsScene *sceneCourse;
QGraphicsScene *sceneWind;
Daten *data;
bool stop;
double oldpit;
double oldbnk;
double oldthg;
double oldtcs;
double oldwve;
double oldwsp;
};
#endif // UPDATETHREAD_H