18#include <ROOT/RDisplayItem.hxx>
46 cmd.
Form(
"((%s*) %p)->%s;", obj->
ClassName(), obj, exec.c_str());
47 printf(
"RObjectDrawable::Execute Obj %s Cmd %s\n", obj->
GetName(), cmd.
Data());
48 gROOT->ProcessLine(cmd);
Abstract interface for object painting on the pad/canvas.
virtual void AddDisplayItem(std::unique_ptr< RDisplayItem > &&item)
add display item to the canvas
void Paint(Internal::RPadPainter &canv) final
Paint the object.
void Execute(const std::string &) final
Executes menu item.
void PopulateMenu(RMenuItems &) final
Fill menu items for the object.
const std::shared_ptr< TObject > fObj
The object to be painted.
const std::string & GetOptionString() const
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.