Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
287 Kevin 1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
 
4
#include "GlobalDefines.h"
5
 
6
#define X_RES 320
7
#define Y_RES 240
8
 
9
class DepthMap;
10
class ImageWidget;
11
class DepthProcessor;
12
class RobotControl;
13
class OpenNI;
14
 
15
class MainWindow : public QWidget {
16
	Q_OBJECT
17
 
18
public:
19
	MainWindow(QWidget *parent = 0);
20
	~MainWindow();
21
 
22
public slots:
23
	void updateStatusText(const QString &);
24
	void updateFrameText(const QString &);
25
	void updateFPSText(const QString &);
26
	void updateSelectionList(const QStringList &);
27
	void imageSelectionChanged(const QString &);
28
	void sensorConnected();
29
 
30
signals:
31
	void changeDisplayImage(const int, const QString &);
32
 
33
protected:
34
	void keyPressEvent(QKeyEvent *event);
35
	void keyReleaseEvent(QKeyEvent *event);
36
 
37
private:
38
	ImageWidget *topLeftImage;
39
	ImageWidget *topRightImage;
40
	ImageWidget *botLeftImage;
41
	ImageWidget *botRightImage;
42
 
43
	QComboBox *topLeftSelect;
44
	QComboBox *topRightSelect;
45
	QComboBox *botLeftSelect;
46
	QComboBox *botRightSelect;
47
 
48
	OpenNI *openNIThread;
49
	DepthProcessor *openNIProcessor;
50
 
51
	RobotControl *robot;
52
 
53
	QLabel *statusLabel;
54
	QLabel *frameLabel;
55
	QLabel *fpsLabel;
56
};
57
 
58
#endif MAINWINDOW_H