ROOT » GRAF3D » GL » TGLPlotBox

class TGLPlotBox


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

Function Members (Methods)

public:
virtual~TGLPlotBox()
static TClass*Class()
voidDrawBox(Int_t selectedPart, Bool_t selectionPass, const vector<Double_t>& zLevels, Bool_t highColor) const
Int_tFindFrontPoint() const
const TGLVertex3*Get2DBox() const
const TGLVertex3*Get3DBox() const
Bool_tGetDrawBack() const
Bool_tGetDrawFront() const
Int_tGetFrontPoint() const
virtual TClass*IsA() const
TGLPlotBox&operator=(const TGLPlotBox&)
voidSetDrawBack(Bool_t d)
voidSetDrawFront(Bool_t d)
voidSetFrameColor(const TColor* color)
voidSetPlotBox(const Rgl::Range_t& xRange, const Rgl::Range_t& yRange, const Rgl::Range_t& zRange)
voidSetPlotBox(const Rgl::Range_t& xRange, Double_t rangeXU, const Rgl::Range_t& yRange, Double_t rangeYU, const Rgl::Range_t& zRange, Double_t rangeZU)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLPlotBox(const TGLPlotBox&)
TGLPlotBox(Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
private:
voidDrawBack(Int_t selectedPart, Bool_t selectionPass, const vector<Double_t>& zLevels, Bool_t highColor) const
voidDrawBackPlane(Int_t plane, Bool_t selectionPass, const vector<Double_t>& zLevels) const
voidDrawFront() const

Data Members

public:
static const Int_tfgBackPairs[2147483647][2]
static const Int_tfgFramePlanes[2147483647][4]
static const Int_tfgFrontPairs[2147483647][2]
static const Double_tfgNormals[2147483647][3]
private:
TGLVertex3f2DBox[8]
TGLVertex3f2DBoxU[8]
TGLVertex3f3DBox[8]
Bool_tfDrawBack
Bool_tfDrawFront
const TColor*fFrameColor
Int_tfFrontPoint
Double_tfRangeXU
Double_tfRangeYU
Double_tfRangeZU
Bool_tfSelectablePairs[4][2]
const Bool_tfXOYSelectable
const Bool_tfXOZSelectable
const Bool_tfYOZSelectable

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLPlotBox(Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
 Constructor.
Front point is 0.
~TGLPlotBox()
 Empty dtor to suppress g++ warnings.
void DrawBack(Int_t selectedPart, Bool_t selectionPass, const vector<Double_t>& zLevels, Bool_t highColor) const
void DrawFront() const
void DrawBox(Int_t selectedPart, Bool_t selectionPass, const vector<Double_t>& zLevels, Bool_t highColor) const
 Draw back box for a plot.
void SetPlotBox(const Rgl::Range_t& xRange, const Rgl::Range_t& yRange, const Rgl::Range_t& zRange)
 Set up a frame box.
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.
void SetFrameColor(const TColor* color)
 Back box color.
Int_t FindFrontPoint() const
 Convert 3d points into window coordinate system
 and find the nearest.
Int_t GetFrontPoint() const
 The nearest point.
const TGLVertex3 * Get3DBox() const
 Get 3D box.
const TGLVertex3 * Get2DBox() const
 Get 2D box.
void DrawBackPlane(Int_t plane, Bool_t selectionPass, const vector<Double_t>& zLevels) const
Draw back plane with number 'plane'
TGLPlotBox(Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
ClassDef macro adds some virtual functions,
so, to supress g++ warnings virtual destructor declared.
void SetDrawFront(Bool_t d)
{fDrawFront = d;}
Bool_t GetDrawFront() const
{return fDrawFront;}
void SetDrawBack(Bool_t d)
{fDrawBack = d;}
Bool_t GetDrawBack() const
{return fDrawBack;}