16#ifndef ROOT7_RObjectDrawable
17#define ROOT7_RObjectDrawable
31namespace Experimental {
48 const std::shared_ptr<TObject>
fObj;
68 void Execute(
const std::string &)
final;
84inline std::shared_ptr<ROOT::Experimental::RObjectDrawable>
85GetDrawable(
const std::shared_ptr<TObject> &obj,
const std::string &opt =
"")
87 return std::make_shared<ROOT::Experimental::RObjectDrawable>(obj, opt);
std::shared_ptr< ROOT::Experimental::RObjectDrawable > GetDrawable(const std::shared_ptr< TObject > &obj, const std::string &opt="")
Interface to graphics taking a shared_ptr<TObject>.
Abstract interface for object painting on the pad/canvas.
Base class for painting data for JS.
std::string fOption
v6 draw options
RObjectDisplayItem(TObject *obj, const std::string &opt)
const TObject * fObject
object to draw
void Paint(Internal::RPadPainter &canv) final
Paint the object.
const RObjectDrawingOpts & GetOptions() const
Get the options - a string!
RObjectDrawingOpts & GetOptions()
void Execute(const std::string &) final
Executes menu item.
void PopulateMenu(RMenuItems &) final
Fill menu items for the object.
RObjectDrawable(const std::shared_ptr< TObject > &obj, const std::string &opt)
const std::shared_ptr< TObject > fObj
The object to be painted.
RObjectDrawable()=default
const std::string & GetOptionString() const
RObjectDrawingOpts(const std::string &opts="")
std::string fOpts
The drawing options.
Mother of all ROOT objects.
Namespace for new ROOT classes and functions.