32 #ifdef G4VIS_BUILD_OPENGLWT_DRIVER
56 G4VSceneHandler* pScene =
new G4OpenGLImmediateSceneHandler (*
this, name);
62 #ifdef G4DEBUG_VIS_OGL
63 printf(
"G4OpenGLImmediateWt::CreateViewer \n");
66 #ifdef G4DEBUG_VIS_OGL
67 printf(
"G4OpenGLImmediateWt::CreateViewer after Get Pointer\n");
69 if (UI == NULL)
return NULL;
71 if (! static_cast<G4UIWt*> (UI->
GetG4UIWindow()))
return NULL;
77 #ifdef G4DEBUG_VIS_OGL
78 printf(
"G4OpenGLImmediateWt::CreateViewer uiWt\n");
80 uiWt->AddTabWidget(
new Wt::WLabel(
"Test..."),
"my name",50,50);
84 new G4OpenGLImmediateWtViewer
87 #ifdef G4DEBUG_VIS_OGL
88 printf(
"G4OpenGLImmediateWt::CreateViewer lastInsert :%d\n",uiWt->getLastTabContainerInsert());
92 if (pView -> GetViewId () < 0) {
93 G4cerr <<
"G4OpenGLImmediateWt::CreateViewer: error flagged by negative"
94 " view id in G4OpenGLImmediateWtViewer creation."
95 "\n Destroying view and returning null pointer."
102 G4cerr <<
"G4OpenGLImmediateWt::CreateViewer: null pointer on"
103 " new G4OpenGLImmediateWtViewer." <<
G4endl;
106 #ifdef G4DEBUG_VIS_OGL
107 printf(
"G4OpenGLImmediateWt::CreateViewer END \n");