Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RQt5WebDisplayHandle Class Reference

Definition at line 92 of file rootqt5.cpp.

Classes

class  Qt5Creator
 

Public Member Functions

 RQt5WebDisplayHandle (const std::string &url)
 
 ~RQt5WebDisplayHandle () override
 
bool Resize (int width, int height) override
 resize web window - if possible
 
- Public Member Functions inherited from ROOT::RWebDisplayHandle
 RWebDisplayHandle (const std::string &url)
 constructor
 
virtual ~RWebDisplayHandle ()=default
 required virtual destructor for correct cleanup at the end
 
const std::string & GetContent () const
 get content
 
const std::string & GetUrl () const
 returns url of start web display
 
void SetContent (const std::string &cont)
 set content
 

Static Public Member Functions

static void AddCreator ()
 
- Static Public Member Functions inherited from ROOT::RWebDisplayHandle
static bool CanProduceImages (const std::string &browser="")
 Returns true if image production for specified browser kind is supported If browser not specified - use currently configured browser or try to test existing web browsers.
 
static std::unique_ptr< RWebDisplayHandleDisplay (const RWebDisplayArgs &args)
 Create web display.
 
static bool DisplayUrl (const std::string &url)
 Display provided url in configured web browser.
 
static bool NeedHttpServer (const RWebDisplayArgs &args)
 Check if http server required for display.
 
static bool ProduceImage (const std::string &fname, const std::string &json, int width=800, int height=600, const char *batch_file=nullptr)
 Produce image file using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox.
 
static bool ProduceImages (const std::string &fname, const std::vector< std::string > &jsons, const std::vector< int > &widths, const std::vector< int > &heights, const char *batch_file=nullptr)
 Produce image file(s) using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox.
 

Protected Attributes

RootWebViewfView {nullptr}
 pointer on widget, need to release when handle is destroyed
 

Additional Inherited Members

- Static Protected Member Functions inherited from ROOT::RWebDisplayHandle
static bool CheckIfCanProduceImages (RWebDisplayArgs &args)
 Checks if configured browser can be used for image production.
 
static std::unique_ptr< Creator > & FindCreator (const std::string &name, const std::string &libname="")
 Search for specific browser creator If not found, try to add one.
 
static std::map< std::string, std::unique_ptr< Creator > > & GetMap ()
 Static holder of registered creators of web displays.
 
Inheritance diagram for ROOT::RQt5WebDisplayHandle:
[legend]

Constructor & Destructor Documentation

◆ RQt5WebDisplayHandle()

ROOT::RQt5WebDisplayHandle::RQt5WebDisplayHandle ( const std::string &  url)
inline

Definition at line 252 of file rootqt5.cpp.

◆ ~RQt5WebDisplayHandle()

ROOT::RQt5WebDisplayHandle::~RQt5WebDisplayHandle ( )
inlineoverride

Definition at line 254 of file rootqt5.cpp.

Member Function Documentation

◆ AddCreator()

static void ROOT::RQt5WebDisplayHandle::AddCreator ( )
inlinestatic

Definition at line 275 of file rootqt5.cpp.

◆ Resize()

bool ROOT::RQt5WebDisplayHandle::Resize ( int  ,
int   
)
inlineoverridevirtual

resize web window - if possible

Reimplemented from ROOT::RWebDisplayHandle.

Definition at line 267 of file rootqt5.cpp.

Member Data Documentation

◆ fView

RootWebView* ROOT::RQt5WebDisplayHandle::fView {nullptr}
protected

pointer on widget, need to release when handle is destroyed

Definition at line 95 of file rootqt5.cpp.

  • gui/qt5webdisplay/rootqt5.cpp