00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
00033 
00034 #ifndef G4OPENGLXMSLIDERBAR_HH
00035 #define G4OPENGLXMSLIDERBAR_HH
00036 
00037 #include "G4OpenGLXmVWidgetComponent.hh"
00038 
00039 class G4OpenGLXmSliderBar : public G4OpenGLXmVWidgetComponent
00040 {
00041 
00042 public:
00043   G4OpenGLXmSliderBar (const char* = NULL,     
00044                        XtCallbackRec* = NULL,  
00045                        G4bool = False,         
00046                        short = 0,              
00047                        G4double = 0.,          
00048                        G4double = 0.,          
00049                        G4double = 0.,          
00050                        unsigned char = XmHORIZONTAL,
00051                        unsigned char = XmMAX_ON_RIGHT); 
00052                                                
00053   virtual ~G4OpenGLXmSliderBar ();             
00054 
00055   void SetName (const char*);
00056   void SetShow (G4bool);
00057   void SetDecimalPlaces (short);
00058   void SetInitialValue (G4double);
00059   void SetMaxValue (G4double);
00060   void SetMinValue (G4double);
00061   void SetOrientation (unsigned char);
00062   void SetDirection (unsigned char);
00063 
00064  
00065   const char* GetName ();
00066   G4bool GetShow ();
00067   short GetDecimalPlaces ();
00068   G4double GetInitialValue ();
00069   G4double GetMaxValue ();
00070   G4double GetMinValue ();
00071   unsigned char GetOrientation ();
00072   unsigned char GetDirection ();
00073 
00074   void AddYourselfTo (G4OpenGLXmVWidgetContainer*);
00075 
00076   Widget* GetPointerToParent ();
00077   Widget* GetPointerToWidget ();
00078 
00079 private:
00080   G4OpenGLXmSliderBar (const G4OpenGLXmSliderBar&);
00081   G4OpenGLXmSliderBar& operator = (const G4OpenGLXmSliderBar&);
00082   const char* name;
00083   XtCallbackRec* callback;
00084   Widget sliderbar;
00085   Widget* parent;
00086   G4bool show;
00087   short decimal_places;
00088   G4int initial_value;
00089   G4int max_value;
00090   G4int min_value;
00091   unsigned char orientation;
00092   unsigned char direction;
00093 };
00094 
00095 #endif
00096 
00097 #endif