39 fLowLimit(0), fHighLimit(0), fMinVal(0), fMaxVal(0),
43 fShowDefValue (
kTRUE),
45 fUnderflowAction (kLA_Cut),
46 fOverflowAction (kLA_Clip),
52 fNBins(0), fCAMin(0), fCAMax(0), fColorArray(0)
72 fLowLimit(0), fHighLimit(0), fMinVal(0), fMaxVal(0),
75 fInterpolate (interp),
76 fShowDefValue (showdef),
77 fFixColorRange (fixcolrng),
78 fUnderflowAction (kLA_Cut),
79 fOverflowAction (kLA_Clip),
85 fNBins(0), fCAMin(0), fCAMax(0), fColorArray(0)
108 using namespace TMath;
113 if (val >=
fCAMax) f = nCol - 1;
114 else if (val <=
fCAMin) f = 0;
115 else f = (val -
fCAMin)/div*(nCol - 1);
353 Emit(
"MinMaxValChanged()");
void SetUnderColor(Color_t ci)
Set underflow color.
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
void SetUnderColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set underflow color.
R__EXTERN TStyle * gStyle
void SetupColor(Int_t val, UChar_t *pix) const
Set RGBA color 'pixel' for signal-value 'val'.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Short_t Min(Short_t a, Short_t b)
void SetOverColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set overflow color.
void ClearColorArray()
Clear internal color array.
void SetFixColorRange(Bool_t v)
Set flag specifying how the palette is mapped to signal values: true - LowLimit -> HighLimit false - ...
void SetLimitsScaleMinMax(Int_t low, Int_t high)
Set low/high limits and rescale current min/max values.
void SetDefaultColorPixel(Pixel_t pix)
Set default color.
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
ClassImp(TEveRGBAPalette)
void Emit(const char *signal)
Acitvate signal without args.
void SetDefaultColor(Color_t ci)
Set default color.
void SetMin(Int_t min)
Set current min value.
void SetMinMax(Int_t min, Int_t max)
Set current min/max values.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
Base-class for reference-counted objects.
void SetupColorArray() const
Construct internal color array that maps signal value to RGBA color.
void SetMax(Int_t max)
Set current max value.
void SetOverColor(Color_t ci)
Set overflow color.
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
void SetUIDoubleRep(Bool_t b, Double_t f=1, Double_t c=0)
Set flag determining whether GUI editor and overlays should show limits and axis values as real value...
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
Mother of all ROOT objects.
void SetInterpolate(Bool_t b)
Set interpolation flag.
TEveRGBAPalette()
Constructor.
void SetDefaultColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set default color.
void SetLimits(Int_t low, Int_t high)
Set low/high limits on signal value.
double f2(const double *x)
static void ColorFromIdx(Color_t ci, UChar_t col[4], Bool_t alpha=kTRUE)
Fill col with RGBA values corresponding to index ci.
Short_t Max(Short_t a, Short_t b)
void MinMaxValChanged()
Emit the "MinMaxValChanged()" signal.
void SetOverColorPixel(Pixel_t pix)
Set overflow color.
virtual ~TEveRGBAPalette()
Destructor.
void SetUnderColorPixel(Pixel_t pix)
Set underflow color.