ROOT logo
// @(#)root/histpainter:$Id: TGraphPainter.h,v 1.00
// Author: Olivier Couet

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGraphPainter
#define ROOT_TGraphPainter


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGraphPainter                                                        //
//                                                                      //
// helper class to draw graphs                                          //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_Object
#include "TVirtualGraphPainter.h"
#endif

class TGraph;
class TF1;

class TGraphPainter : public TVirtualGraphPainter {

public:

   TGraphPainter();

   virtual ~TGraphPainter();

   void           ComputeLogs(Int_t npoints, Int_t opt);
   virtual Int_t  DistancetoPrimitiveHelper(TGraph *theGraph, Int_t px, Int_t py);
   virtual void   DrawPanelHelper(TGraph *theGraph);
   virtual void   ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py);
   virtual char  *GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py) const;
   void           PaintHelper(TGraph *theGraph, Option_t *option);
   virtual void   PaintGraph(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt);
   virtual void   PaintGrapHist(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt);
   void           PaintGraphAsymmErrors(TGraph *theGraph, Option_t *option);
   void           PaintGraphBentErrors(TGraph *theGraph, Option_t *option);
   void           PaintGraphErrors(TGraph *theGraph, Option_t *option);
   void           PaintGraphPolar(TGraph *theGraph, Option_t *option);
   void           PaintGraphQQ(TGraph *theGraph, Option_t *option);
   void           PaintGraphSimple(TGraph *theGraph, Option_t *option);
   void           PaintPolyLineHatches(TGraph *theGraph, Int_t n, const Double_t *x, const Double_t *y);
   void           PaintStats(TGraph *theGraph, TF1 *fit);
   void           Smooth(TGraph *theGraph, Int_t npoints, Double_t *x, Double_t *y, Int_t drawtype);

   ClassDef(TGraphPainter,0)  // TGraph painter
};

#endif
 TGraphPainter.h:1
 TGraphPainter.h:2
 TGraphPainter.h:3
 TGraphPainter.h:4
 TGraphPainter.h:5
 TGraphPainter.h:6
 TGraphPainter.h:7
 TGraphPainter.h:8
 TGraphPainter.h:9
 TGraphPainter.h:10
 TGraphPainter.h:11
 TGraphPainter.h:12
 TGraphPainter.h:13
 TGraphPainter.h:14
 TGraphPainter.h:15
 TGraphPainter.h:16
 TGraphPainter.h:17
 TGraphPainter.h:18
 TGraphPainter.h:19
 TGraphPainter.h:20
 TGraphPainter.h:21
 TGraphPainter.h:22
 TGraphPainter.h:23
 TGraphPainter.h:24
 TGraphPainter.h:25
 TGraphPainter.h:26
 TGraphPainter.h:27
 TGraphPainter.h:28
 TGraphPainter.h:29
 TGraphPainter.h:30
 TGraphPainter.h:31
 TGraphPainter.h:32
 TGraphPainter.h:33
 TGraphPainter.h:34
 TGraphPainter.h:35
 TGraphPainter.h:36
 TGraphPainter.h:37
 TGraphPainter.h:38
 TGraphPainter.h:39
 TGraphPainter.h:40
 TGraphPainter.h:41
 TGraphPainter.h:42
 TGraphPainter.h:43
 TGraphPainter.h:44
 TGraphPainter.h:45
 TGraphPainter.h:46
 TGraphPainter.h:47
 TGraphPainter.h:48
 TGraphPainter.h:49
 TGraphPainter.h:50
 TGraphPainter.h:51
 TGraphPainter.h:52
 TGraphPainter.h:53
 TGraphPainter.h:54
 TGraphPainter.h:55
 TGraphPainter.h:56
 TGraphPainter.h:57
 TGraphPainter.h:58
 TGraphPainter.h:59
 TGraphPainter.h:60