Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveRGBAPaletteEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 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_TEveRGBAPaletteEditor
13 #define ROOT_TEveRGBAPaletteEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGCheckButton;
18 class TGColorSelect;
19 class TGComboBox;
20 
21 class TEveRGBAPalette;
22 class TEveGValuator;
23 class TEveGDoubleValuator;
24 
25 class TEveRGBAPaletteSubEditor : public TGVerticalFrame
26 {
27 private:
28  TEveRGBAPaletteSubEditor(const TEveRGBAPaletteSubEditor&); // Not implemented
29  TEveRGBAPaletteSubEditor& operator=(const TEveRGBAPaletteSubEditor&); // Not implemented
30 
31 protected:
32  TEveRGBAPalette *fM;
33 
34  TGComboBox *fUnderflowAction;
35  TGColorSelect *fUnderColor;
36  TGComboBox *fOverflowAction;
37  TGColorSelect *fOverColor;
38 
39  TEveGDoubleValuator *fMinMax;
40  Double_t fOldMin;
41  Double_t fOldMax;
42 
43  TGCheckButton *fInterpolate;
44  TGCheckButton *fShowDefValue;
45  TGColorSelect *fDefaultColor;
46  TGCheckButton *fFixColorRange;
47 
48 public:
49  TEveRGBAPaletteSubEditor(const TGWindow* p);
50  virtual ~TEveRGBAPaletteSubEditor() {}
51 
52  void SetModel(TEveRGBAPalette* p);
53 
54  void Changed(); //*SIGNAL*
55 
56  void DoMinMax();
57 
58  void DoInterpolate();
59  void DoShowDefValue();
60  void DoDefaultColor(Pixel_t color);
61  void DoFixColorRange();
62  void DoUnderColor(Pixel_t color);
63  void DoOverColor(Pixel_t color);
64  void DoUnderflowAction(Int_t mode);
65  void DoOverflowAction(Int_t mode);
66 
67  ClassDef(TEveRGBAPaletteSubEditor, 0); // Sub-editor for TEveRGBAPalette class.
68 };
69 
70 
71 /******************************************************************************/
72 /******************************************************************************/
73 
74 class TEveRGBAPaletteEditor : public TGedFrame
75 {
76 private:
77  TEveRGBAPaletteEditor(const TEveRGBAPaletteEditor&); // Not implemented
78  TEveRGBAPaletteEditor& operator=(const TEveRGBAPaletteEditor&); // Not implemented
79 
80 protected:
81  TEveRGBAPalette *fM;
82  TEveRGBAPaletteSubEditor *fSE;
83 
84 public:
85  TEveRGBAPaletteEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
86  virtual ~TEveRGBAPaletteEditor() {}
87 
88  virtual void SetModel(TObject* obj);
89 
90  ClassDef(TEveRGBAPaletteEditor, 0); // Editor for TEveRGBAPalette class.
91 };
92 
93 #endif