source: GTP/trunk/Lib/Vis/Preprocessing/src/QtGlRenderer/QtGlViewer.h @ 1926

Revision 1926, 962 bytes checked in by mattausch, 18 years ago (diff)

worked on preprocessor with and without qt and threads

Line 
1#ifndef __QTGLVIEWER_H
2#define __QTGLVIEWER_H
3
4#include <QtOpenGL>
5#include <QWaitCondition>
6
7namespace GtpVisibilityPreprocessor {
8
9class QtGlRendererWidget;
10
11
12class __declspec(dllexport) QtGlViewer: public QGLWidget
13{       
14        //Q_OBJECT
15
16public:
17       
18        QtGlViewer(QWidget *parent, QtGlRendererWidget *renderer);
19
20        virtual ~QtGlViewer() {};
21
22        QSize minimumSizeHint() const;
23        QSize sizeHint() const;
24
25        // This method has to be rendefined by all renderer implementations
26        virtual void RenderScene();
27
28        QtGlRendererWidget *mRenderer;
29
30protected:
31
32        void initializeGL();
33        void paintGL();
34        void resizeGL(int width, int height);
35        void mousePressEvent(QMouseEvent *event);
36        void mouseMoveEvent(QMouseEvent *event);
37
38        void keyPressEvent ( QKeyEvent * e );
39
40        bool mWireframe;
41
42private:
43
44        float manipulatorLastQuat[4];
45        float scale;
46       
47        QPoint lastPos;
48
49        friend class QtGlRendererWidget;
50        friend class GlRenderer;
51};
52
53}
54
55#endif
Note: See TracBrowser for help on using the repository browser.