23 RegisterDraw7(
nullptr, [] (std::shared_ptr<ROOT::Experimental::RPadBase> &subpad, std::unique_ptr<RHolder> &obj,
const std::string &opt) ->
bool {
26 auto tobj = obj->get_shared<
TObject>();
27 if (!tobj)
return false;
29 if (subpad->NumPrimitives() > 0) {
31 subpad->GetCanvas()->Modified();
32 subpad->GetCanvas()->Update(
true);
36 subpad->GetCanvas()->Update(
true);
TObjectDraw7Provider newTObjectDraw7Provider
Provider of different browsing methods for supported classes.
void RegisterDraw7(const TClass *cl, Draw7Func_t func)
Provides v7 drawing facilities for TObject types (TGraph, TH1, TH2, etc).
Provider for drawing of ROOT7 classes.
Mother of all ROOT objects.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.