46 fMinMax(0), fOldMin(0), fOldMax(0),
58 fInterpolate->Connect(
"Toggled(Bool_t)",
59 "TEveRGBAPaletteSubEditor",
this,
"DoInterpolate()");
69 fShowDefValue->Connect(
"Toggled(Bool_t)",
70 "TEveRGBAPaletteSubEditor",
this,
"DoShowDefValue()");
74 fDefaultColor->Connect(
"ColorSelected(Pixel_t)",
75 "TEveRGBAPaletteSubEditor",
this,
"DoDefaultColor(Pixel_t)");
85 fFixColorRange->Connect(
"Toggled(Bool_t)",
86 "TEveRGBAPaletteSubEditor",
this,
"DoFixColorRange()");
96 fUnderflowAction->AddEntry(
"Cut", 0);
97 fUnderflowAction->AddEntry(
"Mark", 1);
98 fUnderflowAction->AddEntry(
"Clip", 2);
99 fUnderflowAction->AddEntry(
"Wrap", 3);
100 TGListBox* lb = fUnderflowAction->GetListBox();
102 fUnderflowAction->Resize(59, 20);
103 fUnderflowAction->Connect(
"Selected(Int_t)",
"TEveRGBAPaletteSubEditor",
this,
104 "DoUnderflowAction(Int_t)");
109 fUnderColor->Connect(
"ColorSelected(Pixel_t)",
110 "TEveRGBAPaletteSubEditor",
this,
"DoUnderColor(Pixel_t)");
120 fOverflowAction->AddEntry(
"Cut", 0);
121 fOverflowAction->AddEntry(
"Mark", 1);
122 fOverflowAction->AddEntry(
"Clip", 2);
123 fOverflowAction->AddEntry(
"Wrap", 3);
124 TGListBox* lb = fOverflowAction->GetListBox();
126 fOverflowAction->Resize(59, 20);
127 fOverflowAction->Connect(
"Selected(Int_t)",
"TEveRGBAPaletteSubEditor",
this,
128 "DoOverflowAction(Int_t)");
133 fOverColor->Connect(
"ColorSelected(Pixel_t)",
134 "TEveRGBAPaletteSubEditor",
this,
"DoOverColor(Pixel_t)");
140 fMinMax->SetNELength(5);
141 fMinMax->SetLabelWidth(74);
143 fMinMax->GetSlider()->SetWidth(190);
145 fMinMax->Connect(
"ValueSet()",
146 "TEveRGBAPaletteSubEditor",
this,
"DoMinMax()");
320 fSE->Connect(
"Changed()",
"TEveRGBAPaletteEditor",
this,
"Update()");
void DoDefaultColor(Pixel_t color)
Slot for DefaultColor.
TGColorSelect * fOverColor
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
TGCheckButton * fFixColorRange
void DoMinMax()
Slot for MinMax.
TGColorSelect * fDefaultColor
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
Double_t IntToDouble(Int_t i) const
void DoOverColor(Pixel_t color)
Slot for OverColor.
void SetLimits(Int_t min, Int_t max)
Set limits of the represented range for integer values.
void DoFixColorRange()
Slot for FixColorRange.
Short_t Min(Short_t a, Short_t b)
TEveGDoubleValuator * fMinMax
TGComboBox * fOverflowAction
void SetOverflowAction(Int_t a)
TEveRGBAPaletteSubEditor(const TEveRGBAPaletteSubEditor &)
void Changed()
Emit "Changed()" signal.
void DoUnderflowAction(Int_t mode)
Slot for UnderflowAction.
void SetFixColorRange(Bool_t v)
Set flag specifying how the palette is mapped to signal values: true - LowLimit -> HighLimit false - ...
Double_t Log10(Double_t x)
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
void SetDefaultColorPixel(Pixel_t pix)
Set default color.
TGCheckButton * fShowDefValue
void DoUnderColor(Pixel_t color)
Slot for UnderColor.
Sub-editor for TEveRGBAPalette class.
virtual void SetModel(TObject *obj)
Set model object.
void SetShowDefValue(Bool_t v)
void SetMinMax(Int_t min, Int_t max)
Set current min/max values.
void DoInterpolate()
Slot for Interpolate.
Color_t GetDefaultColor() const
void DoOverflowAction(Int_t mode)
Slot for OverflowAction.
void SetModel(TEveRGBAPalette *p)
Set model object.
Color_t GetUnderColor() const
void SetValues(Float_t min, Float_t max, Bool_t emit=kFALSE)
Set min/max values, optionally emit signal.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
Editor for TEveRGBAPalette class.
Color_t GetOverColor() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
std::string MakeTitle(std::string_view version, std::string_view histname, std::string_view title, std::string_view axis)
Mother of all ROOT objects.
void SetInterpolate(Bool_t b)
Set interpolation flag.
Short_t Max(Short_t a, Short_t b)
void MinMaxValChanged()
Emit the "MinMaxValChanged()" signal.
TGColorSelect * fUnderColor
void SetUnderflowAction(Int_t a)
Int_t DoubleToInt(Double_t d) const
Composite GUI element for selection of range (label, two number-entries and double-slider).
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
void SetOverColorPixel(Pixel_t pix)
Set overflow color.
TGCheckButton * fInterpolate
TGComboBox * fUnderflowAction
void SetUnderColorPixel(Pixel_t pix)
Set underflow color.
void DoShowDefValue()
Slot for ShowDefValue.