TGraphPainter.h

Go to the documentation of this file.
00001 // @(#)root/histpainter:$Id: TGraphPainter.h,v 1.00
00002 // Author: Olivier Couet
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGraphPainter
00013 #define ROOT_TGraphPainter
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TGraphPainter                                                        //
00019 //                                                                      //
00020 // helper class to draw graphs                                          //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_Object
00025 #include "TVirtualGraphPainter.h"
00026 #endif
00027 
00028 class TGraph;
00029 class TF1;
00030 
00031 class TGraphPainter : public TVirtualGraphPainter {
00032 
00033 public:
00034 
00035    TGraphPainter();
00036 
00037    virtual ~TGraphPainter();
00038 
00039    void           ComputeLogs(Int_t npoints, Int_t opt);
00040    virtual Int_t  DistancetoPrimitiveHelper(TGraph *theGraph, Int_t px, Int_t py);
00041    virtual void   DrawPanelHelper(TGraph *theGraph);
00042    virtual void   ExecuteEventHelper(TGraph *theGraph, Int_t event, Int_t px, Int_t py);
00043    virtual char  *GetObjectInfoHelper(TGraph *theGraph, Int_t px, Int_t py) const;
00044    void           PaintHelper(TGraph *theGraph, Option_t *option);
00045    virtual void   PaintGraph(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt);
00046    virtual void   PaintGrapHist(TGraph *theGraph, Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt);
00047    void           PaintGraphAsymmErrors(TGraph *theGraph, Option_t *option);
00048    void           PaintGraphBentErrors(TGraph *theGraph, Option_t *option);
00049    void           PaintGraphErrors(TGraph *theGraph, Option_t *option);
00050    void           PaintGraphPolar(TGraph *theGraph, Option_t *option);
00051    void           PaintGraphQQ(TGraph *theGraph, Option_t *option);
00052    void           PaintGraphSimple(TGraph *theGraph, Option_t *option);
00053    void           PaintPolyLineHatches(TGraph *theGraph, Int_t n, const Double_t *x, const Double_t *y);
00054    void           PaintStats(TGraph *theGraph, TF1 *fit);
00055    void           Smooth(TGraph *theGraph, Int_t npoints, Double_t *x, Double_t *y, Int_t drawtype);
00056 
00057    ClassDef(TGraphPainter,0)  // TGraph painter
00058 };
00059 
00060 #endif

Generated on Tue Jul 5 14:24:23 2011 for ROOT_528-00b_version by  doxygen 1.5.1