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