-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtwidget.h
67 lines (55 loc) · 1.38 KB
/
qtwidget.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
#ifndef QCVWIDGET_H
#define QCVWIDGET_H
#include <QMainWindow>
#include <QThread>
#include <QLabel>
#include <QVector>
#include <string>
#include <vector>
#include <concurrent_queue.h>
#include <fscreen.h>
#include <changeIP.h>
using namespace std;
using namespace tbb;
Q_DECLARE_METATYPE(vector<string>);
Q_DECLARE_METATYPE(vector<concurrent_queue<QImage>*>);
Q_DECLARE_METATYPE(int);
QT_USE_NAMESPACE
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
private:
Ui::MainWindow *ui;
vector<QLabel*> qlabels;
QThread *qthread,*qthread2,*qthread3;
QTimer *workerTrigger,*workerTrigger2,*workerTrigger3;
QImage tmpQImg;
vector<QString> chanlbls={
"400 nm","500 nm","600 nm","700 nm",
"800 nm", "900 nm", "Thermal"
};
FScreen f;
ChangeIP IPdialog;
void setup();
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
signals:
void sendSetup(vector<std::string> device);
void sendToggleStream();
void sendRedshift(double z);
void sendFscreen();
void sendIPchange();
private slots:
void receiveFrames(vector<concurrent_queue<QImage>*> Qqueue);
void receiveToggleStream();
void receiveRedshift(int zshift);
void receiveQuit();
void receiveFscreen();
void receiveIPchange();
void receiveExitFscreen();
};
#endif // QCVWIDGET_H