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

Revision 2017, 938 bytes checked in by mattausch, 18 years ago (diff)

changed to static cast

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