150 for (
Int_t i = 0; i <
N; ++i)
177 fFrame->SetFrameColor(color);
259 if (
v < min) min =
v;
260 if (
v > max) max =
v;
310 x[0] =
r;
x[1] =
g;
x[2] =
b;
x[3] =
a;
319 x[0] = rgba[0];
x[1] = rgba[1];
x[2] = rgba[2];
x[3] = rgba[3];
399 printf(
"TEveDigitSet::DigitSelected idx=%d, value=%d, obj=0x%zx\n",
400 idx, qb->
fValue, (
size_t)obj);
416 Emit(
"SecSelected(TEveDigitSet*, Int_t)", args);
428 fFrame->IncRefCount(
this);
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
char Char_t
Character 1 byte (char).
short Color_t
Color number (short).
const char Option_t
Option string (const char).
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
! Function providing highlight tooltips when always-sec-select is active.
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 idx 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.
ERenderMode_e fRenderMode
Callback_foo fCallbackFoo
! Additional function to call on secondary-select.
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.
DigitBase_t * fLastDigit
! The last / current digit added to collection.
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()
Protected method called whenever a new digit is added.
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.
DigitBase_t * GetDigit(Int_t n) const
void DigitId(TObject *id)
Set external object reference for the last digit added.
~TEveDigitSet() override
Destructor.
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.
TEveElement()
Default constructor.
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.
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
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.
virtual const char * GetName() const
Returns name of object.
TObject()
TObject constructor.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
An array of references to TObjects.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.