35#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
39void G4OpenGLXmViewer::resize_callback (Widget w,
43 expose_callback(w,clientData,x);
48void G4OpenGLXmViewer::expose_callback (Widget w,
52 G4OpenGLXmViewer* pView = (G4OpenGLXmViewer*) clientData;
53 Dimension width, height;
60 pView->ResizeWindow(width,height);
62 glXMakeCurrent (pView->dpy, XtWindow(pView->glxarea), pView->cx);
69void G4OpenGLXmViewer::print_callback (Widget,
73 G4OpenGLXViewer* pView = (G4OpenGLXmViewer*) clientData;
77void G4OpenGLXmViewer::set_print_colour_callback (Widget w,
81 G4OpenGLXmViewer* pView = (G4OpenGLXmViewer*)clientData;
83 G4int choice = get_int_userData (w);
85 pView->fPrintColour=(
G4bool)choice;
86 G4cout <<
"Print colour set to " << pView->fPrintColour;
90void G4OpenGLXmViewer::set_print_style_callback (Widget w,
94 G4OpenGLXmViewer* pView = (G4OpenGLXmViewer*)clientData;
96 G4int choice = get_int_userData (w);
98 pView->fVectoredPs=(
G4bool)choice;
99 G4cout <<
"`Produce vectored PostScript ?' set to : " << pView->fPrintColour;
G4DLLIMPORT std::ostream G4cout