-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
86 lines (74 loc) · 1.7 KB
/
main.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
/*
* main.h
*
* Created on: 21 Jul 2012
* Author: thomas
*/
#ifndef MAIN_H_
#define MAIN_H_
#include <QImage>
#include <QApplication>
#include <QString>
#include <QPushButton>
#include <QTimer>
#include <QVBoxLayout>
#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include <qmessagebox.h>
#include <QVBoxLayout>
#include <QCheckBox>
#include <QTextEdit>
#include <QComboBox>
#include <QMouseEvent>
#include <qlineedit.h>
#include <QPushButton>
#include <QFileDialog>
#include <QPainter>
#include <locale>
#include <string>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <iomanip>
#include <iostream>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/filesystem.hpp>
#include "Logger.h"
class MainWindow : public QWidget
{
Q_OBJECT;
public:
MainWindow(Logger * logger);
virtual ~MainWindow();
private slots:
void timerCallback();
void recordToggle();
void quit();
void fileBrowse();
void dateFilename();
private:
Logger * logger;
QImage depthImage;
QImage rgbImage;
bool recording;
QPushButton * startStop;
QPushButton * browseButton;
QPushButton * dateNameButton;
QLabel * logFile;
unsigned short depthBuffer[640 * 480 * 2];
QLabel * depthLabel;
QLabel * imageLabel;
QTimer * timer;
cv::Mat1b tmp;
QPainter * painter;
int lastDrawn;
std::vector<int64_t> frameStats;
int64_t lastFrameTime;
std::string logFolder;
std::string lastFilename;
std::string getNextFilename();
};
#endif /* MAIN_H_ */