File indexing completed on 2025-01-18 10:11:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
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&);
0029 TEveRGBAPaletteSubEditor& operator=(const TEveRGBAPaletteSubEditor&);
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();
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);
0068 };
0069
0070
0071
0072
0073
0074 class TEveRGBAPaletteEditor : public TGedFrame
0075 {
0076 private:
0077 TEveRGBAPaletteEditor(const TEveRGBAPaletteEditor&);
0078 TEveRGBAPaletteEditor& operator=(const TEveRGBAPaletteEditor&);
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);
0091 };
0092
0093 #endif