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);
62 void multMatrixd(
const GLdouble*);
63 void setMatrixUniforms();
66 void wtDrawArrays(GLenum mode,
int first,
G4int nPoints, std::vector<double> a_vertices);
74 void mousePressEvent(Wt::WMouseEvent *event);
75 void mouseMoveEvent(Wt::WMouseEvent *event);
76 void mouseDoubleClickEvent(Wt::WMouseEvent *event);
77 void mouseReleaseEvent(Wt::WMouseEvent event);
79 void keyPressEvent (Wt::WKeyEvent *event);
80 void paintEvent(Wt::WPaintDevice * event);
85 JavaScriptMatrix4x4 jsMatrix_;
99 std::vector<double>
data;
100 std::vector <Buffer> VBO_Buffer;
const XML_Char const XML_Char * data