33#include <X11/Intrinsic.h>
53 initial_value = int(v * std::pow(10.0, (
G4double)dp));
54 max_value = int(max * std::pow(10.0, (
G4double)dp));
55 min_value = int(min * std::pow(10.0, (
G4double)dp));
75 return decimal_places;
106 XmString sliderbar_string = XmStringCreateLocalized ((
char*)name);
107 XtVaSetValues (sliderbar,
108 XmNlabelString, sliderbar_string,
110 XmStringFree (sliderbar_string);
116 XtVaSetValues (sliderbar,
125 XtVaSetValues (sliderbar,
126 XmNdecimalPoints, decimal_places,
134 XtVaSetValues (sliderbar,
135 XmNvalue, initial_value,
143 XtVaSetValues (sliderbar,
144 XmNmaximum, max_value,
152 XtVaSetValues (sliderbar,
153 XmNminimum, min_value,
161 XtVaSetValues (sliderbar,
162 XmNorientation, orientation,
170 XtVaSetValues (sliderbar,
171 XmNprocessingDirection, direction,
183 XmString name_string = XmStringCreateLocalized ((
char*)name);
184 sliderbar = XtVaCreateManagedWidget (name,
188 XmNtitleString, name_string,
189 XmNmaximum, max_value,
190 XmNminimum, min_value,
191 XmNvalue, initial_value,
193 XmNdecimalPoints, decimal_places,
194 XmNorientation, orientation,
195 XmNprocessingDirection, direction,
205 XtAddCallbacks (sliderbar,
206 XmNvalueChangedCallback,
209 XtAddCallbacks (sliderbar,
212 XmStringFree (name_string);
void SetName(const char *)
unsigned char GetDirection()
G4double GetInitialValue()
void AddYourselfTo(G4OpenGLXmVWidgetContainer *)
Widget * GetPointerToWidget()
void SetOrientation(unsigned char)
void SetDirection(unsigned char)
void SetMinValue(G4double)
G4OpenGLXmSliderBar(const char *=NULL, XtCallbackRec *=NULL, G4bool=False, short=0, G4double=0., G4double=0., G4double=0., unsigned char=XmHORIZONTAL, unsigned char=XmMAX_ON_RIGHT)
void SetInitialValue(G4double)
unsigned char GetOrientation()
virtual ~G4OpenGLXmSliderBar()
Widget * GetPointerToParent()
void SetDecimalPlaces(short)
void SetMaxValue(G4double)