ROOT
6.07/01
Reference Guide
|
Implementation of a box around a histogram/function for plot-painters.
Definition at line 30 of file TGLPlotBox.h.
Public Member Functions | |
TGLPlotBox (Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable) | |
Constructor. More... | |
virtual | ~TGLPlotBox () |
Empty dtor to suppress g++ warnings. More... | |
void | DrawBox (Int_t selectedPart, Bool_t selectionPass, const std::vector< Double_t > &zLevels, Bool_t highColor) const |
Draw back box for a plot. More... | |
void | SetPlotBox (const Rgl::Range_t &xRange, const Rgl::Range_t &yRange, const Rgl::Range_t &zRange) |
Set up a frame box. More... | |
void | SetPlotBox (const Rgl::Range_t &xRange, Double_t rangeXU, const Rgl::Range_t &yRange, Double_t rangeYU, const Rgl::Range_t &zRange, Double_t rangeZU) |
Set up a frame box. More... | |
void | SetFrameColor (const TColor *color) |
Back box color. More... | |
Int_t | FindFrontPoint () const |
Convert 3d points into window coordinate system and find the nearest. More... | |
Int_t | GetFrontPoint () const |
The nearest point. More... | |
const TGLVertex3 * | Get3DBox () const |
Get 3D box. More... | |
const TGLVertex3 * | Get2DBox () const |
Get 2D box. More... | |
void | SetDrawFront (Bool_t d) |
Bool_t | GetDrawFront () const |
void | SetDrawBack (Bool_t d) |
Bool_t | GetDrawBack () const |
Static Public Attributes | |
static const Int_t | fgFramePlanes [][4] |
static const Int_t | fgBackPairs [][2] |
static const Int_t | fgFrontPairs [][2] |
static const Double_t | fgNormals [][3] |
Private Member Functions | |
void | DrawBack (Int_t selectedPart, Bool_t selectionPass, const std::vector< Double_t > &zLevels, Bool_t highColor) const |
void | DrawFront () const |
void | DrawBackPlane (Int_t plane, Bool_t selectionPass, const std::vector< Double_t > &zLevels) const |
Draw back plane with number 'plane'. More... | |
Private Attributes | |
const TColor * | fFrameColor |
const Bool_t | fXOYSelectable |
const Bool_t | fXOZSelectable |
const Bool_t | fYOZSelectable |
Bool_t | fSelectablePairs [4][2] |
TGLVertex3 | f3DBox [8] |
TGLVertex3 | f2DBox [8] |
TGLVertex3 | f2DBoxU [8] |
Int_t | fFrontPoint |
Double_t | fRangeXU |
Double_t | fRangeYU |
Double_t | fRangeZU |
Bool_t | fDrawBack |
Bool_t | fDrawFront |
#include <TGLPlotBox.h>
|
virtual |
Empty dtor to suppress g++ warnings.
Definition at line 91 of file TGLPlotBox.cxx.
|
private |
Definition at line 97 of file TGLPlotBox.cxx.
Referenced by DrawBox().
|
private |
Draw back plane with number 'plane'.
Definition at line 320 of file TGLPlotBox.cxx.
Referenced by DrawBack().
void TGLPlotBox::DrawBox | ( | Int_t | selectedPart, |
Bool_t | selectionPass, | ||
const std::vector< Double_t > & | zLevels, | ||
Bool_t | highColor | ||
) | const |
Draw back box for a plot.
Definition at line 183 of file TGLPlotBox.cxx.
Referenced by TGLBoxPainter::DrawCloud(), TGLLegoPainter::DrawLegoCartesian(), TGLH2PolyPainter::DrawPlot(), TGLVoxelPainter::DrawPlot(), TGLTF3Painter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGL5DPainter::DrawPlot(), and TGLIsoPainter::DrawPlot().
|
private |
Definition at line 162 of file TGLPlotBox.cxx.
Referenced by DrawBox().
Int_t TGLPlotBox::FindFrontPoint | ( | ) | const |
Convert 3d points into window coordinate system and find the nearest.
Definition at line 244 of file TGLPlotBox.cxx.
Referenced by TF2GL::DirectDraw(), TGLParametricEquationGL::DirectDraw(), TH2GL::DirectDraw(), TH3GL::DirectDraw(), and TGLPlotPainter::Paint().
const TGLVertex3 * TGLPlotBox::Get2DBox | ( | ) | const |
Get 2D box.
Definition at line 311 of file TGLPlotBox.cxx.
Referenced by TGLVoxelPainter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), and TGLPlotPainter::Paint().
const TGLVertex3 * TGLPlotBox::Get3DBox | ( | ) | const |
Get 3D box.
Definition at line 302 of file TGLPlotBox.cxx.
Referenced by TGLH2PolyPainter::ClampZ(), TGLLegoPainter::ClampZ(), TGLSurfacePainter::ClampZ(), TGLBoxPainter::DrawCloud(), TGLSurfacePainter::DrawContoursProjection(), TGLLegoPainter::DrawLegoCartesian(), TGLBoxPainter::DrawPalette(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::DrawSections(), TGLTH3Slice::DrawSliceFrame(), TGLTF3Painter::HasSections(), TGLBoxPainter::HasSections(), TGLSurfacePainter::HasSections(), TGLIsoPainter::HasSections(), TGLH2PolyPainter::InitGeometry(), TGLVoxelPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLLegoPainter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLSurfacePainter::InitGeometry(), TGLTH3CompositionPainter::InitGeometry(), TGL5DPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLIsoPainter::InitGeometry(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCylindrical(), TGLLegoPainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometrySpherical(), TGLPlotPainter::MoveSection(), Rgl::PlotTranslation::PlotTranslation(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLBoxPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TGL5DPainter::ResetGeometryRanges(), TF2GL::SetBBox(), TGLParametricEquationGL::SetBBox(), TH2GL::SetBBox(), and TH3GL::SetBBox().
|
inline |
Definition at line 87 of file TGLPlotBox.h.
|
inline |
Definition at line 84 of file TGLPlotBox.h.
Int_t TGLPlotBox::GetFrontPoint | ( | ) | const |
The nearest point.
Definition at line 293 of file TGLPlotBox.cxx.
Referenced by TGLLegoPainter::DrawLegoCartesian(), TGLVoxelPainter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::MoveSection(), and TGLPlotPainter::Paint().
Definition at line 86 of file TGLPlotBox.h.
Referenced by TGLPlotPainter::SetDrawBackBox().
Definition at line 83 of file TGLPlotBox.h.
Referenced by TGLPlotPainter::SetDrawFrontBox().
Back box color.
Definition at line 225 of file TGLPlotBox.cxx.
Referenced by TGLPlotPainter::SetFrameColor().
void TGLPlotBox::SetPlotBox | ( | const Rgl::Range_t & | xRange, |
const Rgl::Range_t & | yRange, | ||
const Rgl::Range_t & | zRange | ||
) |
Set up a frame box.
Definition at line 197 of file TGLPlotBox.cxx.
Referenced by TGLH2PolyPainter::InitGeometry(), TGLVoxelPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLTH3CompositionPainter::InitGeometry(), TGL5DPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLIsoPainter::InitGeometry(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCartesian(), TGLLegoPainter::InitGeometryCylindrical(), TGLSurfacePainter::InitGeometryCylindrical(), TGLLegoPainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometryPolar(), TGLLegoPainter::InitGeometrySpherical(), TGLSurfacePainter::InitGeometrySpherical(), TGL5DPainter::ResetGeometryRanges(), and SetPlotBox().
void TGLPlotBox::SetPlotBox | ( | const Rgl::Range_t & | xRange, |
Double_t | rangeXU, | ||
const Rgl::Range_t & | yRange, | ||
Double_t | rangeYU, | ||
const Rgl::Range_t & | zRange, | ||
Double_t | rangeZU | ||
) |
Set up a frame box.
Definition at line 212 of file TGLPlotBox.cxx.
|
mutableprivate |
Definition at line 40 of file TGLPlotBox.h.
Referenced by FindFrontPoint().
|
mutableprivate |
Definition at line 41 of file TGLPlotBox.h.
Referenced by FindFrontPoint(), and Get2DBox().
|
private |
Definition at line 39 of file TGLPlotBox.h.
Referenced by DrawBack(), DrawBackPlane(), DrawFront(), FindFrontPoint(), Get3DBox(), and SetPlotBox().
|
private |
Definition at line 49 of file TGLPlotBox.h.
Referenced by DrawBox(), GetDrawBack(), and SetDrawBack().
|
private |
Definition at line 50 of file TGLPlotBox.h.
Referenced by DrawBox(), GetDrawFront(), and SetDrawFront().
|
private |
Definition at line 32 of file TGLPlotBox.h.
Referenced by DrawBack(), and SetFrameColor().
|
mutableprivate |
Definition at line 42 of file TGLPlotBox.h.
Referenced by DrawBack(), DrawFront(), FindFrontPoint(), and GetFrontPoint().
|
static |
Definition at line 79 of file TGLPlotBox.h.
Referenced by DrawBack().
|
static |
Definition at line 78 of file TGLPlotBox.h.
Referenced by DrawBackPlane(), and DrawFront().
|
static |
Definition at line 80 of file TGLPlotBox.h.
Referenced by DrawFront().
|
static |
Definition at line 81 of file TGLPlotBox.h.
Referenced by DrawBackPlane().
|
private |
Definition at line 45 of file TGLPlotBox.h.
Referenced by FindFrontPoint(), and SetPlotBox().
|
private |
Definition at line 46 of file TGLPlotBox.h.
Referenced by FindFrontPoint(), and SetPlotBox().
|
private |
Definition at line 47 of file TGLPlotBox.h.
Referenced by SetPlotBox().
|
private |
Definition at line 37 of file TGLPlotBox.h.
Referenced by DrawBack(), and TGLPlotBox().
|
private |
Definition at line 33 of file TGLPlotBox.h.
Referenced by DrawBack().
|
private |
Definition at line 34 of file TGLPlotBox.h.
|
private |
Definition at line 35 of file TGLPlotBox.h.