Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TVirtualGraphPainter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/hist:$Id$
0002 // Author: Olivier Couet 20/05/08
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 #ifndef ROOT_TVirtualGraphPainter
0012 #define ROOT_TVirtualGraphPainter
0013 
0014 //////////////////////////////////////////////////////////////////////////
0015 //                                                                      //
0016 // TVirtualGraphPainter                                                 //
0017 //                                                                      //
0018 // Abstract base class for Graph painters                               //
0019 //                                                                      //
0020 //////////////////////////////////////////////////////////////////////////
0021 
0022 #include "TObject.h"
0023 
0024 class TGraph;
0025 class TScatter;
0026 class TF1;
0027 
0028 class TVirtualGraphPainter : public TObject {
0029 
0030 private:
0031    static TVirtualGraphPainter   *fgPainter; //Pointer to class painter
0032 
0033 public:
0034    TVirtualGraphPainter() { }
0035    ~TVirtualGraphPainter() override { }
0036 
0037    virtual Int_t DistancetoPrimitiveHelper(TGraph *theGraph, Int_t px, Int_t py) = 0;
0038    virtual void  DrawPanelHelper(TGraph *theGraph) = 0;
0039    virtual void  ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py) = 0;
0040    virtual char *GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py) const = 0;
0041    virtual void  PaintHelper(TGraph *theGraph, Option_t *option) = 0;
0042    virtual void  PaintGraph(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt) = 0;
0043    virtual void  PaintGrapHist(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt) = 0;
0044    virtual void  PaintScatter(TScatter *theScatter, Option_t *option) = 0;
0045    virtual void  PaintStats(TGraph *theGraph, TF1 *fit) = 0;
0046    virtual void  SetHighlight(TGraph *theGraph) = 0;
0047 
0048    static TVirtualGraphPainter *GetPainter();
0049    static void                  SetPainter(TVirtualGraphPainter *painter);
0050 
0051    ClassDefOverride(TVirtualGraphPainter,0)  //Abstract interface for histogram painters
0052 };
0053 
0054 #endif