32 #if defined (G4VIS_BUILD_OPENGLQT_DRIVER) || defined (G4VIS_USE_OPENGLQT)
34 #ifndef G4OPENGLIMMEDIATEQTVIEWER_HH
35 #define G4OPENGLIMMEDIATEQTVIEWER_HH
44 class G4OpenGLImmediateSceneHandler;
46 class G4OpenGLImmediateQtViewer:
47 public G4OpenGLQtViewer,
public G4OpenGLImmediateViewer,
public QGLWidget {
50 G4OpenGLImmediateQtViewer (G4OpenGLImmediateSceneHandler& scene,
52 ~G4OpenGLImmediateQtViewer ();
56 void resizeGL(
int width,
int height);
62 void showEvent(QShowEvent * event );
63 void wheelEvent(QWheelEvent *event);
64 void mousePressEvent(QMouseEvent *event);
65 void mouseMoveEvent(QMouseEvent *event);
66 void mouseDoubleClickEvent(QMouseEvent *event);
67 void mouseReleaseEvent(QMouseEvent *event);
68 void contextMenuEvent(QContextMenuEvent *
e);
69 void keyPressEvent (QKeyEvent * event);
70 void keyReleaseEvent (QKeyEvent * event);
71 void paintEvent(QPaintEvent *event);