REveUtil Standard utility functions for Reve.
Definition at line 34 of file REveUtil.hxx.
Public Member Functions | |
virtual | ~REveUtil () |
Static Public Member Functions | |
static void | AssertMacro (const char *mac) |
Load and execute macro 'mac' if it has not been loaded yet. | |
static Bool_t | CheckMacro (const char *mac) |
Checks if macro 'mac' is loaded. | |
static void | ColorFromIdx (Color_t ci, UChar_t col[4], Bool_t alpha=kTRUE) |
Fill col with RGBA values corresponding to index ci. | |
static void | ColorFromIdx (Color_t ci, UChar_t col[4], Char_t transparency) |
Fill col with RGBA values corresponding to index ci and transparency. | |
static void | ColorFromIdx (Float_t f1, Color_t c1, Float_t f2, Color_t c2, UChar_t col[4], Bool_t alpha=kTRUE) |
Fill col with weighted RGBA values corresponding to color-indices c1 and c2. | |
static Color_t * | FindColorVar (TObject *obj, const char *varname) |
Find address of Color_t data-member with name varname in object obj. | |
static Float_t | GetFraction (Float_t minM, Float_t maxM, Float_t minQ, Float_t maxQ) |
Get fraction of interval [minQ, maxQ] in [minM, maxM]. | |
static Bool_t | IsU1IntervalContainedByMeanDelta (Float_t meanM, Float_t deltaM, Float_t meanQ, Float_t deltaQ) |
static Bool_t | IsU1IntervalContainedByMinMax (Float_t minM, Float_t maxM, Float_t minQ, Float_t maxQ) |
Return true if interval Q is contained within interval M for U1 variables. | |
static Bool_t | IsU1IntervalOverlappingByMeanDelta (Float_t meanM, Float_t deltaM, Float_t meanQ, Float_t deltaQ) |
static Bool_t | IsU1IntervalOverlappingByMinMax (Float_t minM, Float_t maxM, Float_t minQ, Float_t maxQ) |
Return true if interval Q is overlapping within interval M for U1 variables. | |
static void | LoadMacro (const char *mac) |
Makes sure that macro 'mac' is loaded, but do not reload it. | |
static void | Macro (const char *mac) |
Execute macro 'mac'. Do not reload the macro. | |
static void | SetColorBrightness (Float_t value, Bool_t full_redraw=kFALSE) |
Tweak all ROOT colors to become brighter (if value > 0) or darker (value < 0). | |
static bool | VerifyObjectFilterOrTableExpression (std::string_view expr) |
Input string verification and sanitization. | |
Static Private Attributes | |
static TObjArray * | fgDefaultColors = nullptr |
#include <ROOT/REveUtil.hxx>
|
inlinevirtual |
Definition at line 40 of file REveUtil.hxx.
|
static |
Load and execute macro 'mac' if it has not been loaded yet.
Definition at line 85 of file REveUtil.cxx.
|
static |
Checks if macro 'mac' is loaded.
Definition at line 67 of file REveUtil.cxx.
Fill col with RGBA values corresponding to index ci.
If alpha is true, set alpha component of col to 255. ROOT's indexed color palette does not support transparency.
Definition at line 138 of file REveUtil.cxx.
Fill col with RGBA values corresponding to index ci and transparency.
ROOT's indexed color palette does not support transparency.
Definition at line 161 of file REveUtil.cxx.
|
static |
Fill col with weighted RGBA values corresponding to color-indices c1 and c2.
If alpha is true, set alpha component of col to 255.
Definition at line 186 of file REveUtil.cxx.
Find address of Color_t data-member with name varname in object obj.
This is used to access color information for TGListTreeItem coloration from visualization macros that wrap TObjects into REveElementObjectPtr instances.
Definition at line 207 of file REveUtil.cxx.
Get fraction of interval [minQ, maxQ] in [minM, maxM].
Definition at line 332 of file REveUtil.cxx.
|
inlinestatic |
Definition at line 73 of file REveUtil.hxx.
|
static |
Return true if interval Q is contained within interval M for U1 variables.
It is assumed that all values are within the [-2pi, 2pi] interval and minM <= maxM & minQ <= maxQ.
Definition at line 292 of file REveUtil.cxx.
|
inlinestatic |
Definition at line 78 of file REveUtil.hxx.
|
static |
Return true if interval Q is overlapping within interval M for U1 variables.
It is assumed that all values are within the [-2pi, 2pi] interval and minM <= maxM & minQ <= maxQ.
Definition at line 313 of file REveUtil.cxx.
|
static |
Makes sure that macro 'mac' is loaded, but do not reload it.
Definition at line 107 of file REveUtil.cxx.
|
static |
Execute macro 'mac'. Do not reload the macro.
Definition at line 95 of file REveUtil.cxx.
Tweak all ROOT colors to become brighter (if value > 0) or darker (value < 0).
Reasonable values for the value argument are from -2.5 to 2.5 (error will be printed otherwise). If value is zero, the original colors are restored.
You should call REveManager::FullRedraw3D() afterwards or set the argument full_redraw to true (default is false).
Definition at line 226 of file REveUtil.cxx.
|
static |
Input string verification and sanitization.
Definition at line 117 of file REveUtil.cxx.
|
staticprivate |
Definition at line 37 of file REveUtil.hxx.