Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:40

0001 // @(#)root/eve:$Id$
0002 // Author: Matevz Tadel 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEveCaloLegoEditor
0013 #define ROOT_TEveCaloLegoEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGButton;
0018 class TGCheckButton;
0019 class TGNumberEntry;
0020 class TGColorSelect;
0021 class TGComboBox;
0022 class TEveGValuator;
0023 
0024 class TEveCaloLego;
0025 
0026 class TEveCaloLegoEditor : public TGedFrame
0027 {
0028 private:
0029    TEveCaloLegoEditor(const TEveCaloLegoEditor&);            // Not implemented
0030    TEveCaloLegoEditor& operator=(const TEveCaloLegoEditor&); // Not implemented
0031    TGComboBox*  MakeLabeledCombo(const char* name, Int_t off);
0032 
0033 protected:
0034    TEveCaloLego      *fM; // Model object.
0035 
0036    TGColorSelect     *fGridColor;
0037    TGColorSelect     *fFontColor;
0038    TGColorSelect     *fPlaneColor;
0039    TGNumberEntry     *fTransparency;
0040 
0041    TGComboBox        *fProjection;
0042    TGComboBox        *f2DMode;
0043    TGComboBox        *fBoxMode;
0044 
0045    TEveGValuator     *fCell2DTextMin;
0046 
0047    TGVerticalFrame   *fRebinFrame;
0048    TGCheckButton     *fAutoRebin;
0049    TEveGValuator     *fPixelsPerBin;
0050    TGCheckButton     *fNormalizeRebin;
0051 
0052    void               MakeRebinFrame();
0053 public:
0054    TEveCaloLegoEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0055          UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0056    ~TEveCaloLegoEditor() override {}
0057 
0058    void SetModel(TObject* obj) override;
0059 
0060    // Declare callback/slot methods
0061    void DoGridColor(Pixel_t color);
0062    void DoFontColor(Pixel_t color);
0063    void DoPlaneColor(Pixel_t color);
0064    void DoTransparency();
0065 
0066    void DoProjection();
0067    void Do2DMode();
0068    void DoBoxMode();
0069 
0070    void DoCell2DTextMin();
0071 
0072    void DoAutoRebin();
0073    void DoPixelsPerBin();
0074    void DoNormalize();
0075 
0076    ClassDefOverride(TEveCaloLegoEditor, 0); // GUI editor for TEveCaloLego.
0077 };
0078 
0079 #endif