ROOT  6.06/08
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGLBoxCut Class Reference

Used by plot-painters to determine the area of the plot that is cut away.

Definition at line 48 of file TGLPlotPainter.h.

Public Member Functions

 TGLBoxCut (const TGLPlotBox *plotBox)
 Constructor. More...
 
virtual ~TGLBoxCut ()
 Destructor. More...
 
void TurnOnOff ()
 Turn the box cut on/off. More...
 
Bool_t IsActive () const
 
void SetActive (Bool_t a)
 Turn the box cut on/off. More...
 
void ResetBoxGeometry ()
 Set geometry using plot's back box. More...
 
void SetFactor (Double_t f)
 
void DrawBox (Bool_t selectionPass, Int_t selected) const
 Draw cut as a semi-transparent box. More...
 
void StartMovement (Int_t px, Int_t py)
 Start cut's movement. More...
 
void MoveBox (Int_t px, Int_t py, Int_t axisID)
 Move box cut along selected direction. More...
 
Bool_t IsInCut (Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax) const
 Check, if box defined by xmin/xmax etc. is in cut. More...
 
template<class V >
Bool_t IsInCut (const V *v) const
 
Rgl::Range_t GetXRange () const
 
Rgl::Range_t GetYRange () const
 
Rgl::Range_t GetZRange () const
 

Private Member Functions

void AdjustBox ()
 Box cut is limited by plot's sizes. More...
 

Private Attributes

Double_t fXLength
 
Double_t fYLength
 
Double_t fZLength
 
TGLVertex3 fCenter
 
Rgl::Range_t fXRange
 
Rgl::Range_t fYRange
 
Rgl::Range_t fZRange
 
const TGLPlotBox *const fPlotBox
 
Bool_t fActive
 
Double_t fFactor
 
TPoint fMousePos
 

#include <TGLPlotPainter.h>

+ Collaboration diagram for TGLBoxCut:

Constructor & Destructor Documentation

§ TGLBoxCut()

TGLBoxCut::TGLBoxCut ( const TGLPlotBox plotBox)

Constructor.

Definition at line 1432 of file TGLPlotPainter.cxx.

§ ~TGLBoxCut()

TGLBoxCut::~TGLBoxCut ( )
virtual

Destructor.

Definition at line 1445 of file TGLPlotPainter.cxx.

Member Function Documentation

§ AdjustBox()

void TGLBoxCut::AdjustBox ( )
private

Box cut is limited by plot's sizes.

Definition at line 1653 of file TGLPlotPainter.cxx.

Referenced by GetZRange().

§ DrawBox()

void TGLBoxCut::DrawBox ( Bool_t  selectionPass,
Int_t  selected 
) const

§ GetXRange()

Rgl::Range_t TGLBoxCut::GetXRange ( ) const
inline

Definition at line 95 of file TGLPlotPainter.h.

§ GetYRange()

Rgl::Range_t TGLBoxCut::GetYRange ( ) const
inline

Definition at line 96 of file TGLPlotPainter.h.

§ GetZRange()

Rgl::Range_t TGLBoxCut::GetZRange ( ) const
inline

Definition at line 97 of file TGLPlotPainter.h.

§ IsActive()

Bool_t TGLBoxCut::IsActive ( ) const
inline

§ IsInCut() [1/2]

Bool_t TGLBoxCut::IsInCut ( Double_t  xMin,
Double_t  xMax,
Double_t  yMin,
Double_t  yMax,
Double_t  zMin,
Double_t  zMax 
) const

Check, if box defined by xmin/xmax etc. is in cut.

Definition at line 1683 of file TGLPlotPainter.cxx.

Referenced by Rgl::DrawMapleMesh(), Rgl::DrawMesh(), TGLVoxelPainter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), and SetFactor().

§ IsInCut() [2/2]

template<class V >
Bool_t TGLBoxCut::IsInCut ( const V *  v) const
inline

Definition at line 85 of file TGLPlotPainter.h.

§ MoveBox()

void TGLBoxCut::MoveBox ( Int_t  px,
Int_t  py,
Int_t  axisID 
)

§ ResetBoxGeometry()

void TGLBoxCut::ResetBoxGeometry ( )

Set geometry using plot's back box.

Definition at line 1475 of file TGLPlotPainter.cxx.

Referenced by IsActive(), and TGL5DPainter::ResetGeometryRanges().

§ SetActive()

void TGLBoxCut::SetActive ( Bool_t  a)

Turn the box cut on/off.

Definition at line 1465 of file TGLPlotPainter.cxx.

Referenced by IsActive(), and TGL5DPainter::ShowBoxCut().

§ SetFactor()

void TGLBoxCut::SetFactor ( Double_t  f)
inline

Definition at line 74 of file TGLPlotPainter.h.

§ StartMovement()

void TGLBoxCut::StartMovement ( Int_t  px,
Int_t  py 
)

§ TurnOnOff()

void TGLBoxCut::TurnOnOff ( )

Member Data Documentation

§ fActive

Bool_t TGLBoxCut::fActive
private

Definition at line 59 of file TGLPlotPainter.h.

Referenced by IsActive().

§ fCenter

TGLVertex3 TGLBoxCut::fCenter
private

Definition at line 53 of file TGLPlotPainter.h.

§ fFactor

Double_t TGLBoxCut::fFactor
private

Definition at line 60 of file TGLPlotPainter.h.

§ fMousePos

TPoint TGLBoxCut::fMousePos
private

Definition at line 62 of file TGLPlotPainter.h.

§ fPlotBox

const TGLPlotBox* const TGLBoxCut::fPlotBox
private

Definition at line 58 of file TGLPlotPainter.h.

§ fXLength

Double_t TGLBoxCut::fXLength
private

Definition at line 50 of file TGLPlotPainter.h.

§ fXRange

Rgl::Range_t TGLBoxCut::fXRange
private

Definition at line 54 of file TGLPlotPainter.h.

Referenced by GetXRange().

§ fYLength

Double_t TGLBoxCut::fYLength
private

Definition at line 51 of file TGLPlotPainter.h.

§ fYRange

Rgl::Range_t TGLBoxCut::fYRange
private

Definition at line 55 of file TGLPlotPainter.h.

Referenced by GetYRange().

§ fZLength

Double_t TGLBoxCut::fZLength
private

Definition at line 52 of file TGLPlotPainter.h.

§ fZRange

Rgl::Range_t TGLBoxCut::fZRange
private

Definition at line 56 of file TGLPlotPainter.h.

Referenced by GetZRange().


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