33 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER
35 #ifndef G4OPENGLIMMEDIATEQTVIEWER_HH
36 #define G4OPENGLIMMEDIATEQTVIEWER_HH
45 class G4OpenGLImmediateSceneHandler;
47 class G4OpenGLImmediateQtViewer:
48 public G4OpenGLQtViewer,
public G4OpenGLImmediateViewer,
public QGLWidget {
51 G4OpenGLImmediateQtViewer (G4OpenGLImmediateSceneHandler& scene,
53 ~G4OpenGLImmediateQtViewer ();
57 void resizeGL(
int width,
int height);
63 void showEvent(QShowEvent * event );
64 void wheelEvent(QWheelEvent *event);
65 void mousePressEvent(QMouseEvent *event);
66 void mouseMoveEvent(QMouseEvent *event);
67 void mouseDoubleClickEvent(QMouseEvent *event);
68 void mouseReleaseEvent(QMouseEvent *event);
69 void contextMenuEvent(QContextMenuEvent *e);
70 void keyPressEvent (QKeyEvent * event);
71 void keyReleaseEvent (QKeyEvent * event);
72 void paintEvent(QPaintEvent *event);