Implements painting of TH2 with "SURF" option. 
Definition at line 25 of file TGLSurfacePainter.h.
 | 
|   | TGLSurfacePainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord) | 
|   | Constructor.  
  | 
|   | 
| void  | AddOption (const TString &stringOption) | 
|   | Additional options for surfaces.  
  | 
|   | 
| char *  | GetPlotInfo (Int_t px, Int_t py) | 
|   | Coords for point on surface under cursor.  
  | 
|   | 
| Bool_t  | InitGeometry () | 
|   | Set mesh, normals.  
  | 
|   | 
| virtual TClass *  | IsA () const | 
|   | 
| void  | Pan (Int_t px, Int_t py) | 
|   | User's moving mouse cursor, with middle mouse button pressed (for pad).  
  | 
|   | 
| void  | ProcessEvent (Int_t event, Int_t px, Int_t py) | 
|   | Remove all profiles/sections.  
  | 
|   | 
| void  | StartPan (Int_t px, Int_t py) | 
|   | User clicks right mouse button (in a pad).  
  | 
|   | 
| virtual void  | Streamer (TBuffer &) | 
|   | 
| void  | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) | 
|   | 
|   | TGLPlotPainter (TGL5DDataSet *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord) | 
|   | TGLPlotPainter's ctor.  
  | 
|   | 
|   | TGLPlotPainter (TGLPlotCamera *camera) | 
|   | TGLPlotPainter's ctor.  
  | 
|   | 
|   | TGLPlotPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord, Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable) | 
|   | TGLPlotPainter's ctor.  
  | 
|   | 
| Bool_t  | CutAxisSelected () const | 
|   | 
| Bool_t  | GetDrawAxes () | 
|   | 
| void  | InvalidateSelection () | 
|   | Selection must be updated.  
  | 
|   | 
| virtual void  | Paint () | 
|   | Draw lego/surf/whatever you can.  
  | 
|   | 
| virtual Bool_t  | PlotSelected (Int_t px, Int_t py) | 
|   | Read color buffer content to find selected object.  
  | 
|   | 
| const TGLPlotBox &  | RefBackBox () const | 
|   | 
| void  | SetDrawAxes (Bool_t s) | 
|   | 
| void  | SetDrawBackBox (Bool_t b) | 
|   | 
| void  | SetDrawFrontBox (Bool_t b) | 
|   | 
| virtual void  | SetFrameColor (const TColor *frameColor) | 
|   | Set plot's back box color.  
  | 
|   | 
| void  | SetPadColor (const TColor *color) | 
|   | Used in a pad.  
  | 
|   | 
| void  | SetPhysicalShapeColor (const Float_t *rgba) | 
|   | 
| void  | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) | 
|   | 
| virtual  | ~TVirtualGLPainter () | 
|   | 
| void  | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) | 
|   | 
 | 
| void  | ClampZ (Double_t &zVal) const | 
|   | Clamp z value.  
  | 
|   | 
| void  | DeInitGL () const | 
|   | Initialize some OpenGL state variables.  
  | 
|   | 
| void  | DrawContoursProjection () const | 
|   | Draw flat textured surface.  
  | 
|   | 
| void  | DrawPalette () const | 
|   | Draw.  
  | 
|   | 
| void  | DrawPaletteAxis () const | 
|   | Draw. Palette. Axis.  
  | 
|   | 
| void  | DrawPlot () const | 
|   | Draw surf/surf1/surf2/surf4.  
  | 
|   | 
| void  | DrawProjections () const | 
|   | Draw projections.  
  | 
|   | 
| void  | DrawSectionXOY () const | 
|   | Draw section Z.  
  | 
|   | 
| void  | DrawSectionXOZ () const | 
|   | Draw section X.  
  | 
|   | 
| void  | DrawSectionYOZ () const | 
|   | Draw section Y.  
  | 
|   | 
| void  | GenTexMap () const | 
|   | Find texture coordinates.  
  | 
|   | 
| Bool_t  | HasProjections () const | 
|   | Any projection exists.  
  | 
|   | 
| Bool_t  | HasSections () const | 
|   | Any section exists.  
  | 
|   | 
| Bool_t  | InitGeometryCartesian () | 
|   | Find bin ranges for X and Y axes, axes ranges for X, Y and Z.  
  | 
|   | 
| Bool_t  | InitGeometryCylindrical () | 
|   | Find bin ranges for X and Y axes, axes ranges for X, Y and Z.  
  | 
|   | 
| Bool_t  | InitGeometryPolar () | 
|   | Find bin ranges for X and Y axes, axes ranges for X, Y and Z.  
  | 
|   | 
| Bool_t  | InitGeometrySpherical () | 
|   | Find bin ranges for X and Y axes, axes ranges for X, Y and Z.  
  | 
|   | 
| void  | InitGL () const | 
|   | Initialize some OpenGL state variables.  
  | 
|   | 
| Bool_t  | PreparePalette () const | 
|   | Generate palette.  
  | 
|   | 
| void  | SetNormals () | 
|   | One normal per vertex; this normal is average of neighbouring triangles normals.  
  | 
|   | 
| void  | SetSurfaceColor () const | 
|   | Set color for surface.  
  | 
|   | 
| Bool_t  | Textured () const | 
|   | Checks, if surf requires texture.  
  | 
|   | 
| char *  | WindowPointTo3DPoint (Int_t px, Int_t py) const | 
|   | Find 3d coords using mouse cursor coords.  
  | 
|   | 
#include <TGLSurfacePainter.h>
◆ ESurfaceType
◆ TGLSurfacePainter()
◆ AddOption()
  
  
      
        
          | void TGLSurfacePainter::AddOption  | 
          ( | 
          const TString &  | 
          stringOption | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ ClampZ()
  
  
      
        
          | void TGLSurfacePainter::ClampZ  | 
          ( | 
          Double_t &  | 
          zVal | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ Class()
  
  
      
        
          | static TClass * TGLSurfacePainter::Class  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
- Returns
 - TClass describing this class 
 
 
 
◆ Class_Name()
  
  
      
        
          | static const char * TGLSurfacePainter::Class_Name  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
- Returns
 - Name of this class 
 
 
 
◆ Class_Version()
  
  
      
        
          | static constexpr Version_t TGLSurfacePainter::Class_Version  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticconstexpr   | 
  
 
 
◆ DeclFileName()
  
  
      
        
          | static const char * TGLSurfacePainter::DeclFileName  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
◆ DeInitGL()
  
  
      
        
          | void TGLSurfacePainter::DeInitGL  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ DrawContoursProjection()
  
  
      
        
          | void TGLSurfacePainter::DrawContoursProjection  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ DrawPalette()
  
  
      
        
          | void TGLSurfacePainter::DrawPalette  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
Draw. 
Palette. Originally, fCamera was never null. It can be a null now because of gl-viewer. 
Definition at line 1236 of file TGLSurfacePainter.cxx.
 
 
◆ DrawPaletteAxis()
  
  
      
        
          | void TGLSurfacePainter::DrawPaletteAxis  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ DrawPlot()
  
  
      
        
          | void TGLSurfacePainter::DrawPlot  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ DrawProjections()
  
  
      
        
          | void TGLSurfacePainter::DrawProjections  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ DrawSectionXOY()
  
  
      
        
          | void TGLSurfacePainter::DrawSectionXOY  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ DrawSectionXOZ()
  
  
      
        
          | void TGLSurfacePainter::DrawSectionXOZ  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ DrawSectionYOZ()
  
  
      
        
          | void TGLSurfacePainter::DrawSectionYOZ  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ GenTexMap()
  
  
      
        
          | void TGLSurfacePainter::GenTexMap  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ GetPlotInfo()
  
  
      
        
          | char * TGLSurfacePainter::GetPlotInfo  | 
          ( | 
          Int_t  | 
          px,  | 
         
        
           | 
           | 
          Int_t  | 
          py  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
◆ HasProjections()
  
  
      
        
          | Bool_t TGLSurfacePainter::HasProjections  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ HasSections()
  
  
      
        
          | Bool_t TGLSurfacePainter::HasSections  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ InitGeometry()
  
  
      
        
          | Bool_t TGLSurfacePainter::InitGeometry  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ InitGeometryCartesian()
  
  
      
        
          | Bool_t TGLSurfacePainter::InitGeometryCartesian  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
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. 
Definition at line 492 of file TGLSurfacePainter.cxx.
 
 
◆ InitGeometryCylindrical()
  
  
      
        
          | Bool_t TGLSurfacePainter::InitGeometryCylindrical  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
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. 
Definition at line 627 of file TGLSurfacePainter.cxx.
 
 
◆ InitGeometryPolar()
  
  
      
        
          | Bool_t TGLSurfacePainter::InitGeometryPolar  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
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. 
Definition at line 560 of file TGLSurfacePainter.cxx.
 
 
◆ InitGeometrySpherical()
  
  
      
        
          | Bool_t TGLSurfacePainter::InitGeometrySpherical  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
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. 
Definition at line 700 of file TGLSurfacePainter.cxx.
 
 
◆ InitGL()
  
  
      
        
          | void TGLSurfacePainter::InitGL  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
privatevirtual   | 
  
 
 
◆ IsA()
  
  
      
        
          | virtual TClass * TGLSurfacePainter::IsA  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ Pan()
  
  
      
        
          | void TGLSurfacePainter::Pan  | 
          ( | 
          Int_t  | 
          px,  | 
         
        
           | 
           | 
          Int_t  | 
          py  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
◆ PreparePalette()
  
  
      
        
          | Bool_t TGLSurfacePainter::PreparePalette  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ ProcessEvent()
◆ SetNormals()
  
  
      
        
          | void TGLSurfacePainter::SetNormals  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
One normal per vertex; this normal is average of neighbouring triangles normals. 
Definition at line 261 of file TGLSurfacePainter.cxx.
 
 
◆ SetSurfaceColor()
  
  
      
        
          | void TGLSurfacePainter::SetSurfaceColor  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ StartPan()
  
  
      
        
          | void TGLSurfacePainter::StartPan  | 
          ( | 
          Int_t  | 
          px,  | 
         
        
           | 
           | 
          Int_t  | 
          py  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Streamer()
  
  
      
        
          | virtual void TGLSurfacePainter::Streamer  | 
          ( | 
          TBuffer &  | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ StreamerNVirtual()
  
  
      
        
          | void TGLSurfacePainter::StreamerNVirtual  | 
          ( | 
          TBuffer &  | 
          ClassDef_StreamerNVirtual_b | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ Textured()
  
  
      
        
          | Bool_t TGLSurfacePainter::Textured  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ WindowPointTo3DPoint()
  
  
      
        
          | char * TGLSurfacePainter::WindowPointTo3DPoint  | 
          ( | 
          Int_t  | 
          px,  | 
         
        
           | 
           | 
          Int_t  | 
          py  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
private   | 
  
 
 
◆ fAverageNormals
◆ fColorLevels
  
  
      
        
          | std::vector<Double_t> TGLSurfacePainter::fColorLevels | 
         
       
   | 
  
mutableprivate   | 
  
 
 
◆ fFaceNormals
◆ fgRandom
◆ fMesh
◆ fMinMaxVal
◆ fObjectInfo
  
  
      
        
          | TString TGLSurfacePainter::fObjectInfo | 
         
       
   | 
  
mutableprivate   | 
  
 
 
◆ fPalette
◆ fProj
◆ fSectionPass
  
  
      
        
          | Bool_t TGLSurfacePainter::fSectionPass | 
         
       
   | 
  
private   | 
  
 
 
◆ fTexMap
◆ fType
◆ fUpdateTexMap
  
  
      
        
          | Bool_t TGLSurfacePainter::fUpdateTexMap | 
         
       
   | 
  
mutableprivate   | 
  
 
 
◆ fXOYProj
◆ fXOZProj
◆ fYOZProj
The documentation for this class was generated from the following files: