Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
TGLPlotBox Class Reference

Implementation of a box around a histogram/function for plot-painters.

Definition at line 26 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...
 
Int_t FindFrontPoint () const
 Convert 3d points into window coordinate system and find the nearest. More...
 
const TGLVertex3Get2DBox () const
 Get 2D box. More...
 
const TGLVertex3Get3DBox () const
 Get 3D box. More...
 
Bool_t GetDrawBack () const
 
Bool_t GetDrawFront () const
 
Int_t GetFrontPoint () const
 The nearest point. More...
 
void SetDrawBack (Bool_t d)
 
void SetDrawFront (Bool_t d)
 
void SetFrameColor (const TColor *color)
 Back box color. 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...
 

Static Public Attributes

static const Int_t fgBackPairs [][2]
 
static const Int_t fgFramePlanes [][4]
 
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 DrawBackPlane (Int_t plane, Bool_t selectionPass, const std::vector< Double_t > &zLevels) const
 Draw back plane with number 'plane'. More...
 
void DrawFront () const
 

Private Attributes

TGLVertex3 f2DBox [8]
 
TGLVertex3 f2DBoxU [8]
 
TGLVertex3 f3DBox [8]
 
Bool_t fDrawBack
 
Bool_t fDrawFront
 
const TColorfFrameColor
 
Int_t fFrontPoint
 
Double_t fRangeXU
 
Double_t fRangeYU
 
Double_t fRangeZU
 
Bool_t fSelectablePairs [4][2]
 
const Bool_t fXOYSelectable
 
const Bool_t fXOZSelectable
 
const Bool_t fYOZSelectable
 

#include <TGLPlotBox.h>

Constructor & Destructor Documentation

◆ TGLPlotBox()

TGLPlotBox::TGLPlotBox ( Bool_t  xoy,
Bool_t  xoz,
Bool_t  yoz 
)

Constructor.

Front point is 0.

Definition at line 62 of file TGLPlotBox.cxx.

◆ ~TGLPlotBox()

TGLPlotBox::~TGLPlotBox ( )
virtual

Empty dtor to suppress g++ warnings.

Definition at line 92 of file TGLPlotBox.cxx.

Member Function Documentation

◆ DrawBack()

void TGLPlotBox::DrawBack ( Int_t  selectedPart,
Bool_t  selectionPass,
const std::vector< Double_t > &  zLevels,
Bool_t  highColor 
) const
private

Definition at line 98 of file TGLPlotBox.cxx.

◆ DrawBackPlane()

void TGLPlotBox::DrawBackPlane ( Int_t  plane,
Bool_t  selectionPass,
const std::vector< Double_t > &  zLevels 
) const
private

Draw back plane with number 'plane'.

Definition at line 321 of file TGLPlotBox.cxx.

◆ DrawBox()

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 184 of file TGLPlotBox.cxx.

◆ DrawFront()

void TGLPlotBox::DrawFront ( ) const
private

Definition at line 163 of file TGLPlotBox.cxx.

◆ FindFrontPoint()

Int_t TGLPlotBox::FindFrontPoint ( ) const

Convert 3d points into window coordinate system and find the nearest.

Definition at line 245 of file TGLPlotBox.cxx.

◆ Get2DBox()

const TGLVertex3 * TGLPlotBox::Get2DBox ( ) const

Get 2D box.

Definition at line 312 of file TGLPlotBox.cxx.

◆ Get3DBox()

const TGLVertex3 * TGLPlotBox::Get3DBox ( ) const

Get 3D box.

Definition at line 303 of file TGLPlotBox.cxx.

◆ GetDrawBack()

Bool_t TGLPlotBox::GetDrawBack ( ) const
inline

Definition at line 83 of file TGLPlotBox.h.

◆ GetDrawFront()

Bool_t TGLPlotBox::GetDrawFront ( ) const
inline

Definition at line 80 of file TGLPlotBox.h.

◆ GetFrontPoint()

Int_t TGLPlotBox::GetFrontPoint ( ) const

The nearest point.

Definition at line 294 of file TGLPlotBox.cxx.

◆ SetDrawBack()

void TGLPlotBox::SetDrawBack ( Bool_t  d)
inline

Definition at line 82 of file TGLPlotBox.h.

◆ SetDrawFront()

void TGLPlotBox::SetDrawFront ( Bool_t  d)
inline

Definition at line 79 of file TGLPlotBox.h.

◆ SetFrameColor()

void TGLPlotBox::SetFrameColor ( const TColor color)

Back box color.

Definition at line 226 of file TGLPlotBox.cxx.

◆ SetPlotBox() [1/2]

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 198 of file TGLPlotBox.cxx.

◆ SetPlotBox() [2/2]

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 213 of file TGLPlotBox.cxx.

Member Data Documentation

◆ f2DBox

TGLVertex3 TGLPlotBox::f2DBox[8]
mutableprivate

Definition at line 36 of file TGLPlotBox.h.

◆ f2DBoxU

TGLVertex3 TGLPlotBox::f2DBoxU[8]
mutableprivate

Definition at line 37 of file TGLPlotBox.h.

◆ f3DBox

TGLVertex3 TGLPlotBox::f3DBox[8]
private

Definition at line 35 of file TGLPlotBox.h.

◆ fDrawBack

Bool_t TGLPlotBox::fDrawBack
private

Definition at line 45 of file TGLPlotBox.h.

◆ fDrawFront

Bool_t TGLPlotBox::fDrawFront
private

Definition at line 46 of file TGLPlotBox.h.

◆ fFrameColor

const TColor* TGLPlotBox::fFrameColor
private

Definition at line 28 of file TGLPlotBox.h.

◆ fFrontPoint

Int_t TGLPlotBox::fFrontPoint
mutableprivate

Definition at line 38 of file TGLPlotBox.h.

◆ fgBackPairs

const Int_t TGLPlotBox::fgBackPairs
static
Initial value:
=
{
{2, 1},
{3, 2},
{0, 3},
{1, 0}
}

Definition at line 75 of file TGLPlotBox.h.

◆ fgFramePlanes

const Int_t TGLPlotBox::fgFramePlanes
static
Initial value:
=
{
{0, 4, 5, 1},
{1, 5, 6, 2},
{2, 6, 7, 3},
{0, 3, 7, 4},
{0, 1, 2, 3}
}

Definition at line 74 of file TGLPlotBox.h.

◆ fgFrontPairs

const Int_t TGLPlotBox::fgFrontPairs
static
Initial value:
=
{
{3, 0},
{0, 1},
{1, 2},
{2, 3}
}

Definition at line 76 of file TGLPlotBox.h.

◆ fgNormals

const Double_t TGLPlotBox::fgNormals
static
Initial value:
=
{
{ 0., 1., 0.},
{-1., 0., 0.},
{ 0.,-1., 0.},
{ 1., 0., 0.},
{ 0., 0., 1.}
}

Definition at line 77 of file TGLPlotBox.h.

◆ fRangeXU

Double_t TGLPlotBox::fRangeXU
private

Definition at line 41 of file TGLPlotBox.h.

◆ fRangeYU

Double_t TGLPlotBox::fRangeYU
private

Definition at line 42 of file TGLPlotBox.h.

◆ fRangeZU

Double_t TGLPlotBox::fRangeZU
private

Definition at line 43 of file TGLPlotBox.h.

◆ fSelectablePairs

Bool_t TGLPlotBox::fSelectablePairs[4][2]
private

Definition at line 33 of file TGLPlotBox.h.

◆ fXOYSelectable

const Bool_t TGLPlotBox::fXOYSelectable
private

Definition at line 29 of file TGLPlotBox.h.

◆ fXOZSelectable

const Bool_t TGLPlotBox::fXOZSelectable
private

Definition at line 30 of file TGLPlotBox.h.

◆ fYOZSelectable

const Bool_t TGLPlotBox::fYOZSelectable
private

Definition at line 31 of file TGLPlotBox.h.

Libraries for TGLPlotBox:
[legend]

The documentation for this class was generated from the following files: