ProjectedTextures
Prototype software for spacial augmented reality applications.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
ProjectorWidget.h
Go to the documentation of this file.
1 #ifndef PROJECTORWIDGET_H
2 #define PROJECTORWIDGET_H
3 
4 #include <QTimer>
5 #include "ui_ProjectorWidget.h"
6 #include "Geometry.h"
7 #include "Projector.h"
8 #include "RenderBase.h"
9 
16  public RenderBase
17 {
18  Q_OBJECT
19 
20 public:
25  ProjectorWidget(ShaderManager* shaders, QList<Geometry*>* geometries, QWidget *parent = 0);
27 
28  void setProjector(Projector* projector){this->projector = projector;}
30 protected:
32  QTimer* updateTimer;
35  void initializeGL();
36  void resizeGL(int w, int h);
37  void paintGL();
42 private:
43  Ui::ProjectorWidget ui;
44 
45 
46 public slots:
47  void setIntensityCorrection(bool enable){intensityCorrection = enable;}
48 
49 };
50 
51 #endif // PROJECTORWIDGET_H