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) override |
| Additional options for surfaces.
|
|
char * | GetPlotInfo (Int_t px, Int_t py) override |
| Coords for point on surface under cursor.
|
|
Bool_t | InitGeometry () override |
| Set mesh, normals.
|
|
TClass * | IsA () const override |
|
void | Pan (Int_t px, Int_t py) override |
| User's moving mouse cursor, with middle mouse button pressed (for pad).
|
|
void | ProcessEvent (Int_t event, Int_t px, Int_t py) override |
| Remove all profiles/sections.
|
|
void | StartPan (Int_t px, Int_t py) override |
| User clicks right mouse button (in a pad).
|
|
void | Streamer (TBuffer &) override |
|
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.
|
|
void | Paint () override |
| Draw lego/surf/whatever you can.
|
|
Bool_t | PlotSelected (Int_t px, Int_t py) override |
| 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 override |
| Initialize some OpenGL state variables.
|
|
void | DrawContoursProjection () const |
| Draw flat textured surface.
|
|
void | DrawPalette () const |
| Draw.
|
|
void | DrawPaletteAxis () const override |
| Draw. Palette. Axis.
|
|
void | DrawPlot () const override |
| Draw surf/surf1/surf2/surf4.
|
|
void | DrawProjections () const |
| Draw projections.
|
|
void | DrawSectionXOY () const override |
| Draw section Z.
|
|
void | DrawSectionXOZ () const override |
| Draw section X.
|
|
void | DrawSectionYOZ () const override |
| 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 override |
| 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 | ) |
|
|
overridevirtual |
◆ 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 |
|
overrideprivatevirtual |
◆ 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 1232 of file TGLSurfacePainter.cxx.
◆ DrawPaletteAxis()
void TGLSurfacePainter::DrawPaletteAxis |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawPlot()
void TGLSurfacePainter::DrawPlot |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawProjections()
void TGLSurfacePainter::DrawProjections |
( |
| ) |
const |
|
private |
◆ DrawSectionXOY()
void TGLSurfacePainter::DrawSectionXOY |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawSectionXOZ()
void TGLSurfacePainter::DrawSectionXOZ |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawSectionYOZ()
void TGLSurfacePainter::DrawSectionYOZ |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ GenTexMap()
void TGLSurfacePainter::GenTexMap |
( |
| ) |
const |
|
private |
◆ GetPlotInfo()
char * TGLSurfacePainter::GetPlotInfo |
( |
Int_t |
px, |
|
|
Int_t |
py |
|
) |
| |
|
overridevirtual |
◆ HasProjections()
Bool_t TGLSurfacePainter::HasProjections |
( |
| ) |
const |
|
private |
◆ HasSections()
Bool_t TGLSurfacePainter::HasSections |
( |
| ) |
const |
|
private |
◆ InitGeometry()
Bool_t TGLSurfacePainter::InitGeometry |
( |
| ) |
|
|
overridevirtual |
◆ 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 491 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 626 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 559 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 699 of file TGLSurfacePainter.cxx.
◆ InitGL()
void TGLSurfacePainter::InitGL |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ IsA()
TClass * TGLSurfacePainter::IsA |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Pan()
void TGLSurfacePainter::Pan |
( |
Int_t |
px, |
|
|
Int_t |
py |
|
) |
| |
|
overridevirtual |
◆ 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 260 of file TGLSurfacePainter.cxx.
◆ SetSurfaceColor()
void TGLSurfacePainter::SetSurfaceColor |
( |
| ) |
const |
|
private |
◆ StartPan()
void TGLSurfacePainter::StartPan |
( |
Int_t |
px, |
|
|
Int_t |
py |
|
) |
| |
|
overridevirtual |
◆ Streamer()
void TGLSurfacePainter::Streamer |
( |
TBuffer & |
| ) |
|
|
overridevirtual |
◆ 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: