127using namespace std::string_literals;
239 return precision > 0 ?
entry.fIndx*10 + precision :
entry.fIndx;
245 auto pos = fullname.
Last(
'.');
247 fmt = fullname(pos+1, fullname.
Length() - pos);
249 if ((
fmt !=
"ttf") && (
fmt !=
"woff2")) {
250 ::Error(
"TWebCanvas::AddFont",
"Unsupported font file extension %s",
fmt.Data());
258 ::Error(
"TWebCanvas::AddFont",
"Not possible to read font file %s", fullname.
Data());
262 std::ifstream
is(fullname.
Data(), std::ios::in | std::ios::binary);
265 is.seekg(0, std::ios::end);
266 res.resize(
is.tellg());
267 is.seekg(0, std::ios::beg);
268 is.read((
char *)res.data(), res.length());
274 ::Error(
"TWebCanvas::AddFont",
"Fail to read font file %s", fullname.
Data());
313 static const struct {
314 const char *
name{
nullptr};
325 {
"TGraphPolargram",
true},
333 {
"TBox",
false,
true},
335 {
"TLine",
false,
true},
336 {
"TEllipse",
true,
true},
345 {
"TPolyLine",
true,
true},
417 if (
p == std::string::npos) {
426 if ((
p == std::string::npos) ||
modname.empty())
442 auto pmark =
cont.find(
"$$jsroot_batch_conform$$");
443 if (
pmark == std::string::npos)
449 static const std::string
str1 =
"import {";
450 static const std::string
str2 =
"} from 'jsroot';";
454 if ((
p1 == std::string::npos) || (
p2 == std::string::npos) || (
p2 >
pmark))
463 while (
auto obj = next()) {
501 if (
name[0] ==
'+') {
524 TView *view =
nullptr;
531 pad->GetViewer3D(
"pad");
558 pad->SetView(
nullptr);
562 painter->SetPainting(
nullptr,
nullptr);
570 if (!
webps->IsEmptyPainting())
624 for (
Int_t i = 0; i <
pal.GetSize(); i++)
657 if (
paddata.IsSetObjectIds()) {
686 TList *primitives =
pad->GetListOfPrimitives();
691 TIter iter(primitives);
703 return opt.Contains(arg +
"Z") || opt.Contains(arg +
"HZ");
746 frame =
static_cast<TFrame *
>(obj);
791 auto text =
dynamic_cast<TText *
> (
btn->GetListOfPrimitives()->First());
793 text->SetTitle(
btn->GetTitle());
794 text->SetTextSize(
btn->GetTextSize());
795 text->SetTextFont(
btn->GetTextFont());
796 text->SetTextAlign(
btn->GetTextAlign());
797 text->SetTextColor(
btn->GetTextColor());
798 text->SetTextAngle(
btn->GetTextAngle());
805 pad->SetRightMargin(0.12);
807 frame =
pad->GetFrame();
817 title =
new TPaveText(0, 0, 0, 0,
"blNDC");
843 auto p1 = opt.Index(
"["),
p2 = opt.Index(
"]");
870 auto f3 =
dynamic_cast<TF3 *
>(
f1);
871 auto f2 =
dynamic_cast<TF2 *
>(
f1);
873 f3->
Save(f3->GetXmin(), f3->GetXmax(), f3->GetYmin(), f3->GetYmax(), f3->GetZmin(), f3->GetZmax());
875 f2->Save(f2->GetXmin(), f2->GetXmax(), f2->GetYmin(), f2->GetYmax(), 0, 0);
949 while ((obj = iter()) !=
nullptr) {
958 TH1 *hist =
static_cast<TH1 *
>(obj);
968 else if (
fobj->InheritsFrom(
"TPaletteAxis"))
987 std::stringstream exec;
988 exec <<
"new TPaletteAxis(0,0,0,0, (TH1*)" << std::hex << std::showbase << (size_t)hist <<
");";
1045 if (title)
hopt.Append(
";;use_pad_title");
1079 if (!
hopt.Contains(
"nostack") && !
hopt.Contains(
"candle") && !
hopt.Contains(
"violin") && !
hopt.Contains(
"pads")) {
1080 auto arr =
hs->GetStack();
1081 arr->SetName(
hs->GetName());
1097 if (
fobj->InheritsFrom(
"TPaletteAxis"))
1106 std::stringstream exec;
1107 exec <<
"new TPaletteAxis(0,0,0,0,0,0);";
1118 auto f1 =
static_cast<TF1 *
> (obj);
1124 f1opt.Append(
";force_saved");
1126 f1opt.Append(
";prefer_saved");
1131 f1opt.Append(
";webcanv_hist");
1144 auto func =
gaxis->GetFunction();
1151 if (frame && (obj == frame)) {
1225 if (conn.match(connid)) {
1226 conn.fCtrl[key] =
value;
1243 if (conn.match(connid))
1244 conn.fSend.emplace(
msg);
1262 bool isConnData = !conn.fCtrl.empty() || !conn.fSend.empty() ||
1263 ((conn.fCheckedVersion <
fCanvVersion) && (conn.fSendVersion == conn.fDrawVersion));
1265 while ((conn.is_batch() && !connid) || (conn.match(connid) &&
fWindow &&
fWindow->CanSend(conn.fConnId,
true))) {
1270 if (!conn.fCtrl.empty()) {
1273 }
else if (!conn.fSend.empty()) {
1274 std::swap(buf, conn.fSend.front());
1276 }
else if ((conn.fCheckedVersion <
fCanvVersion) && (conn.fSendVersion == conn.fDrawVersion)) {
1285 if (!conn.fSendVersion)
1288 holder.SetHighlightConnect(
Canvas()->HasConnection(
"Highlighted(TVirtualPad*,TObject*,Int_t,Int_t)"));
1291 if (conn.is_batch()) {
1299 if (conn.fLastSendHash && (conn.fLastSendHash ==
hash) && conn.fSendVersion) {
1303 buf.append(
json.Data());
1304 conn.fLastSendHash =
hash;
1319 if (!buf.empty() && !conn.is_batch()) {
1320 fWindow->Send(conn.fConnId, buf);
1354 fWindow->SetDefaultPage(
"file:rootui5sys/canv/canvas6.html");
1358 [
this](
unsigned connid) {
1359 if (
fWindow->GetConnectionId(0) == connid)
1366 [
this](
unsigned connid,
const std::string &arg) {
1371 [
this](
unsigned connid) {
1374 if (
c.fConnId == connid) {
1395 if ((
w > 0) && (
w < 50000) && (
h > 0) && (
h < 30000))
1406 if (
gROOT->IsWebDisplayBatch())
1433 if (!
pad || !obj)
return;
1506 if ((cw > 0) && (ch > 0)) {
1552 auto arr = TBufferJSON::FromJSON<std::vector<TWebPadOptions>>(
msg);
1562 for (
unsigned n = 0;
n <
arr->size(); ++
n) {
1563 auto &
r =
arr->at(
n);
1574 if (
r.w.size() == 4)
1582 if ((
pad->GetTickx() !=
r.tickx) || (
pad->GetTicky() !=
r.ticky))
1583 pad->SetTicks(
r.tickx,
r.ticky);
1584 if ((
pad->GetGridx() != (
r.gridx > 0)) || (
pad->GetGridy() != (
r.gridy > 0)))
1585 pad->SetGrid(
r.gridx,
r.gridy);
1586 pad->fLogx =
r.logx;
1587 pad->fLogy =
r.logy;
1588 pad->fLogz =
r.logz;
1590 pad->SetLeftMargin(
r.mleft);
1591 pad->SetRightMargin(
r.mright);
1592 pad->SetTopMargin(
r.mtop);
1593 pad->SetBottomMargin(
r.mbottom);
1605 pad->fUxmin =
r.ux1;
1606 pad->fUxmax =
r.ux2;
1607 pad->fUymin =
r.uy1;
1608 pad->fUymax =
r.uy2;
1613 pad->fAbsXlowNDC =
r.xlow;
1614 pad->fAbsYlowNDC =
r.ylow;
1615 pad->fAbsWNDC =
r.xup -
r.xlow;
1616 pad->fAbsHNDC =
r.yup -
r.ylow;
1619 pad->fXlowNDC =
r.xlow;
1620 pad->fYlowNDC =
r.ylow;
1621 pad->fXUpNDC =
r.xup;
1622 pad->fYUpNDC =
r.yup;
1623 pad->fWNDC =
r.xup -
r.xlow;
1624 pad->fHNDC =
r.yup -
r.ylow;
1627 if (
mother->GetAbsWNDC() > 0. &&
mother->GetAbsHNDC() > 0.) {
1632 pad->fWNDC = (
r.xup -
r.xlow) /
mother->GetAbsWNDC();
1633 pad->fHNDC = (
r.yup -
r.ylow) /
mother->GetAbsHNDC();
1637 if (
r.phi ||
r.theta) {
1639 pad->fTheta =
r.theta;
1659 pad->fPixeltoXk =
r.px1;
1669 pad->fPixeltoYk =
r.py1;
1692 ax->SetRangeUser(
r1,
r2);
1693 else if ((
ax->GetFirst() ==
ax->GetLast()) || ((
ax->GetFirst() > 0) && (
ax->GetLast() <=
ax->GetNbins())))
1740 ::Error(
"SetMember",
"Cannot find %s data member in %s",
name,
hist_holder->ClassName());
1744 SetMember(
"fMinimum",
hmin);
1745 SetMember(
"fMaximum",
hmax);
1749 while (
auto fobj = next())
1756 std::map<std::string, int>
idmap;
1758 for (
auto &
item :
r.primitives) {
1764 idcnt = ++iter->second;
1791 auto execs =
pad ?
pad->GetListOfExecs() :
nullptr;
1805 while (
auto obj = next()) {
1806 auto exec =
dynamic_cast<TExec *
>(obj);
1823 std::string buf =
lines;
1827 while (obj && !buf.empty()) {
1828 std::string sub = buf;
1829 auto pos = buf.find(
";;");
1830 if (pos == std::string::npos) {
1834 sub = buf.substr(0,pos);
1835 buf = buf.substr(pos+2);
1837 if (sub.empty())
continue;
1839 std::stringstream exec;
1840 exec <<
"((" << obj->
ClassName() <<
" *) " << std::hex << std::showbase << (size_t)obj <<
")->" << sub <<
";";
1842 Info(
"ProcessLinesForObject",
"Obj %s Execute %s", obj->
GetName(), exec.str().c_str());
1843 gROOT->ProcessLine(exec.str().c_str());
1876 const char *
cdata = arg.c_str();
1878 if (arg ==
"KEEPALIVE") {
1881 }
else if (arg ==
"QUIT") {
1886 }
else if (arg.compare(0, 7,
"READY6:") == 0) {
1906 }
else if (arg ==
"RELOAD") {
1911 }
else if (arg.compare(0, 5,
"SAVE:") == 0) {
1939 }
else if (arg.compare(0, 8,
"PRODUCE:") == 0) {
1944 }
else if (arg.compare(0, 8,
"GETMENU:") == 0) {
1951 items.PopulateObjectMenu(obj, obj->
IsA());
1952 std::string buf =
"MENU:";
1957 }
else if (arg.compare(0, 11,
"STATUSBITS:") == 0) {
1964 }
else if (arg.compare(0, 10,
"HIGHLIGHT:") == 0) {
1967 auto arr = TBufferJSON::FromJSON<std::vector<std::string>>(arg.substr(10));
1968 if (!
arr || (
arr->size() != 4)) {
1969 Error(
"ProcessData",
"Wrong arguments count %d in highlight message", (
int)(
arr ?
arr->size() : -1));
1973 int argx = std::stoi(
arr->at(2));
1974 int argy = std::stoi(
arr->at(3));
1993 }
else if (arg.compare(0, 9,
"OPTIONS6:") == 0) {
1998 }
else if (arg.compare(0, 9,
"FITPANEL:") == 0) {
2000 std::string
chid = arg.substr(9);
2002 TH1 *hist =
nullptr;
2004 while (
auto obj = iter()) {
2005 hist =
dynamic_cast<TH1 *
>(obj);
2010 if (
chid ==
"standalone")
2014 "panel->Show({*wptr, %u, %s})",
2017 auto cmd =
TString::Format(
"auto panel = std::make_shared<ROOT::Experimental::RFitPanel>(\"FitPanel\");"
2018 "panel->AssignCanvas(\"%s\");"
2019 "panel->AssignHistogram((TH1 *)0x%zx);"
2020 "%s;panel->ClearOnClose(panel);",
2023 }
else if (arg ==
"START_BROWSER"s) {
2025 gROOT->ProcessLine(
"new TBrowser;");
2027 }
else if (arg.compare(0, 6,
"EVENT:") == 0) {
2028 auto arr = TBufferJSON::FromJSON<std::vector<std::string>>(arg.substr(6));
2029 if (!
arr || (
arr->size() != 5)) {
2030 Error(
"ProcessData",
"Wrong arguments count %d in event message", (
int)(
arr ?
arr->size() : -1));
2033 std::string kind =
arr->at(1);
2036 int argx = std::stoi(
arr->at(2));
2037 int argy = std::stoi(
arr->at(3));
2051 }
else if (arg.compare(0, 8,
"PRIMIT6:") == 0) {
2053 auto opt = TBufferJSON::FromJSON<TWebObjectOptions>(arg.c_str() + 8);
2063 }
else if (arg.compare(0, 11,
"PADCLICKED:") == 0) {
2065 auto click = TBufferJSON::FromJSON<TWebPadClick>(arg.c_str() + 11);
2073 const char *
mthd =
btn->GetMethod();
2090 if (!
click->objid.empty()) {
2111 }
else if (arg.compare(0, 8,
"OBJEXEC:") == 0) {
2113 auto buf = arg.substr(8);
2114 auto pos = buf.find(
":");
2116 if ((pos > 0) && (pos != std::string::npos)) {
2117 auto sid = buf.substr(0, pos);
2118 buf.erase(0, pos + 1);
2125 if (obj && !buf.empty()) {
2138 }
else if (arg.compare(0, 12,
"EXECANDSEND:") == 0) {
2142 std::string buf = arg.substr(12);
2146 auto pos = buf.find(
":");
2150 reply = buf.substr(0, pos);
2151 buf.erase(0, pos + 1);
2152 pos = buf.find(
":");
2154 auto sid = buf.substr(0, pos);
2155 buf.erase(0, pos + 1);
2160 if (obj && !buf.empty() && !
reply.empty()) {
2161 std::stringstream exec;
2162 exec <<
"((" << obj->
ClassName() <<
" *) " << std::hex << std::showbase << (size_t)obj
2163 <<
")->" << buf <<
";";
2165 Info(
"ProcessData",
"Obj %s Exec %s", obj->
GetName(), exec.str().c_str());
2167 auto res =
gROOT->ProcessLine(exec.str().c_str());
2170 std::string send =
reply;
2174 if (
reply[0] ==
'D')
2179 }
else if (arg.compare(0, 6,
"CLEAR:") == 0) {
2180 std::string snapid = arg.substr(6);
2189 Error(
"ProcessData",
"Not found pad with id %s to clear\n", snapid.c_str());
2191 }
else if (arg.compare(0, 7,
"DIVIDE:") == 0) {
2192 auto arr = TBufferJSON::FromJSON<std::vector<std::string>>(arg.substr(7));
2193 if (
arr &&
arr->size() == 2) {
2195 int nn = 0,
n1 = 0,
n2 = 0;
2199 if (
p == std::string::npos)
2202 if (
p != std::string::npos) {
2213 pad->DivideSquare(
nn);
2221 }
else if (arg.compare(0, 8,
"DRAWOPT:") == 0) {
2223 auto arr = TBufferJSON::FromJSON<std::vector<std::string>>(arg.substr(8));
2224 if (
arr &&
arr->size() == 2) {
2231 }
else if (arg.compare(0, 8,
"RESIZED:") == 0) {
2233 auto arr = TBufferJSON::FromJSON<std::vector<int>>(arg.substr(8));
2234 if (
arr &&
arr->size() == 7) {
2243 }
else if (arg.compare(0, 7,
"POPOBJ:") == 0) {
2245 auto arr = TBufferJSON::FromJSON<std::vector<std::string>>(arg.substr(7));
2246 if (
arr &&
arr->size() == 2) {
2249 if (
pad && obj && (obj !=
pad->GetListOfPrimitives()->Last())) {
2250 TIter next(
pad->GetListOfPrimitives());
2251 while (
auto o = next())
2261 }
else if (arg.compare(0, 8,
"SHOWURL:") == 0) {
2264 args.
SetUrl(arg.substr(8));
2269 }
else if (arg ==
"INTERRUPT"s) {
2271 gROOT->SetInterrupt();
2293 entry._detected =
true;
2294 if (
pad->IsModified()) {
2296 entry._modified =
true;
2299 TIter iter(
pad->GetListOfPrimitives());
2300 while (
auto obj = iter()) {
2315 entry.second._detected =
false;
2325 if (iter->second._modified)
2327 if (!iter->second._detected)
2337 if (
entry.second._modified)
2432 Info(
"WaitWhenCanvasPainted",
"version %ld", (
long)
ver);
2439 if (!
fWindow->HasConnection(0,
false)) {
2441 Info(
"WaitWhenCanvasPainted",
"no connections - abort");
2447 Info(
"WaitWhenCanvasPainted",
"ver %ld got painted", (
long)
ver);
2453 Info(
"WaitWhenCanvasPainted",
"ver %ld got painted before client disconnected", (
long)
fLastDrawVersion);
2463 Info(
"WaitWhenCanvasPainted",
"timeout");
2482 auto imp = std::make_unique<TWebCanvas>(
pad->GetCanvas(),
pad->GetName(), 0, 0,
pad->GetWw(),
pad->GetWh(),
kTRUE);
2506 auto imp = std::make_unique<TWebCanvas>(
c,
c->GetName(), 0, 0,
c->GetWw(),
c->GetWh(),
kTRUE);
2534 }
else if (*
option ==
'i') {
2544 auto imp = std::make_unique<TWebCanvas>(
c,
c->GetName(), 0, 0,
c->GetWw(),
c->GetWh(),
kTRUE);
2572 const char *
endings[4] = {
"(",
"[",
"]",
")"};
2573 const char *
suffix =
nullptr;
2574 for (
int n = 0; (
n < 4) && !
suffix; ++
n) {
2596 }
else if (
fmt ==
"pdf") {
2605 ::Error(
"TWebCanvas::ProduceImage",
"Cannot change PDF name when multi-page PDF active");
2610 ::Error(
"TWebCanvas::ProduceImage",
"Cannot produce other images when multi-page PDF active");
2652 std::vector<std::string>
jsons;
2655 for (
unsigned n = 0;
n < pads.size(); ++
n) {
2669 w = (
Int_t) (
pad->GetAbsWNDC() *
pad->GetCanvas()->GetWw());
2670 h = (
Int_t) (
pad->GetAbsHNDC() *
pad->GetCanvas()->GetWh());
2707 if (
item.fcust.compare(
"exec") == 0) {
2708 auto pos =
item.opt.find(
"(");
2709 if (obj && (pos != std::string::npos) && obj->
IsA()->GetMethodAllAny(
item.opt.substr(0,pos).c_str())) {
2710 std::stringstream exec;
2711 exec <<
"((" << obj->
ClassName() <<
" *) " << std::hex << std::showbase
2712 << (size_t)obj <<
")->" <<
item.opt <<
";";
2714 Info(
"ProcessObjectOptions",
"Obj %s Execute %s", obj->
GetName(), exec.str().c_str());
2715 gROOT->ProcessLine(exec.str().c_str());
2717 Error(
"ProcessObjectOptions",
"Fail to execute %s for object %p %s",
item.opt.c_str(), obj, obj ? obj->
ClassName() :
"---");
2726 auto pos =
item.opt.find(
";;use_");
2727 if (pos != std::string::npos)
item.opt.resize(pos);
2730 Info(
"ProcessObjectOptions",
"Set draw option %s for object %s %s",
item.opt.c_str(),
2733 lnk->SetOption(
item.opt.c_str());
2738 if (
item.fcust.compare(0,10,
"auto_exec:") == 0) {
2740 }
else if (
item.fcust.compare(
"frame") == 0) {
2743 if (
item.fopt.size() >= 4) {
2751 }
else if (
item.fcust.compare(0,4,
"pave") == 0) {
2758 pave->ConvertNDCtoPad();
2766 pave->ConvertNDCtoPad();
2780 }
else if (
item.fcust.compare(0,9,
"func_fail") == 0) {
2798 if (
sid.empty() || (
sid ==
"0"s))
2805 long unsigned id = 0;
2810 if (
separ == std::string::npos) {
2811 id = std::stoul(
sid);
2814 id = std::stoul(
sid.substr(0,
separ));
2820 for (
auto lnk =
pad->GetListOfPrimitives()->FirstLink();
lnk !=
nullptr;
lnk =
lnk->Next()) {
2852 ::Error(
"getHistogram",
"Cannot access fHistogram data member in %s",
container->ClassName());
2862 auto separ = kind.find(
"#");
2863 if (
separ == std::string::npos) {
2878 if (kind.compare(
"hist") == 0) {
2882 obj = getHistogram(
gr);
2884 obj = getHistogram(mg);
2885 else if (
hs && (
hs->GetNhists() > 0))
2886 obj = getHistogram(
hs);
2890 obj = getHistogram(
f1);
2892 obj = getHistogram(
gr2d);
2895 }
else if (kind.compare(
"x") == 0) {
2897 }
else if (kind.compare(
"y") == 0) {
2899 }
else if (kind.compare(
"z") == 0) {
2901 }
else if ((kind.compare(0,5,
"func_") == 0) || (kind.compare(0,5,
"indx_") == 0)) {
2903 TList *col =
nullptr;
2911 col =
scatter->GetGraph()->GetListOfFunctions();
2914 else if (kind.compare(0,5,
"func_") == 0)
2918 }
else if (kind.compare(
"polargram") == 0) {
2920 obj =
polar ?
polar->GetPolargram() :
nullptr;
2921 }
else if (kind.compare(0,7,
"graphs_") == 0) {
2923 obj = graphs ? graphs->
At(std::stoi(kind.substr(7))) :
nullptr;
2924 }
else if (kind.compare(0,6,
"hists_") == 0) {
2926 obj =
hists ?
hists->At(std::stoi(kind.substr(6))) :
nullptr;
2927 }
else if (kind.compare(0,6,
"stack_") == 0) {
2928 auto stack =
hs ?
hs->GetStack() :
nullptr;
2929 obj = stack ? stack->At(std::stoi(kind.substr(6))) :
nullptr;
2930 }
else if (kind.compare(0,7,
"member_") == 0) {
2931 auto member = kind.substr(7);
2976 canvas->SetName(
name);
2977 canvas->SetTitle(title);
2981 canvas->SetCanvas(canvas);
2982 canvas->SetBatch(
kTRUE);
2983 canvas->SetEditable(
kTRUE);
2987 canvas->SetFillStyle(1001);
3002 canvas->SetCanvasImp(
imp);
3008 auto l1 =
gROOT->GetListOfCleanups();
3009 if (!
l1->FindObject(canvas))
3011 auto l2 =
gROOT->GetListOfCanvases();
3012 if (!
l2->FindObject(canvas))
3017 imp->CreateWebWindow();
int Int_t
Signed integer 4 bytes (int)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
short Font_t
Font number (short)
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
long long Long64_t
Portable signed long integer 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmin
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 void char Point_t Rectangle_t hmax
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 Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
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 r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void funcs
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
Option_t Option_t TPoint TPoint const char text
Int_t gDebug
Global variable setting the debug level. Set to 0 to disable, increase it in steps of 1 to increase t...
R__EXTERN TVirtualMutex * gROOTMutex
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
#define R__LOCKGUARD(mutex)
R__EXTERN TVirtualPS * gVirtualPS
static std::vector< WebFont_t > gWebFonts
static const std::string sid_pad_histogram
const_iterator begin() const
const_iterator end() const
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
EBrowserKind GetBrowserKind() const
returns configured browser kind, see EBrowserKind for supported values
void SetStandalone(bool on=true)
Set standalone mode for running browser, default on When disabled, normal browser window (or just tab...
RWebDisplayArgs & SetWidgetKind(const std::string &kind)
set widget kind
RWebDisplayArgs & SetSize(int w, int h)
set preferable web window width and height
RWebDisplayArgs & SetUrl(const std::string &url)
set window url
RWebDisplayArgs & SetPos(int x=-1, int y=-1)
set preferable web window x and y position, negative is default
@ kCEF
Chromium Embedded Framework - local display with CEF libs.
@ kQt6
Qt6 QWebEngine libraries - Chromium code packed in qt6.
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 brow...
static std::vector< std::string > ProduceImagesNames(const std::string &fname, unsigned nfiles=1)
Produce vector of file names for specified file pattern Depending from supported file forma.
static std::string GetImageFormat(const std::string &fname)
Detect image format There is special handling of ".screenshot.pdf" and ".screenshot....
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...
static std::unique_ptr< RWebDisplayHandle > Display(const RWebDisplayArgs &args)
Create web display.
static std::shared_ptr< RWebWindow > Create()
Create new RWebWindow Using default RWebWindowsManager.
static unsigned ShowWindow(std::shared_ptr< RWebWindow > window, const RWebDisplayArgs &args="")
Static method to show web window Has to be used instead of RWebWindow::Show() when window potentially...
static bool EmbedFileDialog(const std::shared_ptr< RWebWindow > &window, unsigned connid, const std::string &args)
Create dialog instance to use as embedded dialog inside provided widget Loads libROOTBrowserv7 and tr...
static bool IsFileDialogMessage(const std::string &msg)
Check if this could be the message send by client to start new file dialog If returns true,...
static std::map< std::string, std::string > GetServerLocations()
Returns server locations as <std::string, std::string> Key is location name (with slash at the end) a...
Array of integers (32 bits per element).
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Class to manage histogram axis.
static TString Decode(const char *data)
Decode a base64 string date into a generic TString.
static TString Encode(const char *data)
Transform data into a null terminated base64 string.
virtual void SetY2(Double_t y2)
virtual void SetX1(Double_t x1)
virtual void SetX2(Double_t x2)
virtual void SetY1(Double_t y1)
static Int_t ExportToFile(const char *filename, const TObject *obj, const char *option=nullptr)
Convert object into JSON and store in text file Returns size of the produce file Used in TObject::Sav...
static TString ToJSON(const T *obj, Int_t compact=0, const char *member_name=nullptr)
@ kNoSpaces
no new lines plus remove all spaces around "," and ":" symbols
@ kMapAsObject
store std::map, std::unordered_map as JSON object
@ kSameSuppression
zero suppression plus compress many similar values together
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
UInt_t fCw
Width of the canvas along X (pixels)
UInt_t GetWindowHeight() const
void SetClickSelectedPad(TPad *pad)
Int_t fWindowTopX
Top X position of window (in pixels)
Int_t fEventX
! Last X mouse position in canvas
TVirtualPadPainter * GetCanvasPainter()
Access and (probably) creation of pad painter.
UInt_t fWindowWidth
Width of window (including borders, etc.)
Int_t fEventY
! Last Y mouse position in canvas
UInt_t fWindowHeight
Height of window (including menubar, borders, etc.)
TObject * fSelected
! Currently selected object
UInt_t fCh
Height of the canvas along Y (pixels)
UInt_t GetWindowWidth() const
Int_t fWindowTopY
Top Y position of window (in pixels)
void SetClickSelected(TObject *obj)
virtual void Highlighted(TVirtualPad *pad, TObject *obj, Int_t x, Int_t y)
Emit Highlighted() signal.
Int_t fEvent
! Type of current or last handled event
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t InheritsFrom(const char *cl) const override
Return kTRUE if this class inherits from a class with name "classname".
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
The color creation and management class.
static const TArrayI & GetPalette()
Static function returning the current active palette.
static Bool_t DefinedColors(Int_t set_always_on=0)
Static method returning kTRUE if some new colors have been defined after initialisation or since the ...
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
virtual void Exec(const char *command="")
Execute the command referenced by this object.
virtual Double_t GetXmax() const
virtual TH1 * GetHistogram() const
Return a pointer to the histogram used to visualise the function Note that this histogram is managed ...
virtual Bool_t IsValid() const
Return kTRUE if the function is valid.
virtual void Save(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax)
Save values of function in array fSave.
TClass * IsA() const override
virtual Double_t GetXmin() const
Bool_t HasSave() const
Return true if function has data in fSave buffer.
A 2-Dim function with parameters.
void Save(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax) override
Save values of function in array fSave.
TF3 defines a 3D Function with Parameters.
Graphics object made of three arrays X, Y and Z with the same number of points each.
A TGraph is an object made of two arrays X and Y with npoints each.
@ kNoStats
Don't draw stats box.
TList * GetListOfFunctions() const
virtual TH1F * GetHistogram() const
Returns a pointer to the histogram used to draw the axis Takes into account the two following cases.
TH1 is the base class of all histogram classes in ROOT.
virtual Int_t GetDimension() const
@ kNoTitle
Don't draw the histogram title.
@ kIsZoomed
Bit set when zooming on Y axis.
virtual void SetMaximum(Double_t maximum=-1111)
virtual void SetMinimum(Double_t minimum=-1111)
virtual Double_t GetEntries() const
Return the current number of entries.
TList * GetListOfFunctions() const
virtual Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
The Histogram stack class.
static char * ReadFileContent(const char *filename, Int_t &len)
Reads content of file from the disk.
Option_t * GetOption() const
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
void AddFirst(TObject *obj) override
Add object at the beginning of the list.
A TMultiGraph is a collection of TGraph (or derived) objects.
TList * GetListOfGraphs() const
TList * GetListOfFunctions()
Return pointer to list of functions.
const char * GetName() const override
Returns name of object.
Wrapper around a TObject so it can be stored in a TList.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetTitle() const
Returns title of object.
virtual TClass * IsA() const
virtual void Paint(Option_t *option="")
This method must be overridden if a class wants to paint itself.
The most important graphics class in the ROOT system.
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
void Print(const char *filename="") const override
This method is equivalent to SaveAs("filename"). See TPad::SaveAs for details.
The histogram statistics painter class.
virtual void SetStatFormat(const char *format="6.4g")
Change (i.e. set) the format for printing statistics.
void SetOptStat(Int_t stat=1)
Set the stat option.
virtual void SetFitFormat(const char *format="5.4g")
Change (i.e. set) the format for printing fit parameters in statistics box.
void SetParent(TObject *obj) override
void SetOptFit(Int_t fit=1)
Set the fit option.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
void Clear(Option_t *option="") override
Clear all lines in this pavetext.
virtual TText * GetLine(Int_t number) const
Get Pointer to line number in this pavetext.
A TBox with a bordersize and a shadow option.
virtual void SetName(const char *name="")
virtual void SetBorderSize(Int_t bordersize=4)
Sets the border size of the TPave box and shadow.
Option_t * GetOption() const override
A TScatter is able to draw four variables scatter plot on a single plot.
const char * Data() const
Ssiz_t Last(char c) const
Find last occurrence of a character c.
void ToUpper()
Change string to upper case.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
TString & Append(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Color_t GetStatTextColor() const
Int_t GetOptTitle() const
Int_t GetPadTickX() const
Float_t GetStatFontSize() const
Float_t GetPadRightMargin() const
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
Color_t GetTitleFillColor() const
Style_t GetTitleStyle() const
Bool_t GetPadGridY() const
Color_t GetStatColor() const
Float_t GetPadLeftMargin() const
Bool_t GetPadGridX() const
Int_t GetPadTickY() const
Width_t GetTitleBorderSize() const
Color_t GetCanvasColor() const
Float_t GetPadBottomMargin() const
Width_t GetStatBorderSize() const
Color_t GetTitleTextColor() const
Style_t GetStatStyle() const
const char * GetFitFormat() const
Int_t GetCanvasBorderMode() const
const char * GetStatFormat() const
Width_t GetCanvasBorderSize() const
Style_t GetStatFont() const
Float_t GetTitleFontSize() const
Float_t GetPadTopMargin() const
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
Base class for several text objects.
static Long_t SelfId()
Static method returning the id for the current thread.
Handles synchronous and a-synchronous timer events.
virtual void TurnOn()
Add the timer to the system timer list.
void SetTime(Long_t milliSec)
static TView * CreateView(Int_t system=1, const Double_t *rmin=nullptr, const Double_t *rmax=nullptr)
Create a concrete default 3-d view via the plug-in manager.
virtual void SetAutoRange(Bool_t autorange=kTRUE)=0
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
small helper class to store/restore gPad context in TPad methods
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Semi-Abstract base class defining a generic interface to the underlying, low level,...
void SetSlow(Bool_t slow=kTRUE)
TWebCanvasTimer(TWebCanvas &canv)
void Timeout() override
used to send control messages to clients
Basic TCanvasImp ABI implementation for Web-based Graphics Provides painting of main ROOT classes in ...
TVirtualPadPainter * CreatePadPainter() override
Creates web-based pad painter.
void ForceUpdate() override
Increment canvas version and force sending data to client - do not wait for reply.
static TCanvas * CreateWebCanvas(const char *name, const char *title, UInt_t width=1200, UInt_t height=800)
Create TCanvas and assign TWebCanvas implementation to it Canvas is not displayed automatically,...
static void AddCustomClass(const std::string &clname, bool with_derived=false)
Assign custom class.
static TString CreatePadJSON(TPad *pad, Int_t json_compression=0, Bool_t batchmode=kFALSE)
Create JSON painting output for given pad Produce JSON can be used for offline drawing with JSROOT.
void SetCanvasSize(UInt_t w, UInt_t h) override
Set canvas size of web canvas.
UInt_t fColorsHash
! last hash of colors/palette
Int_t fTF1UseSave
! use save buffer for TF1/TF2, 0:off, 1:prefer, 2:force
void ShowCmd(const std::string &arg, Bool_t show)
Function used to send command to browser to toggle menu, toolbar, editors, ...
Long64_t fColorsVersion
! current colors/palette version, checked every time when new snapshot created
virtual Bool_t IsReadOnly() const
std::shared_ptr< ROOT::RWebWindow > fWindow
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 ...
void AddCtrlMsg(unsigned connid, const std::string &key, const std::string &value)
Add control message for specified connection Same control message can be overwritten many time before...
static void SetCustomScripts(const std::string &src)
Configures custom script for canvas.
ObjectSelectSignal_t fObjSelectSignal
! signal emitted when new object selected in the pad
PadClickedSignal_t fPadClickedSignal
! signal emitted when simple mouse click performed on the pad
void SetLongerPolling(Bool_t on)
UInt_t fStyleHash
! last hash of gStyle
virtual Bool_t CanCreateObject(const std::string &)
void ShowWebWindow(const ROOT::RWebDisplayArgs &user_args="")
Show canvas in specified place.
Int_t fPrimitivesMerge
! number of PS primitives, which will be merged together
void Show() override
Show canvas in browser window.
Bool_t WaitWhenCanvasPainted(Long64_t ver)
Wait when specified version of canvas was painted and confirmed by browser.
static UInt_t gBatchImageMode
! configured batch size
static std::string gCustomScripts
! custom JavaScript code or URL on JavaScript files to load before start drawing
Bool_t IsAsyncMode() const
Long64_t fLastDrawVersion
! last draw version
UInt_t CalculateColorsHash()
Calculate hash function for all colors and palette.
void SetWindowGeometry(const std::vector< int > &arr)
Set window geometry as array with coordinates and dimensions.
Bool_t HasStatusBar() const override
Returns kTRUE if web canvas has status bar.
static std::vector< std::string > gCustomClasses
! list of custom classes, which can be delivered as is to client
void CreateWebWindow()
Create web window for the canvas.
void Close() override
Close web canvas - not implemented.
static bool ProduceImages(std::vector< TPad * > pads, const char *filename, Int_t width=0, Int_t height=0)
Create images for several pads using batch (headless) capability of Chrome or Firefox browsers Suppor...
Bool_t HasMenuBar() const override
Returns kTRUE if web canvas has menu bar.
Int_t InitWindow() override
Initialize window for the web canvas At this place canvas is not yet register to the list of canvases...
void CheckPadModified(TPad *pad)
Returns true if any pad in the canvas were modified Reset modified flags, increment canvas version (i...
void RaiseWindow() override
Raise browser window.
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 ActivateInEditor(TPad *pad, TObject *obj)
Activate object in editor in web browser.
std::vector< WebConn > fWebConn
! connections
PadSignal_t fActivePadChangedSignal
! signal emitted when active pad changed in the canvas
Bool_t GetLongerPolling() const
UInt_t fClientBits
! latest status bits from client like editor visible or not
std::function< void(TPadWebSnapshot *)> PadPaintingReady_t
Function called when pad painting produced.
Int_t fPaletteDelivery
! colors palette delivery 0:never, 1:once, 2:always, 3:per subpad
Bool_t fProcessingData
! flag used to prevent blocking methods when process data is invoked
Bool_t HasToolTips() const override
Returns kTRUE if tooltips are activated in web canvas.
std::vector< TPad * > fAllPads
! list of all pads recognized during streaming
friend class TWebCanvasTimer
TWebCanvasTimer * fTimer
! timer to submit control messages
static std::vector< std::string > gBatchJsons
! converted jsons batch job
Long64_t fCanvVersion
! actual canvas version, changed with every new Modified() call
std::vector< int > fWindowGeometry
! last received window geometry
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.
std::map< TObject *, bool > fUsedObjs
! map of used objects during streaming
void AddColorsPalette(TPadWebSnapshot &master)
Add special canvas objects with list of colors and color palette.
Long64_t fStyleVersion
! current gStyle object version, checked every time when new snapshot created
static std::string gBatchMultiPdf
! name of current multi-page pdf file
static void BatchImageMode(UInt_t n=100)
Configure batch image mode for web graphics.
std::vector< std::unique_ptr< ROOT::RWebDisplayHandle > > fHelpHandles
! array of handles for help widgets
void AddSendQueue(unsigned connid, const std::string &msg)
Add message to send queue for specified connection If connid == 0, message will be add to all connect...
void SetWindowPosition(Int_t x, Int_t y) override
Set window position of web canvas.
UpdatedSignal_t fUpdatedSignal
! signal emitted when canvas updated or state is changed
Int_t fJsonComp
! compression factor for messages send to the client
static std::vector< int > gBatchWidths
! batch job widths
~TWebCanvas() override
Destructor.
static std::string ProcessCustomScripts(bool batch)
For batch mode special handling of scripts are required Headless browser not able to load modules fro...
Bool_t fReadOnly
!< configured display
std::map< TPad *, PadStatus > fPadsStatus
! map of pads in canvas and their status flags
static Font_t AddFont(const char *name, const char *ttffile, Int_t precision=2)
Add font to static list of fonts supported by the canvas Name specifies name of the font,...
void AddCustomFonts(TPadWebSnapshot &master)
Add special canvas objects with custom fonts.
Bool_t CheckDataToSend(unsigned connid=0)
Check if any data should be send to client If connid != 0, only selected connection will be checked.
Bool_t PerformUpdate(Bool_t async) override
if canvas or any subpad was modified, scan all primitives in the TCanvas and subpads and convert them...
void AssignStatusBits(UInt_t bits)
Assign clients bits.
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...
TWebCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height, Bool_t readonly=kTRUE)
Constructor.
static std::vector< int > gBatchHeights
! batch job heights
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() ...
static const std::string & GetCustomScripts()
Returns configured custom script.
void Iconify() override
Iconify browser window.
void SetWindowTitle(const char *newTitle) override
Set window title of web canvas.
UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override
Returns window geometry including borders and menus.
static std::vector< std::string > gBatchFiles
! file names for batch job
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.
static TString CreateCanvasJSON(TCanvas *c, Int_t json_compression=0, Bool_t batchmode=kFALSE)
Create JSON painting output for given canvas Produce JSON can be used for offline drawing with JSROOT...
Bool_t HasEditor() const override
Returns kTRUE if web canvas has graphical editor.
Int_t fStyleDelivery
! gStyle delivery to clients: 0:never, 1:once, 2:always
PadClickedSignal_t fPadDblClickedSignal
! signal emitted when simple mouse click performed on the pad
void ProcessExecs(TPad *pad, TExec *extra=nullptr)
Process TExec objects in the pad.
static bool FlushBatchImages()
Flush batch images.
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 ...
Bool_t CheckCanvasModified(bool force_modified=false)
Check if any pad on the canvas was modified If yes, increment version of correspondent pad Returns tr...
virtual Bool_t DecodePadOptions(const std::string &, bool process_execs=false)
Decode all pad options, which includes ranges plus objects options.
Int_t GetPaletteDelivery() const
void SetWindowSize(UInt_t w, UInt_t h) override
Set window size of web canvas.
static bool IsCustomClass(const TClass *cl)
Checks if class belongs to custom.
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...
Bool_t fFixedSize
! is canvas size fixed
Int_t GetStyleDelivery() const
Class used to transport drawing options from the client.
Implement TVirtualPadPainter which abstracts painting operations.
Object used to store paint operations and deliver them to JSROOT.
@ kSVG
list of SVG primitives
@ kColors
list of ROOT colors + palette
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.
WebFont_t(Int_t indx, const TString &name, const TString &fmt, const TString &data)