101 fRenderMode (kRM_AsIs),
104 fDisableLighting(
kTRUE),
105 fHistoButtons (
kTRUE),
107 fCallbackFoo (nullptr),
108 fTooltipCBFoo (nullptr)
151 for (
Int_t i = 0; i <
N; ++i)
260 if (
v < min) min =
v;
261 if (
v > max) max =
v;
311 x[0] =
r;
x[1] =
g;
x[2] =
b;
x[3] =
a;
320 x[0] = rgba[0];
x[1] = rgba[1];
x[2] = rgba[2];
x[3] = rgba[3];
400 printf(
"TEveDigitSet::DigitSelected idx=%d, value=%d, obj=0x%zx\n",
401 idx, qb->
fValue, (
size_t)obj);
417 Emit(
"SecSelected(TEveDigitSet*, Int_t)", args);
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Char_t * Chunk(Int_t chk) const
Int_t NAtoms(Int_t chk) const
void Refit()
Refit the container so that all current data fits into a single chunk.
Base-class for storage of digit collections; provides transformation matrix (TEveTrans),...
TString GetHighlightTooltip() override
Return tooltip for highlighted element if always-sec-select is set.
void ScanMinMaxValues(Int_t &min, Int_t &max)
Iterate over the digits and determine min and max signal values.
void SetCurrentDigit(Int_t idx)
Set current digit – the one that will receive calls to DigitValue/Color/Id/UserData() functions.
TooltipCB_foo fTooltipCBFoo
Additional function to call on secondary-select.
void UnSelected() override
Virtual function called when both fSelected is false and fImpliedSelected is 0.
TEveDigitSet(const TEveDigitSet &)
TEveRGBAPalette * fPalette
TEveRGBAPalette * AssertPalette()
Make sure the TEveRGBAPalette pointer is not null.
Int_t fLastIdx
The last / current digit added to collection.
void UseSingleColor()
Instruct digit-set to use single color for its digits.
void DigitColor(Color_t ci)
Set color for the last digit added.
void DigitValue(Int_t value)
Set signal value for the last digit added.
void RefitPlex()
Instruct underlying memory allocator to regroup itself into a contiguous memory chunk.
void ReleaseIds()
Protected method.
Callback_foo fCallbackFoo
TObject * GetId(Int_t n) const
Return external TObject associated with digit n.
void * GetUserData() const
void SetPalette(TEveRGBAPalette *p)
Set TEveRGBAPalette pointer.
void UnHighlighted() override
Virtual function called when both fHighlighted is false and fImpliedHighlighted is 0.
virtual void DigitSelected(Int_t idx)
Called from renderer when a digit with index idx is selected.
void SetMainColor(Color_t color) override
Override from TEveElement, forward to Frame.
DigitBase_t * NewDigit()
Function providing highlight tooltips when always-sec-select is active.
void SetFrame(TEveFrameBox *b)
Set TEveFrameBox pointer.
virtual void SecSelected(TEveDigitSet *qs, Int_t idx)
Emit a SecSelected signal.
void DigitUserData(void *ud)
Set user-data for the last digit added.
void Paint(Option_t *option="") override
Paint this object. Only direct rendering is supported.
Color_t fColor
The last / current idx added to collection.
DigitBase_t * GetDigit(Int_t n) const
void DigitId(TObject *id)
Set external object reference for the last digit added.
~TEveDigitSet() override
Destructor.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void InitMainTrans(Bool_t can_edit=kTRUE)
Initialize the main transformation to identity matrix.
virtual TString GetHighlightTooltip()
Bool_t fCanEditMainTransparency
virtual void SetMainColor(Color_t color)
Set main color of the element.
virtual void UnHighlighted()
Virtual function called when both fHighlighted is false and fImpliedHighlighted is 0.
void SetMainColorPtr(Color_t *color)
virtual const char * GetElementName() const
Virtual function for retrieving name of the element.
virtual void PaintStandard(TObject *id)
Paint object – a generic implementation for EVE elements.
virtual void UnSelected()
Virtual function called when both fSelected is false and fImpliedSelected is 0.
Description of a 2D or 3D frame that can be used to visually group a set of objects.
void SetFrameColor(Color_t ci)
Set color of the frame.
Color_t * PtrFrameColor()
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
void SetMinMax(Int_t min, Int_t max)
Set current min/max values.
void SetLimits(Int_t low, Int_t high)
Set low/high limits on signal value.
virtual void StampBackPtrElements(UChar_t stamps)
Add given stamps to elements in the list of reverse references.
virtual void IncRefCount(TEveElement *re)
Increase reference count and add re to the list of back-references.
virtual void DecRefCount(TEveElement *re)
Decrease reference count and remove re from the list of back-references.
SelectionSet_t fHighlightedSet
SelectionSet_t fSelectedSet
Bool_t GetAlwaysSecSelect() const
static void ColorFromIdx(Color_t ci, UChar_t col[4], Bool_t alpha=kTRUE)
Fill col with RGBA values corresponding to index ci.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
An array of references to TObjects.
TObject * At(Int_t idx) const override
virtual void Expand(Int_t newSize)
Expand or shrink the array to newSize elements.
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.