32#ifdef G4VIS_BUILD_OPENGLWT_DRIVER
56 G4VSceneHandler* pScene =
new G4OpenGLImmediateSceneHandler (*
this, name);
63 printf(
"G4OpenGLImmediateWt::CreateViewer \n");
67 printf(
"G4OpenGLImmediateWt::CreateViewer after Get Pointer\n");
69 if (UI == NULL)
return NULL;
71 if (!
static_cast<G4UIWt*
> (UI->
GetG4UIWindow()))
return NULL;
78 printf(
"G4OpenGLImmediateWt::CreateViewer uiWt\n");
80 uiWt->AddTabWidget(
new Wt::WLabel(
"Test..."),
"my name",50,50);
84 new G4OpenGLImmediateWtViewer
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");
G4String G4VisFeaturesOfOpenGLIWt()
G4DLLIMPORT std::ostream G4cerr
static G4OpenGLViewerMessenger * GetInstance()
G4UIsession * GetG4UIWindow() const
static G4UImanager * GetUIpointer()