Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualGraphPainter.h
Go to the documentation of this file.
1// @(#)root/hist:$Id$
2// Author: Olivier Couet 20/05/08
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#ifndef ROOT_TVirtualGraphPainter
12#define ROOT_TVirtualGraphPainter
13
14//////////////////////////////////////////////////////////////////////////
15// //
16// TVirtualGraphPainter //
17// //
18// Abstract base class for Graph painters //
19// //
20//////////////////////////////////////////////////////////////////////////
21
22#include "TObject.h"
23
24class TGraph;
25class TScatter;
26class TScatter2D;
27class TF1;
28
30
31private:
32 static TVirtualGraphPainter *fgPainter; //Pointer to class painter
33
34public:
36 ~TVirtualGraphPainter() override { }
37
39 virtual void DrawPanelHelper(TGraph *theGraph) = 0;
40 virtual void ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py) = 0;
41 virtual char *GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py) const = 0;
43 virtual void PaintGraph(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt) = 0;
44 virtual void PaintGrapHist(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt) = 0;
47 virtual void PaintStats(TGraph *theGraph, TF1 *fit) = 0;
48 virtual void SetHighlight(TGraph *theGraph) = 0;
49
52
53 ClassDefOverride(TVirtualGraphPainter,0) //Abstract interface for histogram painters
54};
55
56#endif
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
Option_t Option_t option
1-Dim function class
Definition TF1.h:182
A TGraph is an object made of two arrays X and Y with npoints each.
Definition TGraph.h:41
Mother of all ROOT objects.
Definition TObject.h:41
A TScatter2D is able to draw five variables scatter plot on a single plot.
Definition TScatter2D.h:32
A TScatter is able to draw four variables scatter plot on a single plot.
Definition TScatter.h:32
Abstract interface to a histogram painter.
static TVirtualGraphPainter * fgPainter
virtual void DrawPanelHelper(TGraph *theGraph)=0
virtual void ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py)=0
virtual void SetHighlight(TGraph *theGraph)=0
virtual char * GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py) const =0
static void SetPainter(TVirtualGraphPainter *painter)
Static function to set an alternative histogram painter.
virtual void PaintGrapHist(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)=0
virtual Int_t DistancetoPrimitiveHelper(TGraph *theGraph, Int_t px, Int_t py)=0
virtual void PaintGraph(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)=0
virtual void PaintStats(TGraph *theGraph, TF1 *fit)=0
virtual void PaintHelper(TGraph *theGraph, Option_t *option)=0
virtual void PaintScatter(TScatter *theScatter, Option_t *option)=0
virtual void PaintScatter2D(TScatter2D *theScatter, Option_t *option)=0
static TVirtualGraphPainter * GetPainter()
Static function returning a pointer to the current graph painter.
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17