Logo ROOT   master
Reference Guide
TEveCaloLegoEditor.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_TEveCaloLegoEditor
13 #define ROOT_TEveCaloLegoEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGButton;
18 class TGCheckButton;
19 class TGNumberEntry;
20 class TGColorSelect;
21 class TGComboBox;
22 class TEveGValuator;
23 
24 class TEveCaloLego;
25 
27 {
28 private:
29  TEveCaloLegoEditor(const TEveCaloLegoEditor&); // Not implemented
30  TEveCaloLegoEditor& operator=(const TEveCaloLegoEditor&); // Not implemented
31  TGComboBox* MakeLabeledCombo(const char* name, Int_t off);
32 
33 protected:
34  TEveCaloLego *fM; // Model object.
35 
40 
44 
46 
51 
52  void MakeRebinFrame();
53 public:
54  TEveCaloLegoEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
56  virtual ~TEveCaloLegoEditor() {}
57 
58  virtual void SetModel(TObject* obj);
59 
60  // Declare callback/slot methods
61  void DoGridColor(Pixel_t color);
62  void DoFontColor(Pixel_t color);
63  void DoPlaneColor(Pixel_t color);
64  void DoTransparency();
65 
66  void DoProjection();
67  void Do2DMode();
68  void DoBoxMode();
69 
70  void DoCell2DTextMin();
71 
72  void DoAutoRebin();
73  void DoPixelsPerBin();
74  void DoNormalize();
75 
76  ClassDef(TEveCaloLegoEditor, 0); // GUI editor for TEveCaloLego.
77 };
78 
79 #endif
GUI editor for TEveCaloLego.
TGComboBox * fProjection
TGColorSelect * fFontColor
Composite GUI element for single value selection (supports label, number-entry and slider)...
TGComboBox * MakeLabeledCombo(const char *name, Int_t off)
Helper function. Creates TGComboBox with fixed size TGLabel.
#define ClassDef(name, id)
Definition: Rtypes.h:322
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:667
void DoProjection()
Slot for projection.
TEveGValuator * fPixelsPerBin
TEveCaloLegoEditor(const TEveCaloLegoEditor &)
TGColorSelect * fGridColor
void DoGridColor(Pixel_t color)
Slot for GridColor.
void DoFontColor(Pixel_t color)
Slot for FontColor.
TGNumberEntry * fTransparency
virtual void SetModel(TObject *obj)
Set model object.
TGVerticalFrame * fRebinFrame
TGColorSelect * fPlaneColor
TGCheckButton * fAutoRebin
void DoPlaneColor(Pixel_t color)
Slot for PlaneColor.
unsigned int UInt_t
Definition: RtypesCore.h:44
TEveCaloLegoEditor & operator=(const TEveCaloLegoEditor &)
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
Visualization of calorimeter data as eta/phi histogram.
Definition: TEveCalo.h:249
void DoTransparency()
Slot for Transparency.
void Do2DMode()
Slot for projection.
void DoBoxMode()
Slot for projection.
Mother of all ROOT objects.
Definition: TObject.h:37
void DoCell2DTextMin()
Slot for setting limit in pixels in which cell value is rendered.
TGCheckButton * fNormalizeRebin
void DoPixelsPerBin()
Slot for PixelsPerBin.
TEveGValuator * fCell2DTextMin
char name[80]
Definition: TGX11.cxx:109