Logo ROOT  
Reference Guide
TWebCanvas.h
Go to the documentation of this file.
1// Author: Sergey Linev, GSI 7/12/2016
2
3/*************************************************************************
4 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TWebCanvas
12#define ROOT_TWebCanvas
13
14#include "TCanvasImp.h"
15
16#include "TString.h"
17#include "TList.h"
18#include "TWebPadOptions.h"
19
20#include <ROOT/RWebWindow.hxx>
21
22#include <vector>
23#include <string>
24#include <queue>
25#include <functional>
26#include <map>
27
28class TPad;
29class TPadWebSnapshot;
30class TWebPS;
31class TObjLink;
32class TExec;
33
34class TWebCanvas : public TCanvasImp {
35
36public:
37 /// Function type for signals, invoked when canvas drawing or update is completed
39
40 /// Function type for pad-related signals - like activate pad signal
42
43 /// Function type for pad-click signals
45
46 /// Function type for signals, invoked when object is selected
48
49protected:
50
51 /// Function called when pad painting produced
53
54 struct WebConn {
55 unsigned fConnId{0}; ///<! connection id
56 Long64_t fCheckedVersion{0}; ///<! canvas version checked before sending
57 Long64_t fSendVersion{0}; ///<! canvas version send to the client
58 Long64_t fDrawVersion{0}; ///<! canvas version drawn (confirmed) by client
59 UInt_t fLastSendHash{0}; ///<! hash of last send draw message, avoid looping
60 std::queue<std::string> fSend; ///<! send queue, processed after sending draw data
61 WebConn(unsigned id) : fConnId(id) {}
62 void reset()
63 {
65 fLastSendHash = 0;
66 }
67 };
68
69 struct PadStatus {
70 Long64_t fVersion{0}; ///<! last pad version
71 bool _detected{false}; ///<! if pad was detected during last scan
72 bool _modified{false}; ///<! if pad was modified during last scan
73 bool _has_specials{false}; ///<! are there any special objects with painting
74 };
75
76 std::vector<WebConn> fWebConn; ///<! connections
77
78 std::map<TPad*, PadStatus> fPadsStatus; ///<! map of pads in canvas and their status flags
79
80 std::shared_ptr<ROOT::Experimental::RWebWindow> fWindow; ///!< configured display
81
82 Bool_t fReadOnly{true}; ///<! in read-only mode canvas cannot be changed from client side
83 Long64_t fCanvVersion{1}; ///<! actual canvas version, changed with every new Modified() call
84 UInt_t fClientBits{0}; ///<! latest status bits from client like editor visible or not
85 TList fPrimitivesLists; ///<! list of lists of primitives, temporary collected during painting
86 Int_t fStyleDelivery{0}; ///<! gStyle delivery to clients: 0:never, 1:once, 2:always
87 Int_t fPaletteDelivery{1}; ///<! colors palette delivery 0:never, 1:once, 2:always, 3:per subpad
88 Int_t fPrimitivesMerge{100}; ///<! number of PS primitives, which will be merged together
89 Int_t fJsonComp{0}; ///<! compression factor for messages send to the client
90 std::string fCustomScripts; ///<! custom JavaScript code or URL on JavaScript files to load before start drawing
91 std::vector<std::string> fCustomClasses; ///<! list of custom classes, which can be delivered as is to client
92 Bool_t fCanCreateObjects{kTRUE}; ///<! indicates if canvas allowed to create extra objects for interactive painting
93 Bool_t fLongerPolling{kFALSE}; ///<! when true, make longer polling in blocking operations
94 Bool_t fProcessingData{kFALSE}; ///<! flag used to prevent blocking methods when process data is invoked
95 Bool_t fAsyncMode{kFALSE}; ///<! when true, methods like TCanvas::Update will never block
96 Long64_t fStyleVersion{0}; ///<! current gStyle object version, checked every time when new snapshot created
97 UInt_t fStyleHash{0}; ///<! last hash of gStyle
98 Long64_t fColorsVersion{0}; ///<! current colors/palette version, checked every time when new snapshot created
99 UInt_t fColorsHash{0}; ///<! last hash of colors/palette
100
101 UpdatedSignal_t fUpdatedSignal; ///<! signal emitted when canvas updated or state is changed
102 PadSignal_t fActivePadChangedSignal; ///<! signal emitted when active pad changed in the canvas
103 PadClickedSignal_t fPadClickedSignal; ///<! signal emitted when simple mouse click performed on the pad
104 PadClickedSignal_t fPadDblClickedSignal; ///<! signal emitted when simple mouse click performed on the pad
105 ObjectSelectSignal_t fObjSelectSignal; ///<! signal emitted when new object selected in the pad
106
107 void Lock() override {}
108 void Unlock() override {}
109 Bool_t IsLocked() override { return kFALSE; }
110
111 Bool_t IsWeb() const override { return kTRUE; }
112 Bool_t PerformUpdate() override;
114
116 void AddColorsPalette(TPadWebSnapshot &master);
117
118 void CreateObjectSnapshot(TPadWebSnapshot &master, TPad *pad, TObject *obj, const char *opt, TWebPS *masterps = nullptr);
119 void CreatePadSnapshot(TPadWebSnapshot &paddata, TPad *pad, Long64_t version, PadPaintingReady_t func);
120
121 void CheckPadModified(TPad *pad);
122
123 void CheckCanvasModified(bool force_modified = false);
124
125 Bool_t AddToSendQueue(unsigned connid, const std::string &msg);
126
127 void CheckDataToSend(unsigned connid = 0);
128
130
131 virtual Bool_t IsJSSupportedClass(TObject *obj, Bool_t many_primitives = kFALSE);
132
133 Bool_t IsFirstConn(unsigned connid) const { return (connid!=0) && (fWebConn.size()>0) && (fWebConn[0].fConnId == connid) ;}
134
135 void ShowCmd(const std::string &arg, Bool_t show);
136
137 void AssignStatusBits(UInt_t bits);
138
139 virtual Bool_t ProcessData(unsigned connid, const std::string &arg);
140
141 virtual Bool_t DecodePadOptions(const std::string &, bool process_execs = false);
142
143 virtual Bool_t CanCreateObject(const std::string &) { return !IsReadOnly() && fCanCreateObjects; }
144
145 TPad *ProcessObjectOptions(TWebObjectOptions &item, TPad *pad, int idcnt = 1);
146
147 TObject *FindPrimitive(const std::string &id, int idcnt = 1, TPad *pad = nullptr, TObjLink **objlnk = nullptr, TPad **objpad = nullptr);
148
149 void ProcessExecs(TPad *pad, TExec *extra = nullptr);
150
151 void ProcessLinesForObject(TObject *obj, const std::string &lines);
152
153public:
154 TWebCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height, Bool_t readonly = kTRUE);
155 virtual ~TWebCanvas() = default;
156
157 void ShowWebWindow(const ROOT::Experimental::RWebDisplayArgs &user_args = "");
158
159 const std::shared_ptr<ROOT::Experimental::RWebWindow> &GetWebWindow() const { return fWindow; }
160
161 virtual Bool_t IsReadOnly() const { return fReadOnly; }
162
163 Int_t InitWindow() override;
164 void Close() override;
165 void Show() override;
166
168
169 void ShowMenuBar(Bool_t show = kTRUE) override { ShowCmd("Menu", show); }
170 void ShowStatusBar(Bool_t show = kTRUE) override { ShowCmd("StatusBar", show); }
171 void ShowEditor(Bool_t show = kTRUE) override { ShowCmd("Editor", show); }
172 void ShowToolBar(Bool_t show = kTRUE) override { ShowCmd("ToolBar", show); }
173 void ShowToolTips(Bool_t show = kTRUE) override { ShowCmd("ToolTips", show); }
174
175 // web-canvas specific methods
176
177 void ActivateInEditor(TPad *pad, TObject *obj);
178
179 void ForceUpdate() override;
180
181
182 /*
183 virtual void Iconify() { }
184 virtual void SetStatusText(const char *text = 0, Int_t partidx = 0);
185 virtual void SetWindowPosition(Int_t x, Int_t y);
186 virtual void SetWindowSize(UInt_t w, UInt_t h);
187 virtual void SetWindowTitle(const char *newTitle);
188 virtual void SetCanvasSize(UInt_t w, UInt_t h);
189 virtual void RaiseWindow();
190 virtual void ReallyDelete();
191 */
192
193 Bool_t HasEditor() const override;
194 Bool_t HasMenuBar() const override;
195 Bool_t HasStatusBar() const override;
196 Bool_t HasToolBar() const override { return kFALSE; }
197 Bool_t HasToolTips() const override;
198
204
207
210
213
216
219
220 void SetCustomScripts(const std::string &src);
221
222 void AddCustomClass(const std::string &clname, bool with_derived = false);
223 bool IsCustomClass(const TClass *cl) const;
224
226 Bool_t IsAsyncMode() const { return fAsyncMode; }
227
228 static TString CreatePadJSON(TPad *pad, Int_t json_compression = 0);
229 static TString CreateCanvasJSON(TCanvas *c, Int_t json_compression = 0);
230 static Int_t StoreCanvasJSON(TCanvas *c, const char *filename, const char *option = "");
231
232 static bool ProduceImage(TPad *pad, const char *filename, Int_t width = 0, Int_t height = 0);
233
234 static TCanvasImp *NewCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height);
235
236 ClassDefOverride(TWebCanvas, 0) // Web-based implementation for TCanvasImp, read-only mode
237};
238
239#endif
#define c(i)
Definition: RSha256.hxx:101
#define h(i)
Definition: RSha256.hxx:106
bool Bool_t
Definition: RtypesCore.h:63
int Int_t
Definition: RtypesCore.h:45
const Bool_t kFALSE
Definition: RtypesCore.h:101
unsigned int UInt_t
Definition: RtypesCore.h:46
long long Long64_t
Definition: RtypesCore.h:80
const Bool_t kTRUE
Definition: RtypesCore.h:100
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
char name[80]
Definition: TGX11.cxx:110
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition: TCanvasImp.h:30
The Canvas class.
Definition: TCanvas.h:23
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:81
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
Definition: TExec.h:26
A doubly linked list.
Definition: TList.h:38
Mother of all ROOT objects.
Definition: TObject.h:41
The most important graphics class in the ROOT system.
Definition: TPad.h:28
Basic string class.
Definition: TString.h:136
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
Basic TCanvasImp ABI implementation for Web-based GUI Provides painting of main ROOT6 classes in web ...
Definition: TWebCanvas.h:34
TVirtualPadPainter * CreatePadPainter() override
Creates web-based pad painter.
Definition: TWebCanvas.cxx:90
void ForceUpdate() override
Increment canvas version and force sending data to client - do not wait for reply.
Int_t GetPrimitivesMerge() const
Definition: TWebCanvas.h:215
void AddCustomClass(const std::string &clname, bool with_derived=false)
Assign custom class.
Definition: TWebCanvas.cxx:172
UInt_t fColorsHash
! last hash of colors/palette
Definition: TWebCanvas.h:99
void ShowCmd(const std::string &arg, Bool_t show)
Function used to send command to browser to toggle menu, toolbar, editors, ...
Definition: TWebCanvas.cxx:812
Bool_t fCanCreateObjects
! indicates if canvas allowed to create extra objects for interactive painting
Definition: TWebCanvas.h:92
Long64_t fColorsVersion
! current colors/palette version, checked every time when new snapshot created
Definition: TWebCanvas.h:98
std::string fCustomScripts
! custom JavaScript code or URL on JavaScript files to load before start drawing
Definition: TWebCanvas.h:90
virtual Bool_t IsReadOnly() const
Definition: TWebCanvas.h:161
virtual Bool_t IsJSSupportedClass(TObject *obj, Bool_t many_primitives=kFALSE)
Returns kTRUE when object is fully supported on JSROOT side In ROOT7 Paint function will just return ...
Definition: TWebCanvas.cxx:99
void SetCustomScripts(const std::string &src)
Configures custom script for canvas.
Definition: TWebCanvas.cxx:164
ObjectSelectSignal_t fObjSelectSignal
! signal emitted when new object selected in the pad
Definition: TWebCanvas.h:105
PadClickedSignal_t fPadClickedSignal
! signal emitted when simple mouse click performed on the pad
Definition: TWebCanvas.h:103
void SetActivePadChangedHandler(PadSignal_t func)
Definition: TWebCanvas.h:200
void SetLongerPolling(Bool_t on)
Definition: TWebCanvas.h:217
UInt_t fStyleHash
! last hash of gStyle
Definition: TWebCanvas.h:97
virtual Bool_t CanCreateObject(const std::string &)
Definition: TWebCanvas.h:143
void SetStyleDelivery(Int_t val)
Definition: TWebCanvas.h:208
const std::shared_ptr< ROOT::Experimental::RWebWindow > & GetWebWindow() const
Definition: TWebCanvas.h:159
Int_t fPrimitivesMerge
! number of PS primitives, which will be merged together
Definition: TWebCanvas.h:88
void ShowToolTips(Bool_t show=kTRUE) override
Definition: TWebCanvas.h:173
void SetAsyncMode(Bool_t on=kTRUE)
Definition: TWebCanvas.h:225
std::function< void()> UpdatedSignal_t
Function type for signals, invoked when canvas drawing or update is completed.
Definition: TWebCanvas.h:38
void Show() override
Show canvas in browser window.
Definition: TWebCanvas.cxx:799
Bool_t HasToolBar() const override
Definition: TWebCanvas.h:196
Bool_t WaitWhenCanvasPainted(Long64_t ver)
Wait when specified version of canvas was painted and confirmed by browser.
Bool_t IsWeb() const override
Definition: TWebCanvas.h:111
void ShowMenuBar(Bool_t show=kTRUE) override
Definition: TWebCanvas.h:169
std::vector< std::string > fCustomClasses
! list of custom classes, which can be delivered as is to client
Definition: TWebCanvas.h:91
static TString CreatePadJSON(TPad *pad, Int_t json_compression=0)
Bool_t IsAsyncMode() const
Definition: TWebCanvas.h:226
static TString CreateCanvasJSON(TCanvas *c, Int_t json_compression=0)
Create JSON painting output for given canvas Produce JSON can be used for offline drawing with JSROOT...
UInt_t CalculateColorsHash()
Calculate hash function for all colors and palette.
Definition: TWebCanvas.cxx:255
Bool_t HasStatusBar() const override
Returns kTRUE if web canvas has status bar.
Definition: TWebCanvas.cxx:850
void Close() override
Close web canvas - not implemented.
Definition: TWebCanvas.cxx:739
Bool_t HasMenuBar() const override
Returns kTRUE if web canvas has menu bar.
Definition: TWebCanvas.cxx:842
Int_t InitWindow() override
Initialize window for the web canvas At this place canvas is not yet register to the list of canvases...
Definition: TWebCanvas.cxx:82
void CheckPadModified(TPad *pad)
Returns true if any pad in the canvas were modified Reset modified flags, increment canvas version (i...
static bool ProduceImage(TPad *pad, const char *filename, Int_t width=0, Int_t height=0)
Create image using batch (headless) capability of Chrome or Firefox browsers Supported png,...
void SetPadDblClickedHandler(PadClickedSignal_t func)
Definition: TWebCanvas.h:202
void ActivateInEditor(TPad *pad, TObject *obj)
Activate object in editor in web browser.
Definition: TWebCanvas.cxx:821
std::vector< WebConn > fWebConn
! connections
Definition: TWebCanvas.h:76
PadSignal_t fActivePadChangedSignal
! signal emitted when active pad changed in the canvas
Definition: TWebCanvas.h:102
Bool_t GetLongerPolling() const
Definition: TWebCanvas.h:218
void ShowWebWindow(const ROOT::Experimental::RWebDisplayArgs &user_args="")
Show canvas in specified place.
Definition: TWebCanvas.cxx:747
UInt_t fClientBits
! latest status bits from client like editor visible or not
Definition: TWebCanvas.h:84
std::function< void(TPadWebSnapshot *)> PadPaintingReady_t
Function called when pad painting produced.
Definition: TWebCanvas.h:52
Int_t fPaletteDelivery
! colors palette delivery 0:never, 1:once, 2:always, 3:per subpad
Definition: TWebCanvas.h:87
void ShowToolBar(Bool_t show=kTRUE) override
Definition: TWebCanvas.h:172
Bool_t fProcessingData
! flag used to prevent blocking methods when process data is invoked
Definition: TWebCanvas.h:94
Bool_t HasToolTips() const override
Returns kTRUE if tooltips are activated in web canvas.
Definition: TWebCanvas.cxx:858
Bool_t AddToSendQueue(unsigned connid, const std::string &msg)
Add message to send queue for specified connection If connid == 0, message will be add to all connect...
Definition: TWebCanvas.cxx:663
Long64_t fCanvVersion
! actual canvas version, changed with every new Modified() call
Definition: TWebCanvas.h:83
bool IsCustomClass(const TClass *cl) const
Checks if class belongs to custom.
Definition: TWebCanvas.cxx:183
void SetPadClickedHandler(PadClickedSignal_t func)
Definition: TWebCanvas.h:201
TPad * ProcessObjectOptions(TWebObjectOptions &item, TPad *pad, int idcnt=1)
Process data for single primitive Returns object pad if object was modified.
void CreateObjectSnapshot(TPadWebSnapshot &master, TPad *pad, TObject *obj, const char *opt, TWebPS *masterps=nullptr)
Creates representation of the object for painting in web browser.
Definition: TWebCanvas.cxx:199
void AddColorsPalette(TPadWebSnapshot &master)
Add special canvas objects like colors list at selected palette.
Definition: TWebCanvas.cxx:278
void CheckCanvasModified(bool force_modified=false)
Check if any pad on the canvas was modified If yes, increment version of correspondent pad.
Long64_t fStyleVersion
! current gStyle object version, checked every time when new snapshot created
Definition: TWebCanvas.h:96
void SetUpdatedHandler(UpdatedSignal_t func)
Definition: TWebCanvas.h:199
std::function< void(TPad *, int, int)> PadClickedSignal_t
Function type for pad-click signals.
Definition: TWebCanvas.h:44
Bool_t PerformUpdate() override
if canvas or any subpad was modified, scan all primitives in the TCanvas and subpads and convert them...
Bool_t fLongerPolling
! when true, make longer polling in blocking operations
Definition: TWebCanvas.h:93
void ShowStatusBar(Bool_t show=kTRUE) override
Definition: TWebCanvas.h:170
void CheckDataToSend(unsigned connid=0)
Check if any data should be send to client If connid != 0, only selected connection will be checked.
Definition: TWebCanvas.cxx:680
void Unlock() override
Definition: TWebCanvas.h:108
UpdatedSignal_t fUpdatedSignal
! signal emitted when canvas updated or state is changed
Definition: TWebCanvas.h:101
Bool_t IsLocked() override
Definition: TWebCanvas.h:109
Int_t fJsonComp
! compression factor for messages send to the client
Definition: TWebCanvas.h:89
Bool_t IsFirstConn(unsigned connid) const
Definition: TWebCanvas.h:133
Bool_t fReadOnly
!< configured display
Definition: TWebCanvas.h:82
std::map< TPad *, PadStatus > fPadsStatus
! map of pads in canvas and their status flags
Definition: TWebCanvas.h:78
Bool_t fAsyncMode
! when true, methods like TCanvas::Update will never block
Definition: TWebCanvas.h:95
void ShowEditor(Bool_t show=kTRUE) override
Definition: TWebCanvas.h:171
void AssignStatusBits(UInt_t bits)
Assign clients bits.
Definition: TWebCanvas.cxx:866
virtual Bool_t ProcessData(unsigned connid, const std::string &arg)
Handle data from web browser Returns kFALSE if message was not processed.
void ProcessLinesForObject(TObject *obj, const std::string &lines)
Execute one or several methods for selected object String can be separated by ";;" to let execute sev...
std::function< void(TPad *)> PadSignal_t
Function type for pad-related signals - like activate pad signal.
Definition: TWebCanvas.h:41
TWebCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height, Bool_t readonly=kTRUE)
Constructor.
Definition: TWebCanvas.cxx:68
void SetCanCreateObjects(Bool_t on=kTRUE)
Definition: TWebCanvas.h:205
static Int_t StoreCanvasJSON(TCanvas *c, const char *filename, const char *option="")
Create JSON painting output for given canvas and store into the file See TBufferJSON::ExportToFile() ...
void SetPrimitivesMerge(Int_t cnt)
Definition: TWebCanvas.h:214
UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override
Returns window geometry including borders and menus.
std::shared_ptr< ROOT::Experimental::RWebWindow > fWindow
Definition: TWebCanvas.h:80
void SetPaletteDelivery(Int_t val)
Definition: TWebCanvas.h:211
static TCanvasImp * NewCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
Static method to create TWebCanvas instance Used by plugin manager.
void SetObjSelectHandler(ObjectSelectSignal_t func)
Definition: TWebCanvas.h:203
std::function< void(TPad *, TObject *)> ObjectSelectSignal_t
Function type for signals, invoked when object is selected.
Definition: TWebCanvas.h:47
Bool_t HasEditor() const override
Returns kTRUE if web canvas has graphical editor.
Definition: TWebCanvas.cxx:834
Int_t fStyleDelivery
! gStyle delivery to clients: 0:never, 1:once, 2:always
Definition: TWebCanvas.h:86
PadClickedSignal_t fPadDblClickedSignal
! signal emitted when simple mouse click performed on the pad
Definition: TWebCanvas.h:104
void ProcessExecs(TPad *pad, TExec *extra=nullptr)
Process TExec objects in the pad.
void Lock() override
Definition: TWebCanvas.h:107
TList fPrimitivesLists
! list of lists of primitives, temporary collected during painting
Definition: TWebCanvas.h:85
void CreatePadSnapshot(TPadWebSnapshot &paddata, TPad *pad, Long64_t version, PadPaintingReady_t func)
Create snapshot for pad and all primitives Callback function is used to create JSON in the middle of ...
Definition: TWebCanvas.cxx:314
Bool_t GetCanCreateObjects() const
Definition: TWebCanvas.h:206
virtual Bool_t DecodePadOptions(const std::string &, bool process_execs=false)
Decode all pad options, which includes ranges plus objects options.
Definition: TWebCanvas.cxx:878
Int_t GetPaletteDelivery() const
Definition: TWebCanvas.h:212
TObject * FindPrimitive(const std::string &id, int idcnt=1, TPad *pad=nullptr, TObjLink **objlnk=nullptr, TPad **objpad=nullptr)
Search of object with given id in list of primitives One could specify pad where search could be star...
virtual ~TWebCanvas()=default
Int_t GetStyleDelivery() const
Definition: TWebCanvas.h:209
Class used to transport drawing options from the client.
Definition: TWebPS.h:21
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
void(off) SmallVectorTemplateBase< T
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
Definition: RExports.h:167
const char * cnt
Definition: TXMLSetup.cxx:75
bool _has_specials
! are there any special objects with painting
Definition: TWebCanvas.h:73
Long64_t fVersion
! last pad version
Definition: TWebCanvas.h:70
bool _modified
! if pad was modified during last scan
Definition: TWebCanvas.h:72
bool _detected
! if pad was detected during last scan
Definition: TWebCanvas.h:71
std::queue< std::string > fSend
! send queue, processed after sending draw data
Definition: TWebCanvas.h:60
UInt_t fLastSendHash
! hash of last send draw message, avoid looping
Definition: TWebCanvas.h:59
WebConn(unsigned id)
Definition: TWebCanvas.h:61
unsigned fConnId
! connection id
Definition: TWebCanvas.h:55
Long64_t fSendVersion
! canvas version send to the client
Definition: TWebCanvas.h:57
Long64_t fCheckedVersion
! canvas version checked before sending
Definition: TWebCanvas.h:56
Long64_t fDrawVersion
! canvas version drawn (confirmed) by client
Definition: TWebCanvas.h:58