Logo ROOT   master
Reference Guide
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;
24 
26 {
27 private:
28  TEveRGBAPaletteSubEditor(const TEveRGBAPaletteSubEditor&); // Not implemented
30 
31 protected:
33 
38 
42 
47 
48 public:
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 
75 {
76 private:
77  TEveRGBAPaletteEditor(const TEveRGBAPaletteEditor&); // Not implemented
78  TEveRGBAPaletteEditor& operator=(const TEveRGBAPaletteEditor&); // Not implemented
79 
80 protected:
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());
87 
88  virtual void SetModel(TObject* obj);
89 
90  ClassDef(TEveRGBAPaletteEditor, 0); // Editor for TEveRGBAPalette class.
91 };
92 
93 #endif
void DoDefaultColor(Pixel_t color)
Slot for DefaultColor.
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
void DoMinMax()
Slot for MinMax.
void DoOverColor(Pixel_t color)
Slot for OverColor.
void DoFixColorRange()
Slot for FixColorRange.
int Int_t
Definition: RtypesCore.h:41
TEveGDoubleValuator * fMinMax
TEveRGBAPaletteSubEditor(const TEveRGBAPaletteSubEditor &)
void Changed()
Emit "Changed()" signal.
Composite GUI element for single value selection (supports label, number-entry and slider)...
void DoUnderflowAction(Int_t mode)
Slot for UnderflowAction.
#define ClassDef(name, id)
Definition: Rtypes.h:326
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:666
TEveRGBAPaletteSubEditor & operator=(const TEveRGBAPaletteSubEditor &)
void DoUnderColor(Pixel_t color)
Slot for UnderColor.
Sub-editor for TEveRGBAPalette class.
TEveRGBAPaletteEditor & operator=(const TEveRGBAPaletteEditor &)
TEveRGBAPaletteEditor(const TEveRGBAPaletteEditor &)
virtual void SetModel(TObject *obj)
Set model object.
unsigned int UInt_t
Definition: RtypesCore.h:42
void DoInterpolate()
Slot for Interpolate.
void DoOverflowAction(Int_t mode)
Slot for OverflowAction.
void SetModel(TEveRGBAPalette *p)
Set model object.
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:120
Editor for TEveRGBAPalette class.
TEveRGBAPaletteSubEditor * fSE
Mother of all ROOT objects.
Definition: TObject.h:37
Composite GUI element for selection of range (label, two number-entries and double-slider).
void DoShowDefValue()
Slot for ShowDefValue.