34 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
38 void G4OpenGLXmViewer::resize_callback (Widget
w,
42 expose_callback(w,clientData,x);
47 void G4OpenGLXmViewer::expose_callback (Widget
w,
51 G4OpenGLXmViewer* pView = (G4OpenGLXmViewer*) clientData;
52 Dimension
width, height;
59 pView->ResizeWindow(width,height);
69 void G4OpenGLXmViewer::print_callback (Widget,
73 G4OpenGLXViewer* pView = (G4OpenGLXmViewer*) clientData;
77 void 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;
90 void 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;