#ifndef ROOT_THistPainter
#define ROOT_THistPainter
#ifndef ROOT_TVirtualHistPainter
#include "TVirtualHistPainter.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TH1;
class TAxis;
class TCutG;
class TGaxis;
class TPainter3dAlgorithms;
class TGraph2DPainter;
class TPie;
const Int_t kMaxCuts = 16;
class THistPainter : public TVirtualHistPainter {
protected:
TH1 *fH;
TAxis *fXaxis;
TAxis *fYaxis;
TAxis *fZaxis;
TList *fFunctions;
TPainter3dAlgorithms *fLego;
TGraph2DPainter *fGraph2DPainter;
TPie *fPie;
Double_t *fXbuf;
Double_t *fYbuf;
Int_t fNcuts;
Int_t fCutsOpt[kMaxCuts];
TCutG *fCuts[kMaxCuts];
TList *fStack;
Int_t fShowProjection;
TString fShowOption;
public:
THistPainter();
virtual ~THistPainter();
virtual void DefineColorLevels(Int_t ndivz);
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void DrawPanel();
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
virtual TList *GetContourList(Double_t contour) const;
virtual char *GetObjectInfo(Int_t px, Int_t py) const;
virtual TList *GetStack() const {return fStack;}
virtual Bool_t IsInside(Int_t x, Int_t y);
virtual Bool_t IsInside(Double_t x, Double_t y);
virtual Int_t MakeChopt(Option_t *option);
virtual Int_t MakeCuts(char *cutsopt);
virtual void Paint(Option_t *option="");
virtual void PaintArrows(Option_t *option);
virtual void PaintAxis(Bool_t drawGridOnly=kFALSE);
virtual void PaintBar(Option_t *option);
virtual void PaintBarH(Option_t *option);
virtual void PaintBoxes(Option_t *option);
virtual void PaintColorLevels(Option_t *option);
virtual void PaintContour(Option_t *option);
virtual Int_t PaintContourLine(Double_t elev1, Int_t icont1, Double_t x1, Double_t y1,
Double_t elev2, Int_t icont2, Double_t x2, Double_t y2,
Double_t *xarr, Double_t *yarr, Int_t *itarr, Double_t *levels);
virtual void PaintErrors(Option_t *option);
virtual void Paint2DErrors(Option_t *option);
virtual void PaintFrame();
virtual void PaintFunction(Option_t *option);
virtual void PaintHist(Option_t *option);
virtual void PaintH3(Option_t *option="");
virtual void PaintH3Iso();
virtual Int_t PaintInit();
virtual Int_t PaintInitH();
virtual void PaintLego(Option_t *option);
virtual void PaintLegoAxis(TGaxis *axis, Double_t ang);
virtual void PaintPalette();
virtual void PaintScatterPlot(Option_t *option);
virtual void PaintStat(Int_t dostat, TF1 *fit);
virtual void PaintStat2(Int_t dostat, TF1 *fit);
virtual void PaintStat3(Int_t dostat, TF1 *fit);
virtual void PaintSurface(Option_t *option);
virtual void PaintTriangles(Option_t *option);
virtual void PaintTable(Option_t *option);
virtual void PaintText(Option_t *option);
virtual void PaintTitle();
virtual void PaintTF3();
virtual void ProcessMessage(const char *mess, const TObject *obj);
static Int_t ProjectAitoff2xy(Double_t l, Double_t b, Double_t &Al, Double_t &Ab);
static Int_t ProjectMercator2xy(Double_t l, Double_t b, Double_t &Al, Double_t &Ab);
static Int_t ProjectSinusoidal2xy(Double_t l, Double_t b, Double_t &Al, Double_t &Ab);
static Int_t ProjectParabolic2xy(Double_t l, Double_t b, Double_t &Al, Double_t &Ab);
virtual void RecalculateRange();
virtual void RecursiveRemove(TObject *) {;}
virtual void SetHistogram(TH1 *h);
virtual void SetStack(TList *stack) {fStack = stack;}
virtual void SetShowProjection(const char *option,Int_t nbins);
virtual void ShowProjectionX(Int_t px, Int_t py);
virtual void ShowProjectionY(Int_t px, Int_t py);
virtual void ShowProjection3(Int_t px, Int_t py);
virtual Int_t TableInit();
static const char * GetBestFormat(Double_t v, Double_t e, const char *f);
static void PaintSpecialObjects(const TObject *obj, Option_t *option);
ClassDef(THistPainter,0)
};
#endif
Last change: Fri Nov 21 15:27:46 2008
Last generated: 2008-11-21 15:27
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.