67 XtVaGetValues (XtParent(w),
78 std::ostringstream rot_Name;
82 (
char*)rot_Name.str().c_str());
87 XtCallbackRec* rot_cb_list =
new XtCallbackRec[2];
89 rot_cb_list[0].closure = pView;
90 rot_cb_list[1].callback = NULL;
110 XtCallbackRec* rot_slider_list =
new XtCallbackRec[2];
112 rot_slider_list[0].closure = pView;
113 rot_slider_list[1].callback = NULL;
127 XtCallbackRec** rotation_callbacks =
new XtCallbackRec*[4];
128 for (
G4int i = 0; i < 4; i++) {
129 rotation_callbacks[i] =
new XtCallbackRec[2];
132 rotation_callbacks[0][0].closure = pView;
133 rotation_callbacks[0][1].callback = NULL;
136 rotation_callbacks[1][0].closure = pView;
137 rotation_callbacks[1][1].callback = NULL;
140 rotation_callbacks[2][0].closure = pView;
141 rotation_callbacks[2][1].callback = NULL;
144 rotation_callbacks[3][0].closure = pView;
145 rotation_callbacks[3][1].callback = NULL;
164 std::ostringstream pan_Name;
168 (
char*)pan_Name.str().c_str());
175 XtCallbackRec** pan_callbacks =
new XtCallbackRec*[4];
176 for (
G4int i = 0; i < 4; i++) {
177 pan_callbacks[i] =
new XtCallbackRec[2];
180 pan_callbacks[0][0].closure = pView;
181 pan_callbacks[0][1].callback = NULL;
184 pan_callbacks[1][0].closure = pView;
185 pan_callbacks[1][1].callback = NULL;
188 pan_callbacks[2][0].closure = pView;
189 pan_callbacks[2][1].callback = NULL;
192 pan_callbacks[3][0].closure = pView;
193 pan_callbacks[3][1].callback = NULL;
199 XtCallbackRec* pan_slider_list =
new XtCallbackRec[2];
201 pan_slider_list[0].closure = pView;
202 pan_slider_list[1].callback = NULL;
217 XtCallbackRec* zoom_slider_list =
new XtCallbackRec[2];
219 zoom_slider_list[0].closure = pView;
220 zoom_slider_list[1].callback = NULL;
235 XtCallbackRec* dolly_slider_list =
new XtCallbackRec[2];
237 dolly_slider_list[0].closure = pView;
238 dolly_slider_list[1].callback = NULL;
262 std::ostringstream set_Name;
266 (
char*)set_Name.str().c_str());
290 XtCallbackRec* ok_list =
new XtCallbackRec[2];
292 ok_list[0].closure = pView;
293 ok_list[1].callback = NULL;
316 (
"G4OpenGLXmViewer::actions_callback",
318 "Unrecognised widget child of control_callback");
327 XtPointer clientData,
332 XtVaGetValues (XtParent(w),
343 std::ostringstream misc_Name;
347 (
char*)misc_Name.str().c_str());
352 XtCallbackRec* wob_cb_list =
new XtCallbackRec[2];
354 wob_cb_list[0].closure = pView;
355 wob_cb_list[1].callback = NULL;
361 XtCallbackRec* wobble_slider_list =
new XtCallbackRec[2];
363 wobble_slider_list[0].closure = pView;
364 wobble_slider_list[1].callback = NULL;
380 XtCallbackRec* rst_cb_list =
new XtCallbackRec[3];
382 rst_cb_list[0].closure = pView;
384 rst_cb_list[1].closure = pView;
385 rst_cb_list[2].callback = NULL;
396 XtCallbackRec* proj_cb_list =
new XtCallbackRec[2];
398 proj_cb_list[0].closure = pView;
399 proj_cb_list[1].callback = NULL;
435 std::ostringstream print_Name;
439 (
char*)print_Name.str().c_str());
450 XtCallbackRec* prcol_cb_list =
new XtCallbackRec[2];
452 prcol_cb_list[0].closure = pView;
453 prcol_cb_list[1].callback = NULL;
472 XtCallbackRec* prsty_cb_list =
new XtCallbackRec[2];
474 prsty_cb_list[0].closure = pView;
475 prsty_cb_list[1].callback = NULL;
497 XtCallbackRec* pri_cb_list =
new XtCallbackRec[2];
499 pri_cb_list[0].closure = pView;
500 pri_cb_list[1].callback = NULL;
517 (
"G4OpenGLXmViewer::misc_callback",
519 "Unrecognised widget child of misc_callback.");
527 XtPointer clientData,
530 XmScaleCallbackStruct *cbs = (XmScaleCallbackStruct*) callData;
536 XmNdecimalPoints, &dp,
541 }
else if ( dp > 0) {
543 ten_to_the_dp *= 10.;
547 (
"G4OpenGLXmViewer::set_wob_sens_callback",
549 "Bad value returned for dp in set_rot_sens_callback");
556 XtPointer clientData,
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::string getRealPrintFilename()
void AddChild(G4OpenGLXmVWidgetComponent *)
void AddChild(G4OpenGLXmVWidgetComponent *)
void SetMinValue(G4double)
void SetInitialValue(G4double)
void SetMaxValue(G4double)
void AddChild(G4OpenGLXmVWidgetContainer *)
G4OpenGLXmPushButton * fpok_button
G4OpenGLXmTopLevelShell * fpmiscellany_top
static void set_pan_sens_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmFramedBox * fpprint_style_box
G4OpenGLXmPushButton * fpwobble_button
G4OpenGLXmBox * fprotation_slider_box
static void set_wob_sens_callback(Widget w, XtPointer clientData, XtPointer callData)
static void phi_rotation_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmSliderBar * fppanning_slider
static void set_print_colour_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmSliderBar * fprotation_slider
G4OpenGLXmTextField * fpfov_text
G4OpenGLXmTextField * fprot_set
G4OpenGLXmBox * fprotation_button_box
static void set_rot_sens_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmTopLevelShell * fpsetting_top
G4OpenGLXmTextField * fpdolly_lower
G4OpenGLXmTextField * fpzoom_lower
G4OpenGLXmRadioButton * fpperspective_button
static void pan_up_down_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmSeparator * fpprint_line
G4OpenGLXmRadioButton * fpprint_style_radio1
G4OpenGLXmFramedBox * fpproj_style_box
G4OpenGLXmPushButton * fpreset_button
static void print_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmRadioButton * fporthogonal_button
static void pan_left_right_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmTextField * fpprint_text
G4OpenGLXmTopLevelShell * fpprint_top
G4OpenGLXmFramedBox * fpzoom_box
static void set_print_style_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmFramedBox * fpprint_box
G4OpenGLXmPushButton * fpprint_button
G4OpenGLXmRadioButton * fpprint_style_radio2
static void projection_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmTextField * fpdolly_upper
static void set_rot_subject_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmRadioButton * fprotation_button1
G4OpenGLXmFramedBox * fppanning_box
G4OpenGLXmBox * fprotation_arrow_box
G4OpenGLXmFramedBox * fpprint_col_box
G4OpenGLXmSliderBar * fpwobble_slider
static void zoom_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmTopLevelShell * fppanning_top
G4OpenGLXmRadioButton * fpprint_col_radio1
G4OpenGLXmSliderBar * fpzoom_slider
G4OpenGLXmFramedBox * fpsetting_box
G4OpenGLXmTopLevelShell * fprotation_top
static void misc_callback(Widget w, XtPointer clientData, XtPointer callData)
static void dolly_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmSliderBar * fpdolly_slider
G4OpenGLXmRadioButton * fprotation_button2
G4OpenGLXmFramedBox * fpdolly_box
static void theta_rotation_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmTextField * fpzoom_upper
G4OpenGLXmRadioButton * fpprint_col_radio2
G4OpenGLXmFramedBox * fpwobble_box
static void actions_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmFourArrowButtons * fprotation_arrow
static void reset_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmFramedBox * fpreset_box
static void wobble_callback(Widget w, XtPointer clientData, XtPointer callData)
void UpdateControlPanel()
G4OpenGLXmTextField * fppan_set
static void update_panels_callback(Widget w, XtPointer clientData, XtPointer callData)
G4OpenGLXmFourArrowButtons * fppanning_arrows
const G4VisExtent & GetExtent() const
G4Scene * GetScene() const
G4int GetSceneHandlerId() const
const G4ViewParameters & GetViewParameters() const
G4VSceneHandler * GetSceneHandler() const
G4double GetFieldHalfAngle() const
G4double GetZoomFactor() const
G4bool GetLightsMoveWithCamera() const
G4double GetDolly() const
G4double GetExtentRadius() const
static G4Xt * getInstance()