46 XmArrowButtonCallbackStruct *cbs = (XmArrowButtonCallbackStruct*) callData;
51 if (cbs->reason == XmCR_ARM) {
53 }
else if (cbs->reason == XmCR_DISARM) {
59 XtIntervalId* timer_id)
114 timer_id == NULL ? 500 : 1,
120 XtPointer clientData,
123 XmArrowButtonCallbackStruct *cbs = (XmArrowButtonCallbackStruct*) callData;
128 if (cbs->reason == XmCR_ARM) {
130 }
else if (cbs->reason == XmCR_DISARM) {
136 XtIntervalId* timer_id)
187 timer_id == NULL ? 500 : 1,
193 XtPointer clientData,
196 XmScaleCallbackStruct *cbs = (XmScaleCallbackStruct*) callData;
202 XmNdecimalPoints, &dp,
207 }
else if ( dp > 0) {
209 ten_to_the_dp *= 10.;
213 (
"G4OpenGLXmViewer::set_rot_sens_callback",
215 "Bad value returned for dp in set_rot_sens_callback");
222 XtPointer clientData,
243 (
"G4OpenGLXmViewer::set_rot_subject_callback",
245 "Unrecognised choice made in set_rot_subject_callback");
263 (
long unsigned int) (1000. * (1. / pView->
wob_sens)),
296 (
long unsigned int) (1000. * (1. / pView->
wob_sens)),
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
HepGeom::Point3D< G4double > G4Point3D
void rotateScene(G4double dx, G4double dy)
static void rotate_in_theta(XtPointer clientData, XtIntervalId *timer_id)
static void wobble_timer_callback(XtPointer clientData, XtIntervalId *timerid)
static void phi_rotation_callback(Widget w, XtPointer clientData, XtPointer callData)
static void set_rot_sens_callback(Widget w, XtPointer clientData, XtPointer callData)
XtIntervalId rotation_timer
static void rotate_in_phi(XtPointer clientData, XtIntervalId *timer_id)
static void set_rot_subject_callback(Widget w, XtPointer clientData, XtPointer callData)
static G4bool get_boolean_userData(Widget w)
static G4int get_int_userData(Widget w)
static void theta_rotation_callback(Widget w, XtPointer clientData, XtPointer callData)
static void reset_callback(Widget w, XtPointer clientData, XtPointer callData)
static void wobble_callback(Widget w, XtPointer clientData, XtPointer callData)
XtIntervalId wobble_timer
virtual void DrawView()=0
void SetViewAndLights(const G4Vector3D &viewpointDirection)
void SetCurrentTargetPoint(const G4Point3D ¤tTargetPoint)
const G4Vector3D & GetViewpointDirection() const
void SetDolly(G4double dolly)
const G4Vector3D & GetUpVector() const
void SetZoomFactor(G4double zoomFactor)
void SetLightsMoveWithCamera(G4bool moves)
BasicVector3D< T > cross(const BasicVector3D< T > &v) const