ProjectedTextures
Prototype software for spacial augmented reality applications.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
CamViewWidget.h
Go to the documentation of this file.
1 #ifndef CAMVIEWWIDGET_H
2 #define CAMVIEWWIDGET_H
3 
4 #include <QTimer>
5 #include "ui_CamViewWidget.h"
6 #include "Geometry.h"
7 #include "ViewportSquare.h"
8 #include "Camera.h"
9 #include "RenderBase.h"
10 
11 
15 class CamViewWidget :
16  public RenderBase
17 {
18  Q_OBJECT
19 
20 public:
25  CamViewWidget(ShaderManager* shaders, QList<Geometry*>* geometries, QWidget *parent = 0);
27 
28 protected:
31  QTimer* updateTimer;
34  void initializeGL();
35  void resizeGL(int w, int h);
36  void paintGL();
42 private:
43  Ui::CamViewWidget ui;
44 
45 
46 public slots:
47  void setFramerate(int fps);
48  void setCamera(Camera* cam);
49 };
50 
51 #endif // CAMVIEWWIDGET_H