File indexing completed on 2026-01-01 10:01:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_TVirtualGraphPainter
0012 #define ROOT_TVirtualGraphPainter
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "TObject.h"
0023
0024 class TGraph;
0025 class TScatter;
0026 class TScatter2D;
0027 class TF1;
0028
0029 class TVirtualGraphPainter : public TObject {
0030
0031 private:
0032 static TVirtualGraphPainter *fgPainter;
0033
0034 public:
0035 TVirtualGraphPainter() { }
0036 ~TVirtualGraphPainter() override { }
0037
0038 virtual Int_t DistancetoPrimitiveHelper(TGraph *theGraph, Int_t px, Int_t py) = 0;
0039 virtual void DrawPanelHelper(TGraph *theGraph) = 0;
0040 virtual void ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py) = 0;
0041 virtual char *GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py) const = 0;
0042 virtual void PaintHelper(TGraph *theGraph, Option_t *option) = 0;
0043 virtual void PaintGraph(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt) = 0;
0044 virtual void PaintGrapHist(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt) = 0;
0045 virtual void PaintScatter(TScatter *theScatter, Option_t *option) = 0;
0046 virtual void PaintScatter2D(TScatter2D *theScatter, Option_t *option) = 0;
0047 virtual void PaintStats(TGraph *theGraph, TF1 *fit) = 0;
0048 virtual void SetHighlight(TGraph *theGraph) = 0;
0049
0050 static TVirtualGraphPainter *GetPainter();
0051 static void SetPainter(TVirtualGraphPainter *painter);
0052
0053 ClassDefOverride(TVirtualGraphPainter,0)
0054 };
0055
0056 #endif