12 #ifndef ROOT_TGLLegoPainter
13 #define ROOT_TGLLegoPainter
15 #ifndef ROOT_TGLPlotPainter
18 #ifndef ROOT_TGLQuadric
52 typedef std::pair<Double_t, Double_t>
CosSin_t;
Camera for TGLPlotPainter and sub-classes.
std::vector< Rgl::Range_t > fXEdges
Plot-painter implementing LEGO rendering of TH2 histograms in cartesian, polar, cylindrical and spher...
void DrawLegoSpherical() const
Lego in spherical system.
std::pair< Double_t, Double_t > Range_t
void InitGL() const
Initialize some gl state variables.
Bool_t InitGeometryCylindrical()
Geometry for lego in cylindrical coords.
void StartPan(Int_t px, Int_t py)
User clicks on a lego with middle mouse button (middle for pad).
void ProcessEvent(Int_t event, Int_t px, Int_t py)
Remove all sections and repaint.
void DrawPalette() const
Draw.
void AddOption(const TString &stringOption)
Parse additional options.
Wrapper class for GLU quadric shape drawing object.
std::vector< CosSin_t > fCosSinTableY
Bool_t InitGeometryPolar()
Geometry for lego in polar coords.
void DeInitGL() const
Return some gl states to original values.
void DrawSectionXOY() const
Empty. No such sections for lego.
TGLLegoPainter(const TGLLegoPainter &)
std::vector< Double_t > fColorLevels
std::vector< CosSin_t > fCosSinTableX
Bool_t InitGeometry()
Select method.
std::pair< Double_t, Double_t > CosSin_t
void DrawPaletteAxis() const
Draw. Palette. Axis.
Class to manage histogram axis.
ClassDef(TVirtualGLPainter, 0)
Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if ce...
Bool_t ClampZ(Double_t &zVal) const
Clamp z value.
char * GetPlotInfo(Int_t px, Int_t py)
Obtain bin's info (i, j, value).
void DrawPlot() const
Select method corresponding to coordinate system.
Base class for plot-painters that provide GL rendering of various 2D and 3D histograms, functions and parametric surfaces.
void DrawLegoPolar() const
Lego in polar system.
Bool_t PreparePalette() const
Initialize color palette.
void DrawSectionYOZ() const
YOZ plane parallel section.
void DrawSectionXOZ() const
XOZ plane parallel section.
void SetLegoColor() const
Set lego's color.
void DrawLegoCylindrical() const
Lego in cylindrical system.
std::vector< Rgl::Range_t > fYEdges
TGLLegoPainter & operator=(const TGLLegoPainter &)
Bool_t InitGeometrySpherical()
Geometry for lego in spherical coords.
void DrawLegoCartesian() const
Lego in cartesian system.
void Pan(Int_t px, Int_t py)
Move lego or section.
Bool_t InitGeometryCartesian()
Geometry for lego in cartesian coords.