41 return std::to_string(hash);
virtual void BuildFullId(const std::string &prefix)
Build full id, including prefix and object index.
void SetObjectID(const std::string &id)
void SetObjectIDAsPtr(const void *ptr)
Assign id using arbitrary pointer value Typically drawable pointer should be used here.
static std::string ObjectIDFromPtr(const void *ptr)
Construct fillid using pointer value.
std::string GetObjectID() const
unsigned GetIndex() const
const RDrawable * fDrawable
drawable
virtual ~RDrawableDisplayItem()
destructor
Base class for drawable entities: objects that can be painted on a RPad.
RAttrMap fAttr
attributes values
std::string fCssClass
user defined drawable class, can later go inside map
std::string fId
optional object identifier, may be used in CSS as well
virtual void OnDisplayItemDestroyed(RDisplayItem *) const
RIndirectDisplayItem()=default
const std::string * fId
pointer on drawable id
const std::string * fCssClass
pointer on drawable class
const RAttrMap * fAttr
pointer on drawable attributes
const TObject * fObject
ROOT6 object.
virtual ~TObjectDisplayItem()
destructor
bool fOwner
! if object must be deleted
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.