-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.h
86 lines (54 loc) · 1.56 KB
/
app.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef APP_H
#define APP_H
#include <QThread>
#include <string>
#include <opengev.h>
#include <Application/gvapplication.h>
#include <Device/gvdevice.h>
#include <DeviceCommandHandler/devicecommandhandlerfactory.h>
#include "CommonStream/streamrawdataleader.h"
#include "CommonStream/streamrawdatapayload.h"
#include "CommonStream/streamrawdatatrailer.h"
#include "iostream"
#include <ApplicationStreamDataObserver/depthstreamdataobserver.h>
#include <ApplicationStreamDataObserver/colorstreamdataobserver.h>
#include <ApplicationStreamDataObserver/depthcolorstreamdataobserver.h>
#include "simpleviewer.h"
#define STREAM_PACKET_DELAY 10000
#define STREAM_PACKET_SIZE 576
#define DEPTH 0x100
#define RGB 0x010
#define DEPTHRBG 0x001
#define DEPTH_RGB (DEPTH | RGB)
#define DEPTH_RGB_DEPTHRBG (DEPTH | RGB | DEPTHRGB)
class App : public QThread
{
Q_OBJECT
public:
App(int channels, int packetSize, int packetDelay);
std::string a = "MAN_NAME";
std::string b = "MODEL_NAME";
std::string c = "DEVICE_VERSION";
GVApplication* app;
PartnerDevice pdevice;
DepthStreamDataObserver* obs1;
ColorStreamDataObserver* obs2;
DepthColorStreamDataObserver* obs3;
QTimer* timer;
SimpleViewer* simpleViewer;
bool initPartnerDevice = true;
bool initControlChannel = true;
bool initStreamChannel = true;
int channels;
int packetSize;
int packetDelay;
int vfov, hfov;
signals:
void initialization();
public slots:
void checkSlot();
void setupTimer();
protected:
void run();
};
#endif // APP_H