]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4VolumesFrames.h
added getters for cut and control vectors
[u/mrichter/AliRoot.git] / TGeant4 / TG4VolumesFrames.h
1 // $Id$
2 // Category: interfaces
3 //
4 // Author: D. Adamova
5 //
6 //======================================================
7 //
8 //------------TG4VolumesFrames.h--------------------------------//
9 //---------Frames for the the display of volumes properties---//
10 //
11 //=======================================================
12
13 #ifndef TG4_VOLUMESFRAMES_H
14 #define TG4_VOLUMESFRAMES_H
15
16 #include <TObject.h>
17 #include <TGFrame.h>
18 #include <TGButton.h>
19 #include "TG4MainFrame.h"
20
21 class TGLabel;
22 class TGTab;
23 class TGTextBuffer;
24 class TGTextEntry;
25 class TGComboBox;
26 class G4UserLimits;
27
28 class TG4VolumesFrames : public TObject {
29
30 public:   
31
32     TG4VolumesFrames( TGTab* Tab, TGMainFrame* actionFrame);
33     virtual ~TG4VolumesFrames();
34     
35     void SetVolumesComboEntries();
36     void DisplayVolumeCharacteristics();
37     void DisplayUserLimits();
38     void SetPanel(TGMainFrame* ActionFrame);
39
40 protected:
41
42     TG4VolumesFrames(const TG4VolumesFrames& vf) ;
43     TG4VolumesFrames& operator=(const TG4VolumesFrames& vf) ;
44
45 private:
46     TString GetDisplay(G4UserLimits* limits) const;
47
48     TGCompositeFrame*   fCapFrame; // the top frame for volumes properties display
49     TGCompositeFrame*   fVolSubframe1; // frame for the combo box
50     TGCompositeFrame*   fVolSubframe2; //  frame for the text entries        
51     TGGroupFrame*       fGrFrame; // frame for user's limits
52     TGHorizontalFrame*  fGrHFrame; // frame to hold text buttons
53     TGTextButton*       fbtsumm; // button to invoke user's limits display  
54     TGTextButton*       fbtcuts; // button to invoke cuts display
55     TGTextButton*       fbtcontrols; // button to invoke controls display
56     TGLayoutHints*      fVolFrameLayout; // layout hints for SubFrames
57     TGHorizontalFrame*  fHframe[3];     // horizontal frames for text entries
58     TGLabel*            fLabel[3];      // labels for text entries
59     TGTextBuffer*       fVolTextBuff[3]; // text buffs for vols propertie
60     TGTextEntry*        fVolTextEntry[3]; // text entries for vols properties
61     TGComboBox*         fVolumesCombo; // volumes  combo box
62     TGLabel*            fComboLabel;   // label for combo box
63     
64     TGTextBuffer* fDisplBuff; //buffer containing text for user limits display
65     TG4MainFrame* fPanel;     //main frame
66                                
67
68
69
70     void AddLogicalVolumeName( const char* name, Int_t index) const;
71
72     ClassDef(TG4VolumesFrames,0)
73          // class for the composition of the volumes display frame    
74   };
75   
76 #endif
77     
78     
79      
80     
81     
82