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 |
|
---|
7 | namespace GtpVisibilityPreprocessor {
|
---|
8 |
|
---|
9 | class QtGlRendererWidget;
|
---|
10 |
|
---|
11 | class QtGlViewer : public QGLWidget
|
---|
12 | {
|
---|
13 |
|
---|
14 | //Q_OBJECT
|
---|
15 |
|
---|
16 | friend class QtGlRendererWidget;
|
---|
17 | friend class GlRenderer;
|
---|
18 |
|
---|
19 | public:
|
---|
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 |
|
---|
33 | protected:
|
---|
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 |
|
---|
44 | private:
|
---|
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.