21using namespace std::string_literals;
42 std::string
GetKind()
const override {
return "rcanvas"s; }
44 void Show(
const std::string &arg)
override
51 return "../"s +
fCanvas->GetWindowAddr() +
"/"s;
59 bool DrawElement(std::shared_ptr<Browsable::RElement> &elem,
const std::string &opt)
override
64 auto obj = elem->GetObject();
68 std::shared_ptr<RPadBase> subpad =
fCanvas;
91 std::shared_ptr<RBrowserWidget>
Create(
const std::string &
name)
final
93 return std::make_shared<RBrowserRCanvasWidget>(
name);
96 std::shared_ptr<RBrowserWidget>
CreateFor(
const std::string &
name, std::shared_ptr<Browsable::RElement> &elem)
final
98 auto holder = elem->GetObject();
99 if (!holder)
return nullptr;
101 auto canv = holder->get_shared<
RCanvas>();
102 if (!canv)
return nullptr;
104 return std::make_shared<RBrowserRCanvasWidget>(
name, canv);
std::shared_ptr< RBrowserWidget > Create(const std::string &name) final
~RBrowserRCanvasProvider()=default
RBrowserRCanvasProvider()
std::shared_ptr< RBrowserWidget > CreateFor(const std::string &name, std::shared_ptr< Browsable::RElement > &elem) final
@ kActDraw7
can be drawn inside ROOT7 canvas
static bool Draw7(std::shared_ptr< ROOT::Experimental::RPadBase > &subpad, std::unique_ptr< RHolder > &obj, const std::string &opt="")
Invoke drawing of object on RCanvas sub-pad All existing providers are checked, first checked are cla...
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.