ROOT » GRAF3D » GL » TGLSurfacePainter

class TGLSurfacePainter: public TGLPlotPainter


 Implements painting of TH2 with "SURF" option.

Function Members (Methods)

private:
voidClampZ(Double_t& zVal) const
virtual voidDeInitGL() const
voidDrawContoursProjection() const
voidDrawPalette() const
virtual voidDrawPaletteAxis() const
virtual voidDrawPlot() const
voidDrawProjections() const
virtual voidDrawSectionXOY() const
virtual voidDrawSectionXOZ() const
virtual voidDrawSectionYOZ() const
voidGenTexMap() const
Bool_tHasProjections() const
Bool_tHasSections() const
Bool_tInitGeometryCartesian()
Bool_tInitGeometryCylindrical()
Bool_tInitGeometryPolar()
Bool_tInitGeometrySpherical()
virtual voidInitGL() const
Bool_tPreparePalette() const
voidSetNormals()
voidSetSurfaceColor() const
Bool_tTextured() const
char*WindowPointTo3DPoint(Int_t px, Int_t py) const

Data Members

private:
TGL2DArray<TGLVector3>fAverageNormals
vector<Double_t>fColorLevels
TGL2DArray<pair<TGLVector3,TGLVector3> >fFaceNormals
TGL2DArray<TGLVertex3>fMesh
Rgl::Range_tfMinMaxVal
TStringfObjectInfo
TGLLevelPalettefPalette
TGLSurfacePainter::Projection_tfProj
Bool_tfSectionPass
TGL2DArray<Double_t>fTexMap
TGLSurfacePainter::ESurfaceTypefType
Bool_tfUpdateTexMap
list<TGLSurfacePainter::Projection_t>fXOYProj
list<TGLSurfacePainter::Projection_t>fXOZProj
list<TGLSurfacePainter::Projection_t>fYOZProj
static TRandom*fgRandom
static TGLSurfacePainter::ESurfaceTypekSurf
static TGLSurfacePainter::ESurfaceTypekSurf1
static TGLSurfacePainter::ESurfaceTypekSurf2
static TGLSurfacePainter::ESurfaceTypekSurf3
static TGLSurfacePainter::ESurfaceTypekSurf4
static TGLSurfacePainter::ESurfaceTypekSurf5

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLSurfacePainter(TH1* hist, TGLPlotCamera* camera, TGLPlotCoordinates* coord)
 Constructor.
char * GetPlotInfo(Int_t px, Int_t py)
Coords for point on surface under cursor.
Bool_t InitGeometry()
Set mesh, normals.
void StartPan(Int_t px, Int_t py)
User clicks right mouse button (in a pad).
void Pan(Int_t px, Int_t py)
User's moving mouse cursor, with middle mouse button pressed (for pad).
Calculate 3d shift related to 2d mouse movement.
void AddOption(const TString& stringOption)
Additional options for surfaces.
void ProcessEvent(Int_t event, Int_t px, Int_t py)
Remove all profiles/sections.
void InitGL() const
Initialize some OpenGL state variables.
void DeInitGL() const
Initialize some OpenGL state variables.
void SetNormals()
One normal per vertex;
this normal is average of
neighbouring triangles normals.
void SetSurfaceColor() const
Set color for surface.
void DrawPlot() const
Draw surf/surf1/surf2/surf4
Bool_t InitGeometryCartesian()
Find bin ranges for X and Y axes,
axes ranges for X, Y and Z.
Function returns false, if logarithmic scale for
some axis was requested, but we cannot
find correct range.
Bool_t InitGeometryPolar()
Find bin ranges for X and Y axes,
axes ranges for X, Y and Z.
Function returns false, if logarithmic scale for
some axis was requested, but we cannot
find correct range.
Bool_t InitGeometryCylindrical()
Find bin ranges for X and Y axes,
axes ranges for X, Y and Z.
Function returns false, if logarithmic scale for
some axis was requested, but we cannot
find correct range.
Bool_t InitGeometrySpherical()
Find bin ranges for X and Y axes,
axes ranges for X, Y and Z.
Function returns false, if logarithmic scale for
some axis was requested, but we cannot
find correct range.
void DrawProjections() const
 Draw projections.
void DrawSectionXOZ() const
 Draw section X.
void DrawSectionYOZ() const
 Draw section Y.
void DrawSectionXOY() const
 Draw section Z.
void ClampZ(Double_t& zVal) const
Clamp z value.
char * WindowPointTo3DPoint(Int_t px, Int_t py) const
Find 3d coords using mouse cursor coords.
   if (!MakeGLContextCurrent()) {
      static char err[] = { "Apocalipshit!" };
      return err;
}
Bool_t PreparePalette() const
Generate palette.
void GenTexMap() const
Find texture coordinates.
void DrawContoursProjection() const
Draw flat textured surface.
Bool_t Textured() const
Checks, if surf requires texture.
Bool_t HasSections() const
Any section exists.
Bool_t HasProjections() const
Any projection exists.
void DrawPalette() const
Draw. Palette.
Originally, fCamera was never null.
It can be a null now because of gl-viewer.
void DrawPaletteAxis() const
Draw. Palette. Axis.
TGLSurfacePainter(TH1* hist, TGLPlotCamera* camera, TGLPlotCoordinates* coord)