31#ifdef G4VIS_BUILD_OPENGLWT_DRIVER
45#include <Wt/WContainerWidget>
58 G4VSceneHandler* pScene =
new G4OpenGLImmediateSceneHandler (*
this, name);
65 printf(
"G4OpenGLImmediateWt::CreateViewer \n");
79 fWGLContainer =
new Wt::WContainerWidget();
81 pView =
new G4OpenGLImmediateWtViewer
82 ((G4OpenGLImmediateSceneHandler&) scene, fWGLContainer, name);
84 if (pView -> GetViewId () < 0) {
85 G4cerr <<
"G4OpenGLImmediateWt::CreateViewer: error flagged by negative"
86 " view id in G4OpenGLImmediateWtViewer creation."
87 "\n Destroying view and returning null pointer."
94 G4cerr <<
"G4OpenGLImmediateWt::CreateViewer: null pointer on"
95 " new G4OpenGLImmediateWtViewer." <<
G4endl;
98 printf(
"G4OpenGLImmediateWt::CreateViewer END \n");
G4String G4VisFeaturesOfOpenGLIWt()
G4GLOB_DLL std::ostream G4cerr
static G4OpenGLViewerMessenger * GetInstance()