Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4OpenGLXmSliderBar.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4OpenGLXmSliderBar.hh 66373 2012-12-18 09:41:34Z gcosmo $
28 //
29 //
30 //Slider bar class. Inherits from G4OpenGLXmVWidgetComponent
31 
32 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
33 
34 #ifndef G4OPENGLXMSLIDERBAR_HH
35 #define G4OPENGLXMSLIDERBAR_HH
36 
38 
39 class G4OpenGLXmSliderBar : public G4OpenGLXmVWidgetComponent
40 {
41 
42 public:
43  G4OpenGLXmSliderBar (const char* = NULL, // name of slider bar
44  XtCallbackRec* = NULL, // callbacks for slider bar
45  G4bool = False, // show current value if True
46  short = 0, // decimal places for show value
47  G4double = 0., // initial value
48  G4double = 0., // max value
49  G4double = 0., // min value
50  unsigned char = XmHORIZONTAL,
51  unsigned char = XmMAX_ON_RIGHT);
52  //constructor
53  virtual ~G4OpenGLXmSliderBar (); //destructor
54 
55  void SetName (const char*);
56  void SetShow (G4bool);
57  void SetDecimalPlaces (short);
58  void SetInitialValue (G4double);
59  void SetMaxValue (G4double);
60  void SetMinValue (G4double);
61  void SetOrientation (unsigned char);
62  void SetDirection (unsigned char);
63 
64 
65  const char* GetName ();
66  G4bool GetShow ();
67  short GetDecimalPlaces ();
68  G4double GetInitialValue ();
69  G4double GetMaxValue ();
70  G4double GetMinValue ();
71  unsigned char GetOrientation ();
72  unsigned char GetDirection ();
73 
74  void AddYourselfTo (G4OpenGLXmVWidgetContainer*);
75 
76  Widget* GetPointerToParent ();
77  Widget* GetPointerToWidget ();
78 
79 private:
80  G4OpenGLXmSliderBar (const G4OpenGLXmSliderBar&);
81  G4OpenGLXmSliderBar& operator = (const G4OpenGLXmSliderBar&);
82  const char* name;
83  XtCallbackRec* callback;
84  Widget sliderbar;
85  Widget* parent;
86  G4bool show;
87  short decimal_places;
88  G4int initial_value;
89  G4int max_value;
90  G4int min_value;
91  unsigned char orientation;
92  unsigned char direction;
93 };
94 
95 #endif
96 
97 #endif
const XML_Char * name
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
double G4double
Definition: G4Types.hh:76