Logo ROOT  
Reference Guide
ROOT::Experimental::REveRGBAPalette Class Reference

Definition at line 22 of file REveRGBAPalette.hxx.

Public Types

enum  ELimitAction_e { kLA_Cut , kLA_Mark , kLA_Clip , kLA_Wrap }
 

Public Member Functions

 REveRGBAPalette ()
 Constructor. More...
 
 REveRGBAPalette (Int_t min, Int_t max, Bool_t interp=kTRUE, Bool_t showdef=kTRUE, Bool_t fixcolrng=kFALSE)
 Constructor. More...
 
virtual ~REveRGBAPalette ()
 Destructor. More...
 
void ClearColorArray ()
 Clear internal color array. More...
 
const UChar_tColorFromValue (Int_t val) const
 
Bool_t ColorFromValue (Int_t val, Int_t defVal, UChar_t *pix, Bool_t alpha=kTRUE) const
 
void ColorFromValue (Int_t val, UChar_t *pix, Bool_t alpha=kTRUE) const
 
Color_t GetDefaultColor () const
 
UChar_tGetDefaultRGBA ()
 
const UChar_tGetDefaultRGBA () const
 
Bool_t GetFixColorRange () const
 
Int_t GetHighLimit () const
 
Bool_t GetInterpolate () const
 
Int_t GetLowLimit () const
 
Int_t GetMaxVal () const
 
Int_t GetMinVal () const
 
Color_t GetOverColor () const
 
Int_t GetOverflowAction () const
 
UChar_tGetOverRGBA ()
 
const UChar_tGetOverRGBA () const
 
Bool_t GetShowDefValue () const
 
Bool_t GetUIDoubleRep () const
 
Color_t GetUnderColor () const
 
Int_t GetUnderflowAction () const
 
UChar_tGetUnderRGBA ()
 
const UChar_tGetUnderRGBA () const
 
void OnZeroRefCount () override
 
Color_tPtrDefaultColor ()
 
Color_tPtrOverColor ()
 
Color_tPtrUnderColor ()
 
void SetDefaultColor (Color_t ci)
 Set default color. More...
 
void SetDefaultColorPixel (Pixel_t pix)
 Set default color. More...
 
void SetDefaultColorRGBA (UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
 Set default color. More...
 
void SetFixColorRange (Bool_t v)
 Set flag specifying how the palette is mapped to signal values: true - LowLimit -> HighLimit false - MinValue -> MaxValue. More...
 
void SetInterpolate (Bool_t b)
 Set interpolation flag. More...
 
void SetLimits (Int_t low, Int_t high)
 Set low/high limits on signal value. More...
 
void SetLimitsScaleMinMax (Int_t low, Int_t high)
 Set low/high limits and rescale current min/max values. More...
 
void SetMax (Int_t max)
 Set current max value. More...
 
void SetMin (Int_t min)
 Set current min value. More...
 
void SetMinMax (Int_t min, Int_t max)
 Set current min/max values. More...
 
void SetOverColor (Color_t ci)
 Set overflow color. More...
 
void SetOverColorPixel (Pixel_t pix)
 Set overflow color. More...
 
void SetOverColorRGBA (UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
 Set overflow color. More...
 
void SetOverflowAction (Int_t a)
 
void SetShowDefValue (Bool_t v)
 
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 values with mapping from integer value i to real value d as: d = f*i + fc. More...
 
void SetUnderColor (Color_t ci)
 Set underflow color. More...
 
void SetUnderColorPixel (Pixel_t pix)
 Set underflow color. More...
 
void SetUnderColorRGBA (UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
 Set underflow color. More...
 
void SetUnderflowAction (Int_t a)
 
void SetupColorArray () const
 Construct internal color array that maps signal value to RGBA color. More...
 
Bool_t WithinVisibleRange (Int_t val) const
 
- Public Member Functions inherited from ROOT::Experimental::REveRefCnt
 REveRefCnt ()=default
 
virtual ~REveRefCnt ()
 
void DecRefCount ()
 
void IncRefCount ()
 
virtual void OnZeroRefCount ()=0
 

Protected Member Functions

Int_t DoubleToInt (Double_t d) const
 
Double_t GetCAMaxAsDouble () const
 
Double_t GetCAMinAsDouble () const
 
Double_t IntToDouble (Int_t i) const
 
void SetupColor (Int_t val, UChar_t *pix) const
 Set RGBA color 'pixel' for signal-value 'val'. More...
 

Protected Attributes

Int_t fCAMax
 
Int_t fCAMin
 
UChar_tfColorArray
 
Color_t fDefaultColor
 
UChar_t fDefaultRGBA [4]
 
Bool_t fFixColorRange
 
Int_t fHighLimit
 
Bool_t fInterpolate
 
Int_t fLowLimit
 
Int_t fMaxVal
 
Int_t fMinVal
 
Int_t fNBins
 
Color_t fOverColor
 
Int_t fOverflowAction
 
UChar_t fOverRGBA [4]
 
Bool_t fShowDefValue
 
Double_t fUIc
 
Bool_t fUIDoubleRep
 
Double_t fUIf
 
Color_t fUnderColor
 
Int_t fUnderflowAction
 
UChar_t fUnderRGBA [4]
 
- Protected Attributes inherited from ROOT::Experimental::REveRefCnt
Int_t fRefCount {0}
 

Static Protected Attributes

static REveRGBAPalettefgDefaultPalette
 

Private Member Functions

 REveRGBAPalette (const REveRGBAPalette &)=delete
 
REveRGBAPaletteoperator= (const REveRGBAPalette &)=delete
 

Friends

class REveRGBAPaletteEditor
 
class REveRGBAPaletteOverlay
 
class REveRGBAPaletteSubEditor
 

#include <ROOT/REveRGBAPalette.hxx>

Inheritance diagram for ROOT::Experimental::REveRGBAPalette:
[legend]

Member Enumeration Documentation

◆ ELimitAction_e

Enumerator
kLA_Cut 
kLA_Mark 
kLA_Clip 
kLA_Wrap 

Definition at line 30 of file REveRGBAPalette.hxx.

Constructor & Destructor Documentation

◆ REveRGBAPalette() [1/3]

ROOT::Experimental::REveRGBAPalette::REveRGBAPalette ( const REveRGBAPalette )
privatedelete

◆ REveRGBAPalette() [2/3]

REveRGBAPalette::REveRGBAPalette ( )

Constructor.

Definition at line 36 of file REveRGBAPalette.cxx.

◆ REveRGBAPalette() [3/3]

REveRGBAPalette::REveRGBAPalette ( Int_t  min,
Int_t  max,
Bool_t  interp = kTRUE,
Bool_t  showdef = kTRUE,
Bool_t  fixcolrng = kFALSE 
)

Constructor.

Definition at line 67 of file REveRGBAPalette.cxx.

◆ ~REveRGBAPalette()

REveRGBAPalette::~REveRGBAPalette ( )
virtual

Destructor.

Definition at line 99 of file REveRGBAPalette.cxx.

Member Function Documentation

◆ ClearColorArray()

void REveRGBAPalette::ClearColorArray ( )

Clear internal color array.

Definition at line 153 of file REveRGBAPalette.cxx.

◆ ColorFromValue() [1/3]

const UChar_t * REveRGBAPalette::ColorFromValue ( Int_t  val) const
inline

Definition at line 171 of file REveRGBAPalette.hxx.

◆ ColorFromValue() [2/3]

Bool_t REveRGBAPalette::ColorFromValue ( Int_t  val,
Int_t  defVal,
UChar_t pix,
Bool_t  alpha = kTRUE 
) const
inline

Definition at line 209 of file REveRGBAPalette.hxx.

◆ ColorFromValue() [3/3]

void REveRGBAPalette::ColorFromValue ( Int_t  val,
UChar_t pix,
Bool_t  alpha = kTRUE 
) const
inline

Definition at line 201 of file REveRGBAPalette.hxx.

◆ DoubleToInt()

Int_t ROOT::Experimental::REveRGBAPalette::DoubleToInt ( Double_t  d) const
inlineprotected

Definition at line 67 of file REveRGBAPalette.hxx.

◆ GetCAMaxAsDouble()

Double_t ROOT::Experimental::REveRGBAPalette::GetCAMaxAsDouble ( ) const
inlineprotected

Definition at line 70 of file REveRGBAPalette.hxx.

◆ GetCAMinAsDouble()

Double_t ROOT::Experimental::REveRGBAPalette::GetCAMinAsDouble ( ) const
inlineprotected

Definition at line 69 of file REveRGBAPalette.hxx.

◆ GetDefaultColor()

Color_t ROOT::Experimental::REveRGBAPalette::GetDefaultColor ( ) const
inline

Definition at line 121 of file REveRGBAPalette.hxx.

◆ GetDefaultRGBA() [1/2]

UChar_t * ROOT::Experimental::REveRGBAPalette::GetDefaultRGBA ( )
inline

Definition at line 123 of file REveRGBAPalette.hxx.

◆ GetDefaultRGBA() [2/2]

const UChar_t * ROOT::Experimental::REveRGBAPalette::GetDefaultRGBA ( ) const
inline

Definition at line 124 of file REveRGBAPalette.hxx.

◆ GetFixColorRange()

Bool_t ROOT::Experimental::REveRGBAPalette::GetFixColorRange ( ) const
inline

Definition at line 111 of file REveRGBAPalette.hxx.

◆ GetHighLimit()

Int_t ROOT::Experimental::REveRGBAPalette::GetHighLimit ( ) const
inline

Definition at line 98 of file REveRGBAPalette.hxx.

◆ GetInterpolate()

Bool_t ROOT::Experimental::REveRGBAPalette::GetInterpolate ( ) const
inline

Definition at line 105 of file REveRGBAPalette.hxx.

◆ GetLowLimit()

Int_t ROOT::Experimental::REveRGBAPalette::GetLowLimit ( ) const
inline

Definition at line 97 of file REveRGBAPalette.hxx.

◆ GetMaxVal()

Int_t ROOT::Experimental::REveRGBAPalette::GetMaxVal ( ) const
inline

Definition at line 89 of file REveRGBAPalette.hxx.

◆ GetMinVal()

Int_t ROOT::Experimental::REveRGBAPalette::GetMinVal ( ) const
inline

Definition at line 88 of file REveRGBAPalette.hxx.

◆ GetOverColor()

Color_t ROOT::Experimental::REveRGBAPalette::GetOverColor ( ) const
inline

Definition at line 143 of file REveRGBAPalette.hxx.

◆ GetOverflowAction()

Int_t ROOT::Experimental::REveRGBAPalette::GetOverflowAction ( ) const
inline

Definition at line 115 of file REveRGBAPalette.hxx.

◆ GetOverRGBA() [1/2]

UChar_t * ROOT::Experimental::REveRGBAPalette::GetOverRGBA ( )
inline

Definition at line 145 of file REveRGBAPalette.hxx.

◆ GetOverRGBA() [2/2]

const UChar_t * ROOT::Experimental::REveRGBAPalette::GetOverRGBA ( ) const
inline

Definition at line 146 of file REveRGBAPalette.hxx.

◆ GetShowDefValue()

Bool_t ROOT::Experimental::REveRGBAPalette::GetShowDefValue ( ) const
inline

Definition at line 108 of file REveRGBAPalette.hxx.

◆ GetUIDoubleRep()

Bool_t ROOT::Experimental::REveRGBAPalette::GetUIDoubleRep ( ) const
inline

Definition at line 102 of file REveRGBAPalette.hxx.

◆ GetUnderColor()

Color_t ROOT::Experimental::REveRGBAPalette::GetUnderColor ( ) const
inline

Definition at line 132 of file REveRGBAPalette.hxx.

◆ GetUnderflowAction()

Int_t ROOT::Experimental::REveRGBAPalette::GetUnderflowAction ( ) const
inline

Definition at line 114 of file REveRGBAPalette.hxx.

◆ GetUnderRGBA() [1/2]

UChar_t * ROOT::Experimental::REveRGBAPalette::GetUnderRGBA ( )
inline

Definition at line 134 of file REveRGBAPalette.hxx.

◆ GetUnderRGBA() [2/2]

const UChar_t * ROOT::Experimental::REveRGBAPalette::GetUnderRGBA ( ) const
inline

Definition at line 135 of file REveRGBAPalette.hxx.

◆ IntToDouble()

Double_t ROOT::Experimental::REveRGBAPalette::IntToDouble ( Int_t  i) const
inlineprotected

Definition at line 66 of file REveRGBAPalette.hxx.

◆ OnZeroRefCount()

void ROOT::Experimental::REveRGBAPalette::OnZeroRefCount ( )
inlineoverridevirtual

Implements ROOT::Experimental::REveRefCnt.

Definition at line 152 of file REveRGBAPalette.hxx.

◆ operator=()

REveRGBAPalette & ROOT::Experimental::REveRGBAPalette::operator= ( const REveRGBAPalette )
privatedelete

◆ PtrDefaultColor()

Color_t * ROOT::Experimental::REveRGBAPalette::PtrDefaultColor ( )
inline

Definition at line 122 of file REveRGBAPalette.hxx.

◆ PtrOverColor()

Color_t * ROOT::Experimental::REveRGBAPalette::PtrOverColor ( )
inline

Definition at line 144 of file REveRGBAPalette.hxx.

◆ PtrUnderColor()

Color_t * ROOT::Experimental::REveRGBAPalette::PtrUnderColor ( )
inline

Definition at line 133 of file REveRGBAPalette.hxx.

◆ SetDefaultColor()

void REveRGBAPalette::SetDefaultColor ( Color_t  ci)

Set default color.

Definition at line 262 of file REveRGBAPalette.cxx.

◆ SetDefaultColorPixel()

void REveRGBAPalette::SetDefaultColorPixel ( Pixel_t  pix)

Set default color.

Definition at line 271 of file REveRGBAPalette.cxx.

◆ SetDefaultColorRGBA()

void REveRGBAPalette::SetDefaultColorRGBA ( UChar_t  r,
UChar_t  g,
UChar_t  b,
UChar_t  a = 255 
)

Set default color.

Definition at line 279 of file REveRGBAPalette.cxx.

◆ SetFixColorRange()

void REveRGBAPalette::SetFixColorRange ( Bool_t  v)

Set flag specifying how the palette is mapped to signal values: true - LowLimit -> HighLimit false - MinValue -> MaxValue.

Definition at line 253 of file REveRGBAPalette.cxx.

◆ SetInterpolate()

void REveRGBAPalette::SetInterpolate ( Bool_t  b)

Set interpolation flag.

This determines how colors from ROOT's palette are mapped into RGBA values for given signal.

Definition at line 242 of file REveRGBAPalette.cxx.

◆ SetLimits()

void REveRGBAPalette::SetLimits ( Int_t  low,
Int_t  high 
)

Set low/high limits on signal value.

Current min/max values are clamped into the new limits.

Definition at line 166 of file REveRGBAPalette.cxx.

◆ SetLimitsScaleMinMax()

void REveRGBAPalette::SetLimitsScaleMinMax ( Int_t  low,
Int_t  high 
)

Set low/high limits and rescale current min/max values.

Definition at line 182 of file REveRGBAPalette.cxx.

◆ SetMax()

void REveRGBAPalette::SetMax ( Int_t  max)

Set current max value.

Definition at line 207 of file REveRGBAPalette.cxx.

◆ SetMin()

void REveRGBAPalette::SetMin ( Int_t  min)

Set current min value.

Definition at line 198 of file REveRGBAPalette.cxx.

◆ SetMinMax()

void REveRGBAPalette::SetMinMax ( Int_t  min,
Int_t  max 
)

Set current min/max values.

Definition at line 216 of file REveRGBAPalette.cxx.

◆ SetOverColor()

void REveRGBAPalette::SetOverColor ( Color_t  ci)

Set overflow color.

Definition at line 320 of file REveRGBAPalette.cxx.

◆ SetOverColorPixel()

void REveRGBAPalette::SetOverColorPixel ( Pixel_t  pix)

Set overflow color.

Definition at line 329 of file REveRGBAPalette.cxx.

◆ SetOverColorRGBA()

void REveRGBAPalette::SetOverColorRGBA ( UChar_t  r,
UChar_t  g,
UChar_t  b,
UChar_t  a = 255 
)

Set overflow color.

Definition at line 337 of file REveRGBAPalette.cxx.

◆ SetOverflowAction()

void ROOT::Experimental::REveRGBAPalette::SetOverflowAction ( Int_t  a)
inline

Definition at line 117 of file REveRGBAPalette.hxx.

◆ SetShowDefValue()

void ROOT::Experimental::REveRGBAPalette::SetShowDefValue ( Bool_t  v)
inline

Definition at line 109 of file REveRGBAPalette.hxx.

◆ SetUIDoubleRep()

void REveRGBAPalette::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 values with mapping from integer value i to real value d as: d = f*i + fc.

Definition at line 228 of file REveRGBAPalette.cxx.

◆ SetUnderColor()

void REveRGBAPalette::SetUnderColor ( Color_t  ci)

Set underflow color.

Definition at line 291 of file REveRGBAPalette.cxx.

◆ SetUnderColorPixel()

void REveRGBAPalette::SetUnderColorPixel ( Pixel_t  pix)

Set underflow color.

Definition at line 300 of file REveRGBAPalette.cxx.

◆ SetUnderColorRGBA()

void REveRGBAPalette::SetUnderColorRGBA ( UChar_t  r,
UChar_t  g,
UChar_t  b,
UChar_t  a = 255 
)

Set underflow color.

Definition at line 308 of file REveRGBAPalette.cxx.

◆ SetUnderflowAction()

void ROOT::Experimental::REveRGBAPalette::SetUnderflowAction ( Int_t  a)
inline

Definition at line 116 of file REveRGBAPalette.hxx.

◆ SetupColor()

void REveRGBAPalette::SetupColor ( Int_t  val,
UChar_t pix 
) const
protected

Set RGBA color 'pixel' for signal-value 'val'.

Definition at line 107 of file REveRGBAPalette.cxx.

◆ SetupColorArray()

void REveRGBAPalette::SetupColorArray ( ) const

Construct internal color array that maps signal value to RGBA color.

Definition at line 132 of file REveRGBAPalette.cxx.

◆ WithinVisibleRange()

Bool_t REveRGBAPalette::WithinVisibleRange ( Int_t  val) const
inline

Definition at line 161 of file REveRGBAPalette.hxx.

Friends And Related Function Documentation

◆ REveRGBAPaletteEditor

friend class REveRGBAPaletteEditor
friend

Definition at line 24 of file REveRGBAPalette.hxx.

◆ REveRGBAPaletteOverlay

friend class REveRGBAPaletteOverlay
friend

Definition at line 27 of file REveRGBAPalette.hxx.

◆ REveRGBAPaletteSubEditor

friend class REveRGBAPaletteSubEditor
friend

Definition at line 25 of file REveRGBAPalette.hxx.

Member Data Documentation

◆ fCAMax

Int_t ROOT::Experimental::REveRGBAPalette::fCAMax
mutableprotected

Definition at line 61 of file REveRGBAPalette.hxx.

◆ fCAMin

Int_t ROOT::Experimental::REveRGBAPalette::fCAMin
mutableprotected

Definition at line 60 of file REveRGBAPalette.hxx.

◆ fColorArray

UChar_t* ROOT::Experimental::REveRGBAPalette::fColorArray
mutableprotected

Definition at line 62 of file REveRGBAPalette.hxx.

◆ fDefaultColor

Color_t ROOT::Experimental::REveRGBAPalette::fDefaultColor
protected

Definition at line 52 of file REveRGBAPalette.hxx.

◆ fDefaultRGBA

UChar_t ROOT::Experimental::REveRGBAPalette::fDefaultRGBA[4]
protected

Definition at line 53 of file REveRGBAPalette.hxx.

◆ fFixColorRange

Bool_t ROOT::Experimental::REveRGBAPalette::fFixColorRange
protected

Definition at line 48 of file REveRGBAPalette.hxx.

◆ fgDefaultPalette

REveRGBAPalette* ROOT::Experimental::REveRGBAPalette::fgDefaultPalette
staticprotected

Definition at line 72 of file REveRGBAPalette.hxx.

◆ fHighLimit

Int_t ROOT::Experimental::REveRGBAPalette::fHighLimit
protected

Definition at line 41 of file REveRGBAPalette.hxx.

◆ fInterpolate

Bool_t ROOT::Experimental::REveRGBAPalette::fInterpolate
protected

Definition at line 46 of file REveRGBAPalette.hxx.

◆ fLowLimit

Int_t ROOT::Experimental::REveRGBAPalette::fLowLimit
protected

Definition at line 40 of file REveRGBAPalette.hxx.

◆ fMaxVal

Int_t ROOT::Experimental::REveRGBAPalette::fMaxVal
protected

Definition at line 43 of file REveRGBAPalette.hxx.

◆ fMinVal

Int_t ROOT::Experimental::REveRGBAPalette::fMinVal
protected

Definition at line 42 of file REveRGBAPalette.hxx.

◆ fNBins

Int_t ROOT::Experimental::REveRGBAPalette::fNBins
mutableprotected

Definition at line 59 of file REveRGBAPalette.hxx.

◆ fOverColor

Color_t ROOT::Experimental::REveRGBAPalette::fOverColor
protected

Definition at line 56 of file REveRGBAPalette.hxx.

◆ fOverflowAction

Int_t ROOT::Experimental::REveRGBAPalette::fOverflowAction
protected

Definition at line 50 of file REveRGBAPalette.hxx.

◆ fOverRGBA

UChar_t ROOT::Experimental::REveRGBAPalette::fOverRGBA[4]
protected

Definition at line 57 of file REveRGBAPalette.hxx.

◆ fShowDefValue

Bool_t ROOT::Experimental::REveRGBAPalette::fShowDefValue
protected

Definition at line 47 of file REveRGBAPalette.hxx.

◆ fUIc

Double_t ROOT::Experimental::REveRGBAPalette::fUIc
protected

Definition at line 38 of file REveRGBAPalette.hxx.

◆ fUIDoubleRep

Bool_t ROOT::Experimental::REveRGBAPalette::fUIDoubleRep
protected

Definition at line 45 of file REveRGBAPalette.hxx.

◆ fUIf

Double_t ROOT::Experimental::REveRGBAPalette::fUIf
protected

Definition at line 37 of file REveRGBAPalette.hxx.

◆ fUnderColor

Color_t ROOT::Experimental::REveRGBAPalette::fUnderColor
protected

Definition at line 54 of file REveRGBAPalette.hxx.

◆ fUnderflowAction

Int_t ROOT::Experimental::REveRGBAPalette::fUnderflowAction
protected

Definition at line 49 of file REveRGBAPalette.hxx.

◆ fUnderRGBA

UChar_t ROOT::Experimental::REveRGBAPalette::fUnderRGBA[4]
protected

Definition at line 55 of file REveRGBAPalette.hxx.


The documentation for this class was generated from the following files: