Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#)root/eve:$Id: 2e075f81994f9a7eca182d23ab52b081eda5c617 $
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 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_TEveDigitSetEditor
0013 #define ROOT_TEveDigitSetEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGCheckButton;
0018 class TGNumberEntry;
0019 class TGColorSelect;
0020 
0021 class TEveDigitSet;
0022 
0023 class TEveGValuator;
0024 class TEveGDoubleValuator;
0025 class TEveTransSubEditor;
0026 
0027 // It would be also good to have button to change model to the palette
0028 // object itself.
0029 class TEveRGBAPaletteSubEditor;
0030 
0031 class TEveDigitSetEditor : public TGedFrame
0032 {
0033 private:
0034    TEveDigitSetEditor(const TEveDigitSetEditor&);            // Not implemented
0035    TEveDigitSetEditor& operator=(const TEveDigitSetEditor&); // Not implemented
0036 
0037    void CreateInfoTab();
0038 protected:
0039    TEveDigitSet             *fM;              // Model object.
0040 
0041    TEveRGBAPaletteSubEditor *fPalette;        // Palette sub-editor.
0042 
0043    TGHorizontalFrame    *fHistoButtFrame;  // Frame holding histogram display buttons.
0044    TGVerticalFrame      *fInfoFrame;       // Frame displaying basic digit statistics.
0045 
0046 public:
0047    TEveDigitSetEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0048                       UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0049    ~TEveDigitSetEditor() override {}
0050 
0051    void SetModel(TObject* obj) override;
0052 
0053    // Declare callback/slot methods
0054    void DoHisto();
0055    void DoRangeHisto();
0056    void PlotHisto(Int_t min, Int_t max);
0057 
0058    ClassDefOverride(TEveDigitSetEditor, 0); // Editor for TEveDigitSet class.
0059 };
0060 
0061 #endif