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.
|
| Bool_t | CutAxisSelected () const |
| Bool_t | GetDrawAxes () |
| char * | GetPlotInfo (Int_t px, Int_t py) override |
| | Coords for point on surface under cursor.
|
| Bool_t | InitGeometry () override |
| | Set mesh, normals.
|
| void | InvalidateSelection () |
| | Selection must be updated.
|
| TClass * | IsA () const override |
| void | Paint () override |
| | Draw lego/surf/whatever you can.
|
| void | Pan (Int_t px, Int_t py) override |
| | User's moving mouse cursor, with middle mouse button pressed (for pad).
|
| Bool_t | PlotSelected (Int_t px, Int_t py) override |
| | Read color buffer content to find selected object.
|
| void | ProcessEvent (Int_t event, Int_t px, Int_t py) override |
| | Remove all profiles/sections.
|
| 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 | 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) |
|
| 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>
◆ ECutAxisID
◆ ESelectionBase
| Enumerator |
|---|
| kHighColorSelectionBase | |
| kTrueColorSelectionBase | |
Definition at line 213 of file TGLPlotPainter.h.
◆ ESurfaceType
◆ TGLSurfacePainter()
◆ AddOption()
| void TGLSurfacePainter::AddOption |
( |
const TString & | stringOption | ) |
|
|
overridevirtual |
◆ ClampZ()
| void TGLSurfacePainter::ClampZ |
( |
Double_t & | zVal | ) |
const |
|
private |
◆ Class()
| TClass * TGLSurfacePainter::Class |
( |
| ) |
|
|
static |
- Returns
- TClass describing this class
◆ Class_Name()
| const char * TGLSurfacePainter::Class_Name |
( |
| ) |
|
|
static |
- Returns
- Name of this class
◆ Class_Version()
| constexpr Version_t TGLSurfacePainter::Class_Version |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ ClearBuffers()
| void TGLPlotPainter::ClearBuffers |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ CutAxisSelected()
| Bool_t TGLPlotPainter::CutAxisSelected |
( |
| ) |
const |
|
inlineinherited |
◆ DeclFileName()
| 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 1231 of file TGLSurfacePainter.cxx.
◆ DrawPaletteAxis()
| void TGLSurfacePainter::DrawPaletteAxis |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawPlot()
| void TGLSurfacePainter::DrawPlot |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawProjections()
| void TGLSurfacePainter::DrawProjections |
( |
| ) |
const |
|
private |
◆ DrawSections()
| void TGLPlotPainter::DrawSections |
( |
| ) |
const |
|
protectedinherited |
◆ DrawSectionXOY()
| void TGLSurfacePainter::DrawSectionXOY |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawSectionXOZ()
| void TGLSurfacePainter::DrawSectionXOZ |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ DrawSectionYOZ()
| void TGLSurfacePainter::DrawSectionYOZ |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ GenTexMap()
| void TGLSurfacePainter::GenTexMap |
( |
| ) |
const |
|
private |
◆ GetDrawAxes()
| Bool_t TGLPlotPainter::GetDrawAxes |
( |
| ) |
|
|
inlineinherited |
◆ GetPadColor()
| const TColor * TGLPlotPainter::GetPadColor |
( |
| ) |
const |
|
protectedinherited |
◆ 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 490 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 625 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 558 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 698 of file TGLSurfacePainter.cxx.
◆ InitGL()
| void TGLSurfacePainter::InitGL |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ InvalidateSelection()
| void TGLPlotPainter::InvalidateSelection |
( |
| ) |
|
|
inherited |
◆ IsA()
| TClass * TGLSurfacePainter::IsA |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ MoveSection()
| void TGLPlotPainter::MoveSection |
( |
Int_t | px, |
|
|
Int_t | py ) |
|
protectedinherited |
◆ Paint()
| void TGLPlotPainter::Paint |
( |
| ) |
|
|
overridevirtualinherited |
◆ Pan()
| void TGLSurfacePainter::Pan |
( |
Int_t | px, |
|
|
Int_t | py ) |
|
overridevirtual |
◆ PlotSelected()
◆ PreparePalette()
| Bool_t TGLSurfacePainter::PreparePalette |
( |
| ) |
const |
|
private |
◆ PrintPlot()
| void TGLPlotPainter::PrintPlot |
( |
| ) |
const |
|
protectedinherited |
◆ ProcessEvent()
◆ RefBackBox()
| const TGLPlotBox & TGLPlotPainter::RefBackBox |
( |
| ) |
const |
|
inlineinherited |
◆ RestoreModelviewMatrix()
| void TGLPlotPainter::RestoreModelviewMatrix |
( |
| ) |
const |
|
protectedinherited |
◆ RestoreProjectionMatrix()
| void TGLPlotPainter::RestoreProjectionMatrix |
( |
| ) |
const |
|
protectedinherited |
◆ SaveModelviewMatrix()
| void TGLPlotPainter::SaveModelviewMatrix |
( |
| ) |
const |
|
protectedinherited |
◆ SaveProjectionMatrix()
| void TGLPlotPainter::SaveProjectionMatrix |
( |
| ) |
const |
|
protectedinherited |
◆ SetDrawAxes()
| void TGLPlotPainter::SetDrawAxes |
( |
Bool_t | s | ) |
|
|
inlineinherited |
◆ SetDrawBackBox()
| void TGLPlotPainter::SetDrawBackBox |
( |
Bool_t | b | ) |
|
|
inlineinherited |
◆ SetDrawFrontBox()
| void TGLPlotPainter::SetDrawFrontBox |
( |
Bool_t | b | ) |
|
|
inlineinherited |
◆ SetFrameColor()
| void TGLPlotPainter::SetFrameColor |
( |
const TColor * | frameColor | ) |
|
|
virtualinherited |
◆ SetNormals()
| void TGLSurfacePainter::SetNormals |
( |
| ) |
|
|
private |
One normal per vertex; this normal is average of neighbouring triangles normals.
Definition at line 259 of file TGLSurfacePainter.cxx.
◆ SetPadColor()
| void TGLPlotPainter::SetPadColor |
( |
const TColor * | color | ) |
|
|
inherited |
◆ SetPhysicalShapeColor()
| void TGLPlotPainter::SetPhysicalShapeColor |
( |
const Float_t * | rgba | ) |
|
|
inlineinherited |
◆ 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
◆ fBackBox
◆ fBoxCut
◆ fCamera
◆ fColorLevels
| std::vector<Double_t> TGLSurfacePainter::fColorLevels |
|
mutableprivate |
◆ fCoord
◆ fDrawAxes
| Bool_t TGLPlotPainter::fDrawAxes |
|
protectedinherited |
◆ fDrawPalette
| Bool_t TGLPlotPainter::fDrawPalette |
|
mutableprotectedinherited |
◆ fFaceNormals
◆ fgRandom
◆ fHighColor
| Bool_t TGLPlotPainter::fHighColor |
|
protectedinherited |
◆ fHist
| TH1* TGLPlotPainter::fHist |
|
protectedinherited |
◆ fMesh
◆ fMinMaxVal
◆ fMousePosition
| TPoint TGLPlotPainter::fMousePosition |
|
protectedinherited |
◆ fObjectInfo
| TString TGLSurfacePainter::fObjectInfo |
|
mutableprivate |
◆ fPadColor
| const TColor* TGLPlotPainter::fPadColor |
|
privateinherited |
◆ fPadPhi
◆ fPadTheta
◆ fPalette
◆ fPhysicalShapeColor
| const Float_t* TGLPlotPainter::fPhysicalShapeColor |
|
protectedinherited |
◆ fProj
◆ fSectionPass
| Bool_t TGLSurfacePainter::fSectionPass |
|
private |
◆ fSelectedPart
| Int_t TGLPlotPainter::fSelectedPart |
|
protectedinherited |
◆ fSelection
◆ fSelectionBase
| Int_t TGLPlotPainter::fSelectionBase |
|
protectedinherited |
◆ fSelectionPass
| Bool_t TGLPlotPainter::fSelectionPass |
|
protectedinherited |
◆ fTexMap
◆ fType
◆ fUpdateSelection
| Bool_t TGLPlotPainter::fUpdateSelection |
|
protectedinherited |
◆ fUpdateTexMap
| Bool_t TGLSurfacePainter::fUpdateTexMap |
|
mutableprivate |
◆ fXAxis
| TAxis* TGLPlotPainter::fXAxis |
|
protectedinherited |
◆ fXOYProj
◆ fXOYSectionPos
|
|
mutableprotectedinherited |
◆ fXOZProj
◆ fXOZSectionPos
|
|
mutableprotectedinherited |
◆ fYAxis
| TAxis* TGLPlotPainter::fYAxis |
|
protectedinherited |
◆ fYOZProj
◆ fYOZSectionPos
|
|
mutableprotectedinherited |
◆ fZAxis
| TAxis* TGLPlotPainter::fZAxis |
|
protectedinherited |
◆ fZLevels
| std::vector<Double_t> TGLPlotPainter::fZLevels |
|
protectedinherited |
The documentation for this class was generated from the following files: