32 #if defined (G4VIS_BUILD_OPENGLWT_DRIVER) || defined (G4VIS_USE_OPENGLWT)
34 #ifndef G4OPENGLIMMEDIATEWTVIEWER_HH
35 #define G4OPENGLIMMEDIATEWTVIEWER_HH
43 class G4OpenGLImmediateSceneHandler;
45 class G4OpenGLImmediateWtViewer :
46 public G4OpenGLWtViewer,
public G4OpenGLImmediateViewer,
public Wt::WGLWidget {
49 G4OpenGLImmediateWtViewer (G4OpenGLImmediateSceneHandler& scene, Wt::WContainerWidget*,
const G4String&
name =
"");
50 ~G4OpenGLImmediateWtViewer ();
52 void resizeGL(
int,
int);
60 void multMatrixd(
const GLdouble*);
61 void setMatrixUniforms();
69 void mousePressEvent(Wt::WMouseEvent *event);
70 void mouseMoveEvent(Wt::WMouseEvent *event);
71 void mouseDoubleClickEvent(Wt::WMouseEvent *event);
72 void mouseReleaseEvent(Wt::WMouseEvent event);
74 void keyPressEvent (Wt::WKeyEvent *event);
75 void paintEvent(Wt::WPaintDevice * event);
80 JavaScriptMatrix4x4 jsMatrix_;