Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveCaloVizEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveCaloVizEditor
13 #define ROOT_TEveCaloVizEditor
14 
15 #include "TGedFrame.h"
16 
17 class TEveCaloViz;
18 class TEveCalo3D;
19 class TGDoubleHSlider;
20 class TEveGValuator;
21 class TEveGDoubleValuator;
22 class TGCheckButton;
23 class TGRadioButton;
24 class TGNumberEntry;
25 
26 class TGVerticalFrame;
27 
28 class TEveCaloVizEditor : public TGedFrame
29 {
30 private:
31  TEveCaloVizEditor(const TEveCaloVizEditor&); // Not implemented
32  TEveCaloVizEditor& operator=(const TEveCaloVizEditor&); // Not implemented
33  void MakeSliceInfo();
34 
35 protected:
36  TEveCaloViz *fM; // Model object.
37 
38  TGNumberEntry *fFrameTransparency;
39 
40  TGRadioButton *fPlotE;
41  TGRadioButton *fPlotEt;
42 
43  TGCheckButton *fScaleAbs;
44  TEveGValuator *fMaxValAbs;
45  TEveGValuator *fMaxTowerH;
46 
47  TEveGDoubleValuator *fEtaRng;
48  TEveGValuator *fPhi;
49  TEveGValuator *fPhiOffset;
50 
51  TGVerticalFrame *fDataFrame;
52  TGVerticalFrame *fSliceFrame;
53 
54 public:
55  TEveCaloVizEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
56  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
57  virtual ~TEveCaloVizEditor() {}
58 
59  virtual void SetModel(TObject* obj);
60 
61  void DoMaxTowerH();
62  void DoScaleAbs();
63  void DoMaxValAbs();
64 
65  void DoPlot();
66 
67  void DoEtaRange();
68  void DoPhi();
69 
70  void DoSliceThreshold();
71  void DoSliceColor(Pixel_t color);
72  void DoSliceTransparency(Long_t transp);
73 
74  ClassDef(TEveCaloVizEditor, 0); // GUI editor for TEveCaloVizEditor.
75 };
76 
77 /**************************************************************************/
78 
79 class TEveCalo3DEditor : public TGedFrame
80 {
81 private:
82  TEveCalo3DEditor(const TEveCalo3DEditor&); // Not implemented
83  TEveCalo3DEditor& operator=(const TEveCalo3DEditor&); // Not implemented
84 
85 protected:
86  TEveCalo3D *fM; // Model object.
87  TGNumberEntry *fFrameTransparency;
88 
89 public:
90  TEveCalo3DEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
91  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
92  virtual ~TEveCalo3DEditor() {}
93 
94  virtual void SetModel(TObject* obj);
95  void DoFrameTransparency();
96 
97  ClassDef(TEveCalo3DEditor, 0); // GUI editor for TEveCalo3DEditor.
98 };
99 
100 #endif