Revision 2562,
971 bytes
checked in by mattausch, 17 years ago
(diff) |
worked on visualization
|
Rev | Line | |
---|
[1931] | 1 | #ifndef __QTGLVIEWER_H
|
---|
| 2 | #define __QTGLVIEWER_H
|
---|
| 3 |
|
---|
| 4 | #include <QtOpenGL>
|
---|
| 5 |
|
---|
| 6 |
|
---|
[2562] | 7 | namespace GtpVisibilityPreprocessor
|
---|
| 8 | {
|
---|
[1931] | 9 |
|
---|
| 10 | class QtGlRendererWidget;
|
---|
| 11 |
|
---|
[2562] | 12 |
|
---|
[1931] | 13 | class QtGlViewer : public QGLWidget
|
---|
| 14 | {
|
---|
[2562] | 15 | //Q_OBJECT
|
---|
[1984] | 16 |
|
---|
[1931] | 17 | friend class QtGlRendererWidget;
|
---|
| 18 | friend class GlRenderer;
|
---|
| 19 |
|
---|
| 20 | public:
|
---|
| 21 | QtGlRendererWidget *mRenderer;
|
---|
[2562] | 22 |
|
---|
[1931] | 23 | QtGlViewer(QWidget *parent,
|
---|
[2562] | 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 |
|
---|
| 34 | void timerEvent(QTimerEvent *event);
|
---|
| 35 |
|
---|
[1931] | 36 | protected:
|
---|
[2562] | 37 | void initializeGL();
|
---|
| 38 | void paintGL();
|
---|
| 39 | void resizeGL(int width, int height);
|
---|
| 40 | void mousePressEvent(QMouseEvent *event);
|
---|
| 41 | void mouseMoveEvent(QMouseEvent *event);
|
---|
[1931] | 42 |
|
---|
| 43 | void keyPressEvent ( QKeyEvent * e );
|
---|
| 44 |
|
---|
[2562] | 45 | bool mWireframe;
|
---|
| 46 |
|
---|
| 47 | int timerId;
|
---|
| 48 |
|
---|
[1931] | 49 | private:
|
---|
| 50 |
|
---|
| 51 | float manipulatorLastQuat[4];
|
---|
[2562] | 52 | float scale;
|
---|
| 53 | QPoint lastPos;
|
---|
[1931] | 54 |
|
---|
| 55 | };
|
---|
| 56 |
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.