#ifndef ROOT_TGLLegoPainter
#define ROOT_TGLLegoPainter
#ifndef ROOT_TGLPlotPainter
#include "TGLPlotPainter.h"
#endif
#ifndef ROOT_TGLQuadric
#include "TGLQuadric.h"
#endif
#ifndef ROOT_TGLUtil
#include "TGLUtil.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TGLOrthoCamera;
class TAxis;
class TH1;
class TGLLegoPainter : public TGLPlotPainter {
private:
enum ELegoType {
kColorSimple,
kColorLevel,
kCylindricBars
};
mutable ELegoType fLegoType;
Double_t fMinZ;
Rgl::Range_t fMinMaxVal;
std::vector<Rgl::Range_t> fXEdges;
std::vector<Rgl::Range_t> fYEdges;
typedef std::pair<Double_t, Double_t> CosSin_t;
std::vector<CosSin_t> fCosSinTableX;
std::vector<CosSin_t> fCosSinTableY;
TString fBinInfo;
mutable TGLQuadric fQuadric;
Bool_t fDrawErrors;
mutable TGLLevelPalette fPalette;
mutable std::vector<Double_t> fColorLevels;
TGLLegoPainter(const TGLLegoPainter &);
TGLLegoPainter &operator = (const TGLLegoPainter &);
public:
TGLLegoPainter(TH1 *hist, TGLOrthoCamera *camera, TGLPlotCoordinates *coord, Int_t ctx = -1);
char *GetPlotInfo(Int_t px, Int_t py);
Bool_t InitGeometry();
void StartPan(Int_t px, Int_t py);
void Pan(Int_t px, Int_t py);
void AddOption(const TString &stringOption);
void ProcessEvent(Int_t event, Int_t px, Int_t py);
private:
Bool_t InitGeometryCartesian();
Bool_t InitGeometryPolar();
Bool_t InitGeometryCylindrical();
Bool_t InitGeometrySpherical();
void InitGL()const;
void DrawPlot()const;
void ClearBuffers()const;
void DrawLegoCartesian()const;
void DrawLegoPolar()const;
void DrawLegoCylindrical()const;
void DrawLegoSpherical()const;
void SetLegoColor()const;
void DrawSectionXOZ()const;
void DrawSectionYOZ()const;
void DrawSectionXOY()const;
Bool_t ClampZ(Double_t &zVal)const;
Bool_t PreparePalette()const;
ClassDef(TGLLegoPainter, 0)
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
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.