12#ifndef ROOT_REveDigitSet
13#define ROOT_REveDigitSet
int Int_t
Signed integer 4 bytes (int).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
char Char_t
Character 1 byte (char).
bool Bool_t
Boolean (0=false, 1=true) (bool).
short Color_t
Color number (short).
void SetMainColor(Color_t color) override
Override from REveElement, forward to Frame.
void DigitId(TObject *id)
Set external object reference for the last digit added.
Bool_t GetHistoButtons() const
void NewShapePicked(int shapeId, Int_t selectionId, bool multi)
Bool_t GetEmitSignals() const
~REveDigitSet() override
Destructor.
friend class REveDigitSetEditor
REveRGBAPalette * GetPalette() const
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
Bool_t GetValueIsColor() const
friend class REveDigitSetGL
TooltipCB_foo GetTooltipCBFoo() const
REveDigitSet(const REveDigitSet &)
void SetAntiFlick(Bool_t f)
REveFrameBox * GetFrame() const
void SetPalette(REveRGBAPalette *p)
Set REveRGBAPalette pointer.
std::string(* TooltipCB_foo)(const REveDigitSet *, Int_t)
void FillExtraSelectionData(nlohmann::json &j, const std::set< int > &secondary_idcs) const override
void SetTooltipCBFoo(TooltipCB_foo f)
REveRGBAPalette * AssertPalette()
Make sure the REveRGBAPalette pointer is not null.
Bool_t GetHighlightFrame() const
DigitBase_t * NewDigit()
Protected method called whenever a new digit is added.
Bool_t GetSelectViaFrame() const
Bool_t GetDisableLighting() const
void DigitColor(Color_t ci)
Set color for the last digit added.
void SetCurrentDigit(Int_t idx)
Set current digit – the one that will receive calls to DigitValue/Color/Id/UserData() functions.
int GetAtomIdxFromShapeIdx(int) const
Utility function for maping digit idx with visible shape idx.
bool IsDigitVisible(const DigitBase_t *) const
Utility function for maping digit idx with visible shape idx.
std::string GetHighlightTooltip(const std::set< int > &secondary_idcs) const override
Return tooltip for highlighted element if always-sec-select is set.
void SetHighlightFrame(Bool_t hf)
void ScanMinMaxValues(Int_t &min, Int_t &max)
Iterate over the digits and determine min and max signal values.
void UseSingleColor()
Instruct digit-set to use single color for its digits.
void SetSelectViaFrame(Bool_t sf)
void(* Callback_foo)(const REveDigitSet *, Int_t, TObject *)
Bool_t fDetIdsAsSecondaryIndices
void RefitPlex()
Instruct underlying memory allocator to regroup itself into a contiguous memory chunk.
void SetEmitSignals(Bool_t f)
void SetRenderMode(ERenderMode_e rm)
Bool_t GetAntiFlick() const
void SetHistoButtons(Bool_t f)
DigitBase_t * GetDigit(Int_t n) const
REveRGBAPalette * fPalette
REveDigitSet & operator=(const REveDigitSet &)
void SetDisableLighting(Bool_t l)
Int_t fLastIdx
! The last / current idx added to collection.
void SetCallbackFoo(Callback_foo f)
void ReleaseIds()
Protected method.
Bool_t GetDetIdsAsSecondaryIndices() const
DigitBase_t * fLastDigit
! The last / current digit added to collection.
ERenderMode_e fRenderMode
int GetShapeIdxFromAtomIdx(int) const
Utility function for maping shape idx to digit idx.
REveChunkManager * GetPlex()
void DigitValue(Int_t value)
Set signal value for the last digit added.
Callback_foo GetCallbackFoo() const
void SetDetIdsAsSecondaryIndices(Bool_t o)
void SetFrame(REveFrameBox *b)
Set REveFrameBox pointer.
TooltipCB_foo fTooltipCBFoo
! Function providing highlight tooltips when always-sec-select is active.
TObject * GetId(Int_t n) const
Set external object reference for digit n.
ERenderMode_e GetRenderMode() const
Callback_foo fCallbackFoo
! Additional function to call on secondary-select.
bool RequiresExtraSelectionData() const override
virtual std::string GetHighlightTooltip(const std::set< int > &) const
REveElement(const std::string &name="", const std::string &title="")
Default constructor.
REveSecondarySelectable(const REveSecondarySelectable &)=delete
Bool_t GetAlwaysSecSelect() const
TAttBBox(const TAttBBox &tab)
Mother of all ROOT objects.
An array of references to TObjects.
Namespace for ROOT features in testing.