9#ifndef ROOT7_RDisplayItem
10#define ROOT7_RDisplayItem
15namespace Experimental {
51 virtual void BuildFullId(
const std::string &prefix);
72 template <
class DRAWABLE>
98 const std::string *
fId{
nullptr};
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Base class for painting data for JS.
virtual void BuildFullId(const std::string &prefix)
Build full id, including prefix and object index.
std::string fObjectID
unique object identifier
void SetStyle(RStyle *style)
void SetObjectID(const std::string &id)
bool fDummy
if true, just placeholder for drawable which does not changed
void SetObjectIDAsPtr(const void *ptr)
Assign id using arbitrary pointer value Typically drawable pointer should be used here.
unsigned fIndex
! index inside current pad, used to produce fully-qualified id, not send to client
RStyle * fStyle
style object
void SetIndex(unsigned indx)
static std::string ObjectIDFromPtr(const void *ptr)
Construct fillid using pointer value.
std::string GetObjectID() const
unsigned GetIndex() const
Generic display item for RDrawable, just reference drawable itself.
const RDrawable * GetDrawable() const
const RDrawable * fDrawable
drawable
RDrawableDisplayItem(const DRAWABLE &dr)
~RDrawableDisplayItem() override
destructor
Base class for drawable entities: objects that can be painted on a RPad.
Extract (reference) only basic attributes from drawable, but not drawable itself.
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
A set of defaults for graphics attributes, e.g.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.