12 #ifndef ROOT_TGLSurfacePainter 13 #define ROOT_TGLSurfacePainter void ClampZ(Double_t &zVal) const
Clamp z value.
Camera for TGLPlotPainter and sub-classes.
Bool_t InitGeometryCylindrical()
Find bin ranges for X and Y axes, axes ranges for X, Y and Z.
void DrawSectionXOZ() const
Draw section X.
void DrawContoursProjection() const
Draw flat textured surface.
TGL2DArray< TGLVector3 > fAverageNormals
void DrawProjections() const
Draw projections.
std::pair< Double_t, Double_t > Range_t
Bool_t HasSections() const
Any section exists.
TGL2DArray< Double_t > fTexMap
void ProcessEvent(Int_t event, Int_t px, Int_t py)
Remove all profiles/sections.
void DrawPalette() const
Draw.
void InitGL() const
Initialize some OpenGL state variables.
void GenTexMap() const
Find texture coordinates.
TGL2DArray< TGLVertex3 > fMesh
Implements painting of TH2 with "SURF" option.
void StartPan(Int_t px, Int_t py)
User clicks right mouse button (in a pad).
Bool_t InitGeometryPolar()
Find bin ranges for X and Y axes, axes ranges for X, Y and Z.
void DrawSectionYOZ() const
Draw section Y.
std::vector< TGLVertex3 > fVertices
void DrawPaletteAxis() const
Draw. Palette. Axis.
void SetNormals()
One normal per vertex; this normal is average of neighbouring triangles normals.
void DrawSectionXOY() const
Draw section Z.
#define ClassDef(name, id)
Bool_t InitGeometry()
Set mesh, normals.
This is the base class for the ROOT Random number generators.
TGL2DArray< std::pair< TGLVector3, TGLVector3 > > fFaceNormals
char * WindowPointTo3DPoint(Int_t px, Int_t py) const
Find 3d coords using mouse cursor coords.
Bool_t InitGeometrySpherical()
Find bin ranges for X and Y axes, axes ranges for X, Y and Z.
void Pan(Int_t px, Int_t py)
User's moving mouse cursor, with middle mouse button pressed (for pad).
Bool_t Textured() const
Checks, if surf requires texture.
Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if ce...
Bool_t HasProjections() const
Any projection exists.
Base class for plot-painters that provide GL rendering of various 2D and 3D histograms, functions and parametric surfaces.
void DrawPlot() const
Draw surf/surf1/surf2/surf4.
void Swap(Projection_t &rhs)
Constructor.
std::list< Projection_t > fXOYProj
char * GetPlotInfo(Int_t px, Int_t py)
Coords for point on surface under cursor.
void SetSurfaceColor() const
Set color for surface.
static TRandom * fgRandom
void AddOption(const TString &stringOption)
Additional options for surfaces.
Bool_t PreparePalette() const
Generate palette.
std::vector< Double_t > fColorLevels
TGLSurfacePainter(TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
Constructor.
std::list< Projection_t > fXOZProj
std::list< Projection_t > fYOZProj
Bool_t InitGeometryCartesian()
Find bin ranges for X and Y axes, axes ranges for X, Y and Z.
void DeInitGL() const
Initialize some OpenGL state variables.