33 #ifdef G4VIS_BUILD_OPENGLWT_DRIVER
35 #ifndef G4OPENGLIMMEDIATEWTVIEWER_HH
36 #define G4OPENGLIMMEDIATEWTVIEWER_HH
44 class G4OpenGLImmediateSceneHandler;
46 class G4OpenGLImmediateWtViewer :
47 public G4OpenGLWtViewer,
public G4OpenGLImmediateViewer,
public Wt::WGLWidget {
50 G4OpenGLImmediateWtViewer (G4OpenGLImmediateSceneHandler& scene, Wt::WContainerWidget*,
const G4String&
name =
"");
51 ~G4OpenGLImmediateWtViewer ();
53 void resizeGL(
int,
int);
61 void multMatrixd(
const GLdouble*);
62 void setMatrixUniforms();
70 void mousePressEvent(Wt::WMouseEvent *event);
71 void mouseMoveEvent(Wt::WMouseEvent *event);
72 void mouseDoubleClickEvent(Wt::WMouseEvent *event);
73 void mouseReleaseEvent(Wt::WMouseEvent event);
75 void keyPressEvent (Wt::WKeyEvent *event);
76 void paintEvent(Wt::WPaintDevice * event);
81 JavaScriptMatrix4x4 jsMatrix_;