16 #ifndef ROOT7_TVirtualCanvasPainter 17 #define ROOT7_TVirtualCanvasPainter 25 namespace Experimental {
43 virtual std::unique_ptr<TVirtualCanvasPainter>
Create(
const TCanvas &canv,
bool batch_mode)
const = 0;
70 virtual void NewDisplay(
const std::string &where) = 0;
72 virtual bool AddPanel(std::shared_ptr<TWebWindow>) {
return false; }
75 static std::unique_ptr<TVirtualCanvasPainter>
Create(
const TCanvas &canv,
bool batch_mode =
false);
81 #endif // ROOT7_TVirtualCanvasPainter virtual bool IsCanvasModified(uint64_t) const =0
return true if canvas modified since last painting
Namespace for new ROOT classes and functions.
A window's topmost TPad.
virtual void DoWhenReady(const std::string &, const std::string &, bool, CanvasCallback_t)=0
perform special action when drawing is ready
virtual std::unique_ptr< TVirtualCanvasPainter > Create(const TCanvas &canv, bool batch_mode) const =0
Abstract interface to create a TVirtualCanvasPainter implementation.
virtual ~TVirtualCanvasPainter()
Default destructor.
static std::unique_ptr< Generator > & GetGenerator()
generator getter
virtual void NewDisplay(const std::string &where)=0
virtual ~Generator()
Default destructor.
virtual void AddDisplayItem(TDisplayItem *item)=0
add display item to the canvas
Abstract interface for painting a canvas.
virtual bool AddPanel(std::shared_ptr< TWebWindow >)
virtual bool IsBatchMode() const
returns true is canvas used in batch mode
virtual void CanvasUpdated(uint64_t, bool, CanvasCallback_t)=0
indicate that canvas changed, provides current version of the canvas
std::function< void(bool)> CanvasCallback_t
Base class for painting data for JS.