TGLPlotBox Class Reference

#include <TGLPlotBox.h>

List of all members.

Public Member Functions

 TGLPlotBox (Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
virtual ~TGLPlotBox ()
void DrawBox (Int_t selectedPart, Bool_t selectionPass, const std::vector< Double_t > &zLevels, Bool_t highColor) const
void SetPlotBox (const Rgl::Range_t &xRange, const Rgl::Range_t &yRange, const Rgl::Range_t &zRange)
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)
void SetFrameColor (const TColor *color)
Int_t FindFrontPoint () const
Int_t GetFrontPoint () const
const TGLVertex3Get3DBox () const
const TGLVertex3Get2DBox () const
 TGLPlotBox (Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
virtual ~TGLPlotBox ()
void DrawBox (Int_t selectedPart, Bool_t selectionPass, const std::vector< Double_t > &zLevels, Bool_t highColor) const
void SetPlotBox (const Rgl::Range_t &xRange, const Rgl::Range_t &yRange, const Rgl::Range_t &zRange)
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)
void SetFrameColor (const TColor *color)
Int_t FindFrontPoint () const
Int_t GetFrontPoint () const
const TGLVertex3Get3DBox () const
const TGLVertex3Get2DBox () const

Static Public Attributes

static const Int_t fgFramePlanes [][4]
static const Int_t fgBackPairs [][2]
static const Double_t fgNormals [][3]

Private Member Functions

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

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
const TColorfFrameColor


Detailed Description

Definition at line 30 of file TGLPlotBox.h.


Constructor & Destructor Documentation

TGLPlotBox::TGLPlotBox ( Bool_t  xoySelectable,
Bool_t  xozSelectable,
Bool_t  yozSelectable 
)

Definition at line 51 of file TGLPlotBox.cxx.

References fSelectablePairs.

TGLPlotBox::~TGLPlotBox (  )  [virtual]

Definition at line 79 of file TGLPlotBox.cxx.

TGLPlotBox::TGLPlotBox ( Bool_t  xoySelectable,
Bool_t  xozSelectable,
Bool_t  yozSelectable 
)

virtual TGLPlotBox::~TGLPlotBox (  )  [virtual]


Member Function Documentation

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

Definition at line 86 of file TGLPlotBox.cxx.

References DrawBackPlane(), Rgl::DrawQuadFilled(), f3DBox, fFrameColor, fFrontPoint, fgBackPairs, fSelectablePairs, fXOYSelectable, TColor::GetRGB(), Rgl::gGreenEmission, GL_BLEND, GL_DEPTH_TEST, GL_DIFFUSE, GL_EMISSION, GL_FALSE, GL_FRONT, GL_FRONT_AND_BACK, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_NICEST, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_TRUE, glBlendFunc(), glDepthMask(), glDisable(), glEnable(), glHint(), glMaterialfv(), Rgl::gNullEmission, Rgl::gRedEmission, and Rgl::ObjectIDToColor().

Referenced by TGLLegoPainter::DrawLegoCartesian(), TGLTF3Painter::DrawPlot(), TGLH2PolyPainter::DrawPlot(), TGL5DPainter::DrawPlot(), TGLIsoPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLBoxPainter::DrawPlot(), and TGLTH3CompositionPainter::DrawPlot().

void TGLPlotBox::SetPlotBox ( const Rgl::Range_t xRange,
const Rgl::Range_t yRange,
const Rgl::Range_t zRange 
)

Definition at line 155 of file TGLPlotBox.cxx.

References f3DBox, and TGLVertex3::Set().

Referenced by TGLIsoPainter::InitGeometry(), TGLTH3CompositionPainter::InitGeometry(), TGL5DPainter::InitGeometry(), TGLH2PolyPainter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLSurfacePainter::InitGeometryCartesian(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCylindrical(), TGLLegoPainter::InitGeometryCylindrical(), TGLSurfacePainter::InitGeometryPolar(), TGLLegoPainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometrySpherical(), TGLLegoPainter::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 
)

Definition at line 170 of file TGLPlotBox.cxx.

References fRangeXU, fRangeYU, fRangeZU, and SetPlotBox().

void TGLPlotBox::SetFrameColor ( const TColor color  ) 

Definition at line 182 of file TGLPlotBox.cxx.

References fFrameColor.

Referenced by TGLPlotPainter::SetFrameColor().

Int_t TGLPlotBox::FindFrontPoint (  )  const

Definition at line 200 of file TGLPlotBox.cxx.

References f2DBox, f2DBoxU, f3DBox, fFrontPoint, fRangeXU, fRangeYU, GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX, GL_VIEWPORT, glGetDoublev(), glGetIntegerv(), i, X, Y, TGLVertex3::Z(), and Z.

Referenced by TF2GL::DirectDraw(), TGLParametricEquationGL::DirectDraw(), TH3GL::DirectDraw(), TH2GL::DirectDraw(), and TGLPlotPainter::Paint().

Int_t TGLPlotBox::GetFrontPoint (  )  const

Definition at line 240 of file TGLPlotBox.cxx.

References fFrontPoint.

Referenced by TGLBoxCut::DrawBox(), TGLLegoPainter::DrawLegoCartesian(), TGLSurfacePainter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::MoveSection(), TGLPlotPainter::Paint(), and TGLBoxCut::ResetBoxGeometry().

const TGLVertex3 * TGLPlotBox::Get3DBox (  )  const

Definition at line 249 of file TGLPlotBox.cxx.

References f3DBox.

Referenced by TGLBoxCut::AdjustBox(), TGLH2PolyPainter::ClampZ(), TGLLegoPainter::ClampZ(), TGLSurfacePainter::ClampZ(), TGLSurfacePainter::DrawContoursProjection(), TGLLegoPainter::DrawLegoCartesian(), TGLBoxPainter::DrawPalette(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::DrawSections(), TGLTH3Slice::DrawSliceFrame(), TGLTF3Painter::HasSections(), TGLSurfacePainter::HasSections(), TGLIsoPainter::HasSections(), TGLBoxPainter::HasSections(), TGLIsoPainter::InitGeometry(), TGLTH3CompositionPainter::InitGeometry(), TGLLegoPainter::InitGeometry(), TGLSurfacePainter::InitGeometry(), TGLH2PolyPainter::InitGeometry(), TGL5DPainter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLSurfacePainter::InitGeometryCartesian(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCylindrical(), TGLSurfacePainter::InitGeometryPolar(), TGLLegoPainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometrySpherical(), TGLBoxCut::MoveBox(), TGLPlotPainter::MoveSection(), Rgl::PlotTranslation::PlotTranslation(), TGLBoxPainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLBoxCut::ResetBoxGeometry(), TGL5DPainter::ResetGeometryRanges(), TGLParametricEquationGL::SetBBox(), TH2GL::SetBBox(), TH3GL::SetBBox(), and TF2GL::SetBBox().

const TGLVertex3 * TGLPlotBox::Get2DBox (  )  const

Definition at line 258 of file TGLPlotBox.cxx.

References f2DBoxU.

Referenced by TGLBoxPainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), and TGLPlotPainter::Paint().

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

Definition at line 268 of file TGLPlotBox.cxx.

References Rgl::DrawQuadFilled(), Rgl::DrawQuadOutline(), f3DBox, fgFramePlanes, fgNormals, GL_LIGHTING, GL_LINE_STIPPLE, GL_LINES, glBegin(), glColor3d(), glEnd(), glLineStipple(), glVertex3d(), i, TGLVertex3::X(), and TGLVertex3::Y().

Referenced by DrawBox().

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

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 
)

void TGLPlotBox::SetFrameColor ( const TColor color  ) 

Int_t TGLPlotBox::FindFrontPoint (  )  const

Int_t TGLPlotBox::GetFrontPoint (  )  const

const TGLVertex3* TGLPlotBox::Get3DBox (  )  const

const TGLVertex3* TGLPlotBox::Get2DBox (  )  const

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


Member Data Documentation

const TColor* TGLPlotBox::fFrameColor [private]

Definition at line 32 of file TGLPlotBox.h.

Referenced by DrawBox(), and SetFrameColor().

const Bool_t TGLPlotBox::fXOYSelectable [private]

Definition at line 33 of file TGLPlotBox.h.

Referenced by DrawBox().

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.

Bool_t TGLPlotBox::fSelectablePairs [private]

Definition at line 37 of file TGLPlotBox.h.

Referenced by DrawBox(), and TGLPlotBox().

TGLVertex3 TGLPlotBox::f3DBox [private]

Definition at line 39 of file TGLPlotBox.h.

Referenced by DrawBackPlane(), DrawBox(), FindFrontPoint(), Get3DBox(), and SetPlotBox().

TGLVertex3 TGLPlotBox::f2DBox [mutable, private]

Definition at line 40 of file TGLPlotBox.h.

Referenced by FindFrontPoint().

TGLVertex3 TGLPlotBox::f2DBoxU [mutable, private]

Definition at line 41 of file TGLPlotBox.h.

Referenced by FindFrontPoint(), and Get2DBox().

Int_t TGLPlotBox::fFrontPoint [mutable, private]

Definition at line 42 of file TGLPlotBox.h.

Referenced by DrawBox(), FindFrontPoint(), and GetFrontPoint().

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

static const Int_t TGLPlotBox::fgFramePlanes [static]

Definition at line 75 of file TGLPlotBox.h.

Referenced by DrawBackPlane(), and G__setup_memvarTGLPlotBox().

static const Int_t TGLPlotBox::fgBackPairs [static]

Definition at line 76 of file TGLPlotBox.h.

Referenced by DrawBox(), and G__setup_memvarTGLPlotBox().

static const Double_t TGLPlotBox::fgNormals [static]

Definition at line 77 of file TGLPlotBox.h.

Referenced by DrawBackPlane(), and G__setup_memvarTGLPlotBox().

const TColor* TGLPlotBox::fFrameColor [private]

Definition at line 32 of file TGLPlotBox.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1