Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#)root/eve:$Id$
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_TEveRGBAPaletteEditor
0013 #define ROOT_TEveRGBAPaletteEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGCheckButton;
0018 class TGColorSelect;
0019 class TGComboBox;
0020 
0021 class TEveRGBAPalette;
0022 class TEveGValuator;
0023 class TEveGDoubleValuator;
0024 
0025 class TEveRGBAPaletteSubEditor : public TGVerticalFrame
0026 {
0027 private:
0028    TEveRGBAPaletteSubEditor(const TEveRGBAPaletteSubEditor&);            // Not implemented
0029    TEveRGBAPaletteSubEditor& operator=(const TEveRGBAPaletteSubEditor&); // Not implemented
0030 
0031 protected:
0032    TEveRGBAPalette      *fM;
0033 
0034    TGComboBox           *fUnderflowAction;
0035    TGColorSelect        *fUnderColor;
0036    TGComboBox           *fOverflowAction;
0037    TGColorSelect        *fOverColor;
0038 
0039    TEveGDoubleValuator  *fMinMax;
0040    Double_t              fOldMin;
0041    Double_t              fOldMax;
0042 
0043    TGCheckButton        *fInterpolate;
0044    TGCheckButton        *fShowDefValue;
0045    TGColorSelect        *fDefaultColor;
0046    TGCheckButton        *fFixColorRange;
0047 
0048 public:
0049    TEveRGBAPaletteSubEditor(const TGWindow* p);
0050    ~TEveRGBAPaletteSubEditor() override {}
0051 
0052    void SetModel(TEveRGBAPalette* p);
0053 
0054    void Changed(); //*SIGNAL*
0055 
0056    void DoMinMax();
0057 
0058    void DoInterpolate();
0059    void DoShowDefValue();
0060    void DoDefaultColor(Pixel_t color);
0061    void DoFixColorRange();
0062    void DoUnderColor(Pixel_t color);
0063    void DoOverColor(Pixel_t color);
0064    void DoUnderflowAction(Int_t mode);
0065    void DoOverflowAction(Int_t mode);
0066 
0067    ClassDefOverride(TEveRGBAPaletteSubEditor, 0); // Sub-editor for TEveRGBAPalette class.
0068 };
0069 
0070 
0071 /******************************************************************************/
0072 /******************************************************************************/
0073 
0074 class TEveRGBAPaletteEditor : public TGedFrame
0075 {
0076 private:
0077    TEveRGBAPaletteEditor(const TEveRGBAPaletteEditor&);            // Not implemented
0078    TEveRGBAPaletteEditor& operator=(const TEveRGBAPaletteEditor&); // Not implemented
0079 
0080 protected:
0081    TEveRGBAPalette           *fM;
0082    TEveRGBAPaletteSubEditor  *fSE;
0083 
0084 public:
0085    TEveRGBAPaletteEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0086    ~TEveRGBAPaletteEditor() override {}
0087 
0088    void SetModel(TObject* obj) override;
0089 
0090    ClassDefOverride(TEveRGBAPaletteEditor, 0); // Editor for TEveRGBAPalette class.
0091 };
0092 
0093 #endif