12 #ifndef ROOT_TGLHistPainter
13 #define ROOT_TGLHistPainter
32 class TGLParametricEquation;
33 class TGLTH3Composition;
40 class TGLHistPainter :
public TVirtualHistPainter {
44 std::unique_ptr<TVirtualHistPainter> fDefaultPainter;
46 std::unique_ptr<TGLPlotPainter> fGLPainter;
48 TGLParametricEquation *fEq;
52 EGLPlotType fPlotType;
53 TGLPlotCamera fCamera;
54 TGLPlotCoordinates fCoord;
57 TGLHistPainter(TH1 *hist);
58 TGLHistPainter(TGLParametricEquation *equation);
59 TGLHistPainter(TGL5DDataSet *data);
60 TGLHistPainter(TGLTH3Composition *comp);
63 Int_t DistancetoPrimitive(Int_t px, Int_t py);
65 void ExecuteEvent(Int_t event, Int_t px, Int_t py);
66 TList *GetContourList(Double_t contour)
const;
67 char *GetObjectInfo(Int_t px, Int_t py)
const;
68 TList *GetStack()
const;
69 Bool_t IsInside(Int_t x, Int_t y);
70 Bool_t IsInside(Double_t x, Double_t y);
71 void Paint(Option_t *option);
72 void PaintStat(Int_t dostat, TF1 *fit);
73 void ProcessMessage(
const char *message,
const TObject *obj);
75 void SetHistogram(TH1 *hist);
76 void SetStack(TList *stack);
77 Int_t MakeCuts(
char *cutsOpt);
78 void SetShowProjection(
const char *option, Int_t nbins);
80 TGLPlotPainter *GetRealPainter(){
return fGLPainter.get();}
85 PlotOption_t ParsePaintOption(
const TString &option)
const;
86 void CreatePainter(
const PlotOption_t &parsed,
87 const TString &option);
89 void PadToViewport(Bool_t selectionPass = kFALSE);
91 TGLHistPainter(
const TGLHistPainter &);
92 TGLHistPainter &operator = (
const TGLHistPainter &);
94 ClassDef(TGLHistPainter, 0)