ProjectedTextures
Prototype software for spacial augmented reality applications.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
CameraWidget.h
Go to the documentation of this file.
1 #ifndef CAMERAWIDGET_H
2 #define CAMERAWIDGET_H
3 
4 #include <QWidget>
5 #include <QTimer>
6 #include "ui_CameraWidget.h"
7 #include "CamViewWidget.h"
8 
9 
14 class CameraWidget : public QWidget
15 {
16  Q_OBJECT
17 
18 public:
19  CameraWidget(QWidget *parent = 0);
20  ~CameraWidget();
21 
26  void initialize(CamViewWidget* camViewWidget, QList<Camera*>* cameras);
27 
28 protected:
30  QList<Camera*>* cameras;
31  int curCamIdx;
32  void disconnectCamQT();
33  void connectCamQT();
35 private:
36  Ui::CameraWidget ui;
37 
38 private slots:
39  void nextCamera();
40  void prevCamera();
42 public slots:
43  void setFps(int fps);
45 };
46 
47 #endif // CAMERAWIDGET_H