ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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 TGLVertex3Get3DBox () const
 Get 3D box. More...
 
const TGLVertex3Get2DBox () 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 TColorfFrameColor
 
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>

Constructor & Destructor Documentation

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

Constructor.

Front point is 0.

Definition at line 61 of file TGLPlotBox.cxx.

TGLPlotBox::~TGLPlotBox ( )
virtual

Empty dtor to suppress g++ warnings.

Definition at line 91 of file TGLPlotBox.cxx.

Member Function Documentation

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

Definition at line 97 of file TGLPlotBox.cxx.

Referenced by DrawBox().

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 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
void TGLPlotBox::DrawFront ( ) const
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
const TGLVertex3 * TGLPlotBox::Get3DBox ( ) const
Bool_t TGLPlotBox::GetDrawBack ( ) const
inline

Definition at line 87 of file TGLPlotBox.h.

Bool_t TGLPlotBox::GetDrawFront ( ) const
inline

Definition at line 84 of file TGLPlotBox.h.

Int_t TGLPlotBox::GetFrontPoint ( ) const
void TGLPlotBox::SetDrawBack ( Bool_t  d)
inline

Definition at line 86 of file TGLPlotBox.h.

Referenced by TGLPlotPainter::SetDrawBackBox().

void TGLPlotBox::SetDrawFront ( Bool_t  d)
inline

Definition at line 83 of file TGLPlotBox.h.

Referenced by TGLPlotPainter::SetDrawFrontBox().

void TGLPlotBox::SetFrameColor ( const TColor color)

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 
)
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.

Member Data Documentation

TGLVertex3 TGLPlotBox::f2DBox[8]
mutableprivate

Definition at line 40 of file TGLPlotBox.h.

Referenced by FindFrontPoint().

TGLVertex3 TGLPlotBox::f2DBoxU[8]
mutableprivate

Definition at line 41 of file TGLPlotBox.h.

Referenced by FindFrontPoint(), and Get2DBox().

TGLVertex3 TGLPlotBox::f3DBox[8]
private

Definition at line 39 of file TGLPlotBox.h.

Referenced by DrawBack(), DrawBackPlane(), DrawFront(), FindFrontPoint(), Get3DBox(), and SetPlotBox().

Bool_t TGLPlotBox::fDrawBack
private

Definition at line 49 of file TGLPlotBox.h.

Referenced by DrawBox(), GetDrawBack(), and SetDrawBack().

Bool_t TGLPlotBox::fDrawFront
private

Definition at line 50 of file TGLPlotBox.h.

Referenced by DrawBox(), GetDrawFront(), and SetDrawFront().

const TColor* TGLPlotBox::fFrameColor
private

Definition at line 32 of file TGLPlotBox.h.

Referenced by DrawBack(), and SetFrameColor().

Int_t TGLPlotBox::fFrontPoint
mutableprivate

Definition at line 42 of file TGLPlotBox.h.

Referenced by DrawBack(), DrawFront(), FindFrontPoint(), and GetFrontPoint().

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

Definition at line 79 of file TGLPlotBox.h.

Referenced by DrawBack().

const Int_t TGLPlotBox::fgFramePlanes[][4]
static

Definition at line 78 of file TGLPlotBox.h.

Referenced by DrawBackPlane(), and DrawFront().

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

Definition at line 80 of file TGLPlotBox.h.

Referenced by DrawFront().

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 81 of file TGLPlotBox.h.

Referenced by DrawBackPlane().

Double_t TGLPlotBox::fRangeXU
private

Definition at line 45 of file TGLPlotBox.h.

Referenced by FindFrontPoint(), and SetPlotBox().

Double_t TGLPlotBox::fRangeYU
private

Definition at line 46 of file TGLPlotBox.h.

Referenced by FindFrontPoint(), and SetPlotBox().

Double_t TGLPlotBox::fRangeZU
private

Definition at line 47 of file TGLPlotBox.h.

Referenced by SetPlotBox().

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

Definition at line 37 of file TGLPlotBox.h.

Referenced by DrawBack(), and TGLPlotBox().

const Bool_t TGLPlotBox::fXOYSelectable
private

Definition at line 33 of file TGLPlotBox.h.

Referenced by DrawBack().

const Bool_t TGLPlotBox::fXOZSelectable
private

Definition at line 34 of file TGLPlotBox.h.

const Bool_t TGLPlotBox::fYOZSelectable
private

Definition at line 35 of file TGLPlotBox.h.

Collaboration diagram for TGLPlotBox:
[legend]

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