11 #ifndef ROOT_TVirtualGraphPainter
12 #define ROOT_TVirtualGraphPainter
27 class TVirtualGraphPainter :
public TObject {
30 static TVirtualGraphPainter *fgPainter;
33 TVirtualGraphPainter() { }
34 virtual ~TVirtualGraphPainter() { }
36 virtual Int_t DistancetoPrimitiveHelper(TGraph *theGraph, Int_t px, Int_t py) = 0;
37 virtual void DrawPanelHelper(TGraph *theGraph) = 0;
38 virtual void ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py) = 0;
39 virtual char *GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py)
const = 0;
40 virtual void PaintHelper(TGraph *theGraph, Option_t *option) = 0;
41 virtual void PaintGraph(TGraph *theGraph, Int_t npoints,
const Double_t *x,
const Double_t *y, Option_t *chopt) = 0;
42 virtual void PaintGrapHist(TGraph *theGraph, Int_t npoints,
const Double_t *x,
const Double_t *y, Option_t *chopt) = 0;
43 virtual void PaintStats(TGraph *theGraph, TF1 *fit) = 0;
44 virtual void SetHighlight(TGraph *theGraph) = 0;
46 static TVirtualGraphPainter *GetPainter();
47 static void SetPainter(TVirtualGraphPainter *painter);
49 ClassDef(TVirtualGraphPainter,0)