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