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

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

cleaned up solution

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