1 | // $Id: EFocalSurfacePainterEditor.hh 2782 2007-07-16 09:25:45Z thea $ |
---|
2 | // Author: Alessandro Thea 2005/02/20 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EFocalSurfacePainterEditor * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __EFOCAlSURFACEPAINTEREDITOR_HH__ |
---|
14 | #define __EFOCALSURFACEPAINTEREDITOR_HH__ |
---|
15 | |
---|
16 | #include "TGedFrame.h" |
---|
17 | #include "EFocalSurfacePainter.hh" |
---|
18 | |
---|
19 | class TList; |
---|
20 | class TGComboBox; |
---|
21 | class TGColorSelect; |
---|
22 | class TGedPatternSelect; |
---|
23 | class TGHSlider; |
---|
24 | class TGCheckButton; |
---|
25 | class TGButtonGroup; |
---|
26 | class TGRadioButton; |
---|
27 | class TGTab; |
---|
28 | class TGLabel; |
---|
29 | class TGNumberEntry; |
---|
30 | |
---|
31 | enum Threshold_t { |
---|
32 | kNONE, |
---|
33 | kABSOLUTE, |
---|
34 | kRELATIVE |
---|
35 | }; |
---|
36 | |
---|
37 | //////////////////////////////////////////////////////////////////////////////// |
---|
38 | // // |
---|
39 | // EFocalSurfacePainterEditor // |
---|
40 | // // |
---|
41 | // <brief class description> // |
---|
42 | // // |
---|
43 | //////////////////////////////////////////////////////////////////////////////// |
---|
44 | |
---|
45 | class EFocalSurfacePainterEditor : public TGedFrame { |
---|
46 | public: |
---|
47 | EFocalSurfacePainterEditor(const TGWindow* p = 0 , Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()); |
---|
48 | virtual ~EFocalSurfacePainterEditor(); |
---|
49 | |
---|
50 | // virtual void SetModel(TVirtualPad *pad, TObject *obj, Int_t event); |
---|
51 | virtual void SetModel(TObject *obj); |
---|
52 | |
---|
53 | void ConnectSignals2Slots(); |
---|
54 | |
---|
55 | virtual void DoMapID( Int_t ); |
---|
56 | virtual void DoIntegral( Int_t ); |
---|
57 | virtual void DoTrigger( Int_t ); |
---|
58 | virtual void DoViewRangeSliderMoved( Int_t ); |
---|
59 | virtual void DoGtuSliderMoved( Int_t ); |
---|
60 | virtual void DoGtuEntrySet(); |
---|
61 | virtual void DoCountsSliderMoved( Int_t ); |
---|
62 | virtual void DoCountsEntrySet(); |
---|
63 | virtual void DoThresholdSliderMoved( Int_t ); |
---|
64 | virtual void DoAlphaEntrySet(); |
---|
65 | virtual void DoAddGtuCount(Bool_t); |
---|
66 | virtual void DoAddEmptyPixels(Bool_t); |
---|
67 | virtual void DoDrawNightRate(Bool_t); |
---|
68 | virtual void DoDrawNightCounts(Bool_t); |
---|
69 | virtual void DoAddOffPixels(Bool_t on); |
---|
70 | virtual void DoThreshold(Threshold_t); |
---|
71 | virtual void DoPmtFillColor(Pixel_t); |
---|
72 | virtual void DoEmptyPmtFillColor(Pixel_t); |
---|
73 | |
---|
74 | private: |
---|
75 | |
---|
76 | void CreateThresholdTab(); |
---|
77 | void CreateColorTab(); |
---|
78 | |
---|
79 | EFocalSurfacePainter* fPainter; |
---|
80 | Int_t fCurrentMapID; |
---|
81 | Int_t fCurrentIntegral; |
---|
82 | Int_t fCurrentTrigger; |
---|
83 | |
---|
84 | // TGComboBox* BuildNspreadComboBox(TGFrame* parent, Int_t id); |
---|
85 | TGComboBox* BuildMapIDCombo(TGFrame* parent, Int_t id); |
---|
86 | TGComboBox* BuildIntegralCombo(TGFrame* parent, Int_t id); |
---|
87 | TGComboBox* BuildChipTriggerCombo(TGFrame* parent, Int_t id); |
---|
88 | |
---|
89 | // TGTab* fTab; |
---|
90 | TGCompositeFrame* fColor; |
---|
91 | TGCompositeFrame* fColorContainer; |
---|
92 | TGCompositeFrame* fThreshold; |
---|
93 | TGCompositeFrame* fThresholdContainer; |
---|
94 | TGComboBox* fMapIDCombo; // font size combo box |
---|
95 | TGComboBox* fIntegralCombo; // font size combo box |
---|
96 | TGComboBox* fTriggerCombo; // font size combo box |
---|
97 | TGHSlider* fGtuSlider; |
---|
98 | TGNumberEntry* fGtuEntry; |
---|
99 | TGHSlider* fViewRangeSlider; |
---|
100 | TGHSlider* fCountsSlider; |
---|
101 | TGHSlider* fThresholdSlider; |
---|
102 | TGNumberEntry* fAlphaEntry; |
---|
103 | TGNumberEntry* fCountsEntry; |
---|
104 | TGLabel *fViewRMinLabel; |
---|
105 | TGLabel *fViewRMaxLabel; |
---|
106 | TGLabel *fGtuMinLabel; |
---|
107 | TGLabel *fGtuMaxLabel; |
---|
108 | TGLabel *fAlphaMinLabel; |
---|
109 | TGLabel *fAlphaMaxLabel; |
---|
110 | // TGCheckButton* fMakeTimeInt; |
---|
111 | TGCheckButton* fAddGtuCount; |
---|
112 | TGCheckButton* fAddEmptyPixels; |
---|
113 | TGCheckButton* fAddOffPixels; |
---|
114 | TGCheckButton* fDrawNightRate; |
---|
115 | TGCheckButton* fDrawNightCounts; |
---|
116 | TGButtonGroup* fThresholdType; |
---|
117 | TGRadioButton* fThNone; |
---|
118 | TGRadioButton* fThAbs; |
---|
119 | TGRadioButton* fThRel; |
---|
120 | TGColorSelect* fPmtColorSelect; // fill color widget |
---|
121 | TGColorSelect* fEmptyPmtColorSelect; // fill color widget |
---|
122 | |
---|
123 | TList* fGarbage; |
---|
124 | |
---|
125 | ClassDef(EFocalSurfacePainterEditor,0) |
---|
126 | }; |
---|
127 | |
---|
128 | #endif /* __EFOCALSURFACEPAINTEREDITOR_HH__ */ |
---|
129 | |
---|