56 "TEveRGBAPaletteSubEditor",
this,
"DoInterpolate()");
67 "TEveRGBAPaletteSubEditor",
this,
"DoShowDefValue()");
72 "TEveRGBAPaletteSubEditor",
this,
"DoDefaultColor(Pixel_t)");
83 "TEveRGBAPaletteSubEditor",
this,
"DoFixColorRange()");
100 fUnderflowAction->Connect(
"Selected(Int_t)",
"TEveRGBAPaletteSubEditor",
this,
101 "DoUnderflowAction(Int_t)");
107 "TEveRGBAPaletteSubEditor",
this,
"DoUnderColor(Pixel_t)");
124 fOverflowAction->Connect(
"Selected(Int_t)",
"TEveRGBAPaletteSubEditor",
this,
125 "DoOverflowAction(Int_t)");
131 "TEveRGBAPaletteSubEditor",
this,
"DoOverColor(Pixel_t)");
140 fMinMax->GetSlider()->SetWidth(190);
143 "TEveRGBAPaletteSubEditor",
this,
"DoMinMax()");
154 if (
fM->fUIDoubleRep)
156 fMinMax->SetValues(
fM->IntToDouble(
fM->fMinVal),
fM->IntToDouble(
fM->fMaxVal));
195 if (
fM->fUIDoubleRep)
198 if (min !=
fOldMin &&
fM->DoubleToInt(min) ==
fM->fMinVal)
201 min =
fM->IntToDouble(
fM->fMinVal - 1);
203 min =
fM->IntToDouble(
fM->fMinVal + 1);
206 if (max !=
fOldMax &&
fM->DoubleToInt(max) ==
fM->fMaxVal)
209 max =
fM->IntToDouble(
fM->fMaxVal - 1);
211 max =
fM->IntToDouble(
fM->fMaxVal + 1);
213 fM->SetMinMax(
fM->DoubleToInt(min),
fM->DoubleToInt(max));
221 fM->MinMaxValChanged();
247 fM->SetDefaultColorPixel(color);
265 fM->SetUnderColorPixel(color);
274 fM->SetOverColorPixel(color);
283 fM->SetUnderflowAction(mode);
292 fM->SetOverflowAction(mode);
316 fSE->Connect(
"Changed()",
"TEveRGBAPaletteEditor",
this,
"Update()");
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
static ULong_t Number2Pixel(Int_t ci)
Composite GUI element for selection of range (label, two number-entries and double-slider).
void SetModel(TObject *obj) override
Set model object.
TEveRGBAPaletteEditor(const TEveRGBAPaletteEditor &)
TEveRGBAPaletteSubEditor * fSE
Sub-editor for TEveRGBAPalette class.
void DoUnderflowAction(Int_t mode)
Slot for UnderflowAction.
TGComboBox * fOverflowAction
TGComboBox * fUnderflowAction
void DoUnderColor(Pixel_t color)
Slot for UnderColor.
void DoFixColorRange()
Slot for FixColorRange.
void DoOverColor(Pixel_t color)
Slot for OverColor.
void DoShowDefValue()
Slot for ShowDefValue.
void DoDefaultColor(Pixel_t color)
Slot for DefaultColor.
TEveRGBAPaletteSubEditor(const TEveRGBAPaletteSubEditor &)
void DoOverflowAction(Int_t mode)
Slot for OverflowAction.
void DoInterpolate()
Slot for Interpolate.
void Changed()
Emit "Changed()" signal.
TGColorSelect * fUnderColor
TGCheckButton * fShowDefValue
TEveGDoubleValuator * fMinMax
void DoMinMax()
Slot for MinMax.
TGCheckButton * fInterpolate
TGColorSelect * fDefaultColor
TGColorSelect * fOverColor
void SetModel(TEveRGBAPalette *p)
Set model object.
TGCheckButton * fFixColorRange
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
void Resize(UInt_t w, UInt_t h) override
Resize the listbox widget.
TGVerticalFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
virtual void MakeTitle(const char *title)
Create attribute frame title.
Mother of all ROOT objects.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Double_t Log10(Double_t x)
Returns the common (base-10) logarithm of x.