File indexing completed on 2025-08-03 08:21:00
0001 #ifndef EXAMPLE_MYMONDRAW_H
0002 #define EXAMPLE_MYMONDRAW_H
0003
0004 #include <onlmon/OnlMonDraw.h>
0005
0006 #include <string> // for allocator, string
0007
0008 class OnlMonDB;
0009 class TCanvas;
0010 class TGraphErrors;
0011 class TPad;
0012
0013 class MyMonDraw : public OnlMonDraw
0014 {
0015 public:
0016 MyMonDraw(const std::string &name);
0017 ~MyMonDraw() override {}
0018
0019 int Init() override;
0020 int Draw(const std::string &what = "ALL") override;
0021 int MakeHtml(const std::string &what = "ALL") override;
0022 int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
0023
0024 protected:
0025 int MakeCanvas(const std::string &name);
0026 int DrawFirst(const std::string &what = "ALL");
0027 int DrawSecond(const std::string &what = "ALL");
0028 int DrawHistory(const std::string &what = "ALL");
0029 int TimeOffsetTicks = -1;
0030 TCanvas *TC[3] = {nullptr};
0031 TPad *transparent[3] = {nullptr};
0032 TPad *Pad[6] = {nullptr};
0033 TGraphErrors *gr[2] = {nullptr};
0034 OnlMonDB *dbvars = nullptr;
0035 };
0036
0037 #endif