33#ifdef G4VIS_BUILD_OPENGLWT_DRIVER
35#ifndef G4OPENGLIMMEDIATEWTVIEWER_HH
36#define G4OPENGLIMMEDIATEWTVIEWER_HH
41#include <Wt/WPaintedWidget>
48class G4OpenGLImmediateSceneHandler;
51class G4OpenGLImmediateWtViewer :
public G4VViewer,
52 public Wt::WPaintedWidget {
55 G4OpenGLImmediateWtViewer (G4OpenGLImmediateSceneHandler& scene, Wt::WContainerWidget *,
57 ~G4OpenGLImmediateWtViewer ();
62 G4OpenGLImmediateQtViewer * fQtViewer;
64 void WtWheelEvent(Wt::WMouseEvent event);
65 void WtMousePressEvent(Wt::WMouseEvent event);
66 void WtMouseMoveEvent(Wt::WMouseEvent event);
67 void WtMouseDoubleClickEvent(Wt::WMouseEvent event);
70 void WtKeyPressEvent (Wt::WKeyEvent event);
71 void paintEvent(Wt::WPaintDevice * event);
73 QMouseEvent * ConvertWtMouseEventToQt(Wt::WMouseEvent event);
74 QWheelEvent * ConvertWtWheelEventToQt(Wt::WMouseEvent event);
75 QKeyEvent * ConvertWtKeyEventToQt(Wt::WKeyEvent event);
virtual void DrawView()=0
virtual void ClearView()=0