39#include <Xm/ToggleB.h>
47 XmScaleCallbackStruct *cbs = (XmScaleCallbackStruct*) callData;
53 XmNdecimalPoints, &dp,
83 XmScaleCallbackStruct *cbs = (XmScaleCallbackStruct*) callData;
89 XmNdecimalPoints, &dp,
113 XtPointer clientData,
116 XmArrowButtonCallbackStruct *cbs = (XmArrowButtonCallbackStruct*) callData;
121 if (cbs->reason == XmCR_ARM) {
123 }
else if (cbs->reason == XmCR_DISARM) {
129 XtIntervalId* timer_id)
152 tp += delta * unitRight;
161 timer_id == NULL ? 500 : 1,
167 XtPointer clientData,
170 XmArrowButtonCallbackStruct *cbs = (XmArrowButtonCallbackStruct*) callData;
175 if (cbs->reason == XmCR_ARM) {
177 }
else if (cbs->reason == XmCR_DISARM) {
183 XtIntervalId* timer_id)
202 tp += delta * unitUp;
211 timer_id == NULL ? 500 : 1,
217 XtPointer clientData,
220 XmScaleCallbackStruct *cbs = (XmScaleCallbackStruct*) callData;
226 XmNdecimalPoints, &dp,
231 }
else if ( dp > 0) {
233 ten_to_the_dp *= 10.;
G4GLOB_DLL std::ostream G4cout
static void set_pan_sens_callback(Widget w, XtPointer clientData, XtPointer callData)
static void pan_up_down_callback(Widget w, XtPointer clientData, XtPointer callData)
static void pan_left_right_callback(Widget w, XtPointer clientData, XtPointer callData)
static G4bool get_boolean_userData(Widget w)
static void zoom_callback(Widget w, XtPointer clientData, XtPointer callData)
static void dolly_callback(Widget w, XtPointer clientData, XtPointer callData)
static void up_down_pan_callback(XtPointer clientData, XtIntervalId *timer_id)
static void left_right_pan_callback(XtPointer clientData, XtIntervalId *timer_id)
const G4Point3D & GetStandardTargetPoint() const
G4Scene * GetScene() const
virtual void DrawView()=0
G4VSceneHandler * GetSceneHandler() const
void SetCurrentTargetPoint(const G4Point3D ¤tTargetPoint)
const G4Vector3D & GetViewpointDirection() const
const G4Point3D & GetCurrentTargetPoint() const
void SetDolly(G4double dolly)
const G4Vector3D & GetUpVector() const
void SetZoomFactor(G4double zoomFactor)
BasicVector3D< T > cross(const BasicVector3D< T > &v) const
BasicVector3D< T > unit() const