44 XtVaGetValues (XtParent(w),
70 (
"G4OpenGLXmViewer::drawing_style_callback",
72 "Unrecognised case in drawing_style_callback.");
88 XtVaGetValues (XtParent(w),
102 SetBackgroundColour(
G4Colour(1.,1.,1.));
107 SetBackgroundColour(
G4Colour(0.,0.,0.));
112 (
"G4OpenGLXmViewer::background_color_callback",
114 "Unrecognised case in background_color_callback.");
123 XtPointer clientData,
128 XtVaGetValues (XtParent(w),
144 (
"G4OpenGLXmViewer::transparency_callback",
146 "Unrecognised case in transparency_callback.");
156 XtPointer clientData,
161 XtVaGetValues (XtParent(w),
169 glDisable (GL_LINE_SMOOTH);
170 glDisable (GL_POLYGON_SMOOTH);
175 glEnable (GL_LINE_SMOOTH);
176 glHint (GL_LINE_SMOOTH_HINT, GL_NICEST);
177 glEnable (GL_POLYGON_SMOOTH);
178 glHint (GL_POLYGON_SMOOTH_HINT, GL_NICEST);
183 (
"G4OpenGLXmViewer::antialias_callback",
185 "Unrecognised case in antialiasing_callback.");
194 XtPointer clientData,
199 XtVaGetValues (XtParent(w),
215 (
"G4OpenGLXmViewer::haloing_callback",
217 "Unrecognised case in haloing_callback.");
226 XtPointer clientData,
231 XtVaGetValues (XtParent(w),
247 (
"G4OpenGLXmViewer::aux_edge_callback",
249 "Unrecognised case in aux_edge_callback.");
259 XtPointer clientData,
275 if (pView->
fov > 89.5 || pView->
fov <= 0.0) {
276 G4cout <<
"Field half angle should be 0 < angle <= 89.5 degrees.";
287 (
"G4OpenGLXmViewer::projection_callback",
289 "Unrecognised choice made in projection_callback");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4bool antialiasing_enabled
G4bool transparency_enabled
static void background_color_callback(Widget w, XtPointer clientData, XtPointer callData)
static void antialias_callback(Widget w, XtPointer clientData, XtPointer callData)
static void drawing_style_callback(Widget w, XtPointer clientData, XtPointer callData)
static void haloing_callback(Widget w, XtPointer clientData, XtPointer callData)
static void aux_edge_callback(Widget w, XtPointer clientData, XtPointer callData)
static void projection_callback(Widget w, XtPointer clientData, XtPointer callData)
static G4int get_int_userData(Widget w)
static void transparency_callback(Widget w, XtPointer clientData, XtPointer callData)
virtual void DrawView()=0
const G4ViewParameters & GetViewParameters() const
void SetNeedKernelVisit(G4bool need)
void SetDrawingStyle(G4ViewParameters::DrawingStyle style)
void SetFieldHalfAngle(G4double fieldHalfAngle)
void SetAuxEdgeVisible(G4bool)