Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Internal::RVirtualCanvasPainter Class Referenceabstract

Abstract interface for painting a canvas.

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Date
2017-05-31
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 34 of file RVirtualCanvasPainter.hxx.

Classes

class  Generator
 

Public Member Functions

virtual ~RVirtualCanvasPainter ()
 Default destructor.
 
virtual bool AddPanel (std::shared_ptr< RWebWindow >)
 
virtual void CanvasUpdated (uint64_t, bool, CanvasCallback_t)=0
 indicate that canvas changed, provides current version of the canvas
 
virtual void DoWhenReady (const std::string &, const std::string &, bool, CanvasCallback_t)=0
 perform special action when drawing is ready
 
virtual std::string GetWindowAddr () const =0
 
virtual bool IsCanvasModified (uint64_t) const =0
 return true if canvas modified since last painting
 
virtual void NewDisplay (const std::string &where)=0
 
virtual int NumDisplays () const =0
 
virtual bool ProduceBatchOutput (const std::string &, int, int)=0
 produce file output in batch mode like png, jpeg, svg or pdf
 
virtual std::string ProduceJSON ()=0
 produce canvas JSON
 
virtual void Run (double tm=0.)=0
 run canvas functionality in caller thread, not needed when main thread is used
 

Static Public Member Functions

static std::unique_ptr< RVirtualCanvasPainterCreate (RCanvas &canv)
 Loads the plugin that implements this class.
 

Static Protected Member Functions

static std::unique_ptr< Generator > & GetGenerator ()
 generator getter
 

#include <ROOT/RVirtualCanvasPainter.hxx>

Inheritance diagram for ROOT::Experimental::Internal::RVirtualCanvasPainter:
[legend]

Constructor & Destructor Documentation

◆ ~RVirtualCanvasPainter()

RVirtualCanvasPainter::~RVirtualCanvasPainter ( )
virtualdefault

Default destructor.

The implementation is here to pin the vtable.

Member Function Documentation

◆ AddPanel()

virtual bool ROOT::Experimental::Internal::RVirtualCanvasPainter::AddPanel ( std::shared_ptr< RWebWindow )
inlinevirtual

Reimplemented in ROOT::Experimental::RCanvasPainter.

Definition at line 75 of file RVirtualCanvasPainter.hxx.

◆ CanvasUpdated()

virtual void ROOT::Experimental::Internal::RVirtualCanvasPainter::CanvasUpdated ( uint64_t  ,
bool  ,
CanvasCallback_t   
)
pure virtual

indicate that canvas changed, provides current version of the canvas

Implemented in ROOT::Experimental::RCanvasPainter.

◆ Create()

std::unique_ptr< RVirtualCanvasPainter > RVirtualCanvasPainter::Create ( RCanvas canv)
static

Loads the plugin that implements this class.

Definition at line 42 of file RVirtualCanvasPainter.cxx.

◆ DoWhenReady()

virtual void ROOT::Experimental::Internal::RVirtualCanvasPainter::DoWhenReady ( const std::string &  ,
const std::string &  ,
bool  ,
CanvasCallback_t   
)
pure virtual

perform special action when drawing is ready

Implemented in ROOT::Experimental::RCanvasPainter.

◆ GetGenerator()

std::unique_ptr< RVirtualCanvasPainter::Generator > & RVirtualCanvasPainter::GetGenerator ( )
staticprotected

generator getter

Definition at line 35 of file RVirtualCanvasPainter.cxx.

◆ GetWindowAddr()

virtual std::string ROOT::Experimental::Internal::RVirtualCanvasPainter::GetWindowAddr ( ) const
pure virtual

◆ IsCanvasModified()

virtual bool ROOT::Experimental::Internal::RVirtualCanvasPainter::IsCanvasModified ( uint64_t  ) const
pure virtual

return true if canvas modified since last painting

Implemented in ROOT::Experimental::RCanvasPainter.

◆ NewDisplay()

virtual void ROOT::Experimental::Internal::RVirtualCanvasPainter::NewDisplay ( const std::string &  where)
pure virtual

◆ NumDisplays()

virtual int ROOT::Experimental::Internal::RVirtualCanvasPainter::NumDisplays ( ) const
pure virtual

◆ ProduceBatchOutput()

virtual bool ROOT::Experimental::Internal::RVirtualCanvasPainter::ProduceBatchOutput ( const std::string &  ,
int  ,
int   
)
pure virtual

produce file output in batch mode like png, jpeg, svg or pdf

Implemented in ROOT::Experimental::RCanvasPainter.

◆ ProduceJSON()

virtual std::string ROOT::Experimental::Internal::RVirtualCanvasPainter::ProduceJSON ( )
pure virtual

produce canvas JSON

Implemented in ROOT::Experimental::RCanvasPainter.

◆ Run()

virtual void ROOT::Experimental::Internal::RVirtualCanvasPainter::Run ( double  tm = 0.)
pure virtual

run canvas functionality in caller thread, not needed when main thread is used

Implemented in ROOT::Experimental::RCanvasPainter.


The documentation for this class was generated from the following files: