16 #ifndef ROOT7_TObjectDrawable 17 #define ROOT7_TObjectDrawable 26 namespace Experimental {
33 const std::shared_ptr<TObject>
fObj;
52 void Execute(
const std::string &)
final;
59 inline std::unique_ptr<ROOT::Experimental::TDrawable>
62 return std::make_unique<ROOT::Experimental::TObjectDrawable>(obj);
Base class for drawable entities: objects that can be painted on a TPad.
Namespace for new ROOT classes and functions.
void PopulateMenu(TMenuItems &) final
Fill menu items for the object.
TObjectDrawable(const std::shared_ptr< TObject > &obj)
Base class for graphic containers for TDrawable-s.
std::string & Options()
Get the options - a string!
const std::shared_ptr< TObject > fObj
The object to be painted.
void Execute(const std::string &) final
Executes menu item.
std::string fOpts
The drawing options.
Abstract interface for painting a canvas.
Mother of all ROOT objects.
void Paint(Internal::TVirtualCanvasPainter &canv) final
Paint the histogram.
std::unique_ptr< TPadDrawable > GetDrawable(std::unique_ptr< TPad > &&pad, TPadBase &parent)
TObjectDrawable()=default