25RDrawable::~RDrawable() =
default;
45 std::stringstream cmd;
46 cmd <<
"((" << isA->GetName() <<
" *) " << std::hex << std::showbase << (size_t)
this <<
")->" << exec <<
";";
47 R__DEBUG_HERE(
"drawable") <<
"RDrawable::Execute Obj " <<
this <<
" cmd " << exec;
48 gROOT->ProcessLine(cmd.str().c_str());
61 return (selector ==
fCssType) || (!
fCssClass.empty() && (selector == std::string(
".") +
fCssClass)) || (!
fId.empty() && (selector == std::string(
"#") +
fId));
71 return std::make_unique<RDrawableDisplayItem>(*
this);
#define R__DEBUG_HERE(GROUP)
Version_t GetLastVersion() const
virtual void Execute(const std::string &)
Version_t GetVersion() const
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
bool MatchSelector(const std::string &selector) const
Preliminary method which checks if drawable matches with given selector Following selector are allowe...
std::string fCssType
! drawable type, not stored in the root file, must be initialized in constructor
virtual std::unique_ptr< RDisplayItem > Display(const RDisplayContext &)
Creates display item for drawable By default item contains drawable data itself.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.