Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLBoxCut Class Reference

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

Definition at line 38 of file TGLPlotPainter.h.

Public Member Functions

 TGLBoxCut (const TGLPlotBox *plotBox)
 Constructor.
 
virtual ~TGLBoxCut ()
 Destructor.
 
void DrawBox (Bool_t selectionPass, Int_t selected) const
 Draw cut as a semi-transparent box.
 
Rgl::Range_t GetXRange () const
 
Rgl::Range_t GetYRange () const
 
Rgl::Range_t GetZRange () const
 
Bool_t IsActive () const
 
template<class V >
Bool_t IsInCut (const V *v) const
 
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.
 
void MoveBox (Int_t px, Int_t py, Int_t axisID)
 Move box cut along selected direction.
 
void ResetBoxGeometry ()
 Set geometry using plot's back box.
 
void SetActive (Bool_t a)
 Turn the box cut on/off.
 
void SetFactor (Double_t f)
 
void StartMovement (Int_t px, Int_t py)
 Start cut's movement.
 
void TurnOnOff ()
 Turn the box cut on/off.
 

Private Member Functions

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

Private Attributes

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

#include <TGLPlotPainter.h>

Constructor & Destructor Documentation

◆ TGLBoxCut()

TGLBoxCut::TGLBoxCut ( const TGLPlotBox plotBox)

Constructor.

Definition at line 1430 of file TGLPlotPainter.cxx.

◆ ~TGLBoxCut()

TGLBoxCut::~TGLBoxCut ( )
virtual

Destructor.

Definition at line 1443 of file TGLPlotPainter.cxx.

Member Function Documentation

◆ AdjustBox()

void TGLBoxCut::AdjustBox ( )
private

Box cut is limited by plot's sizes.

Definition at line 1651 of file TGLPlotPainter.cxx.

◆ DrawBox()

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

Draw cut as a semi-transparent box.

Definition at line 1509 of file TGLPlotPainter.cxx.

◆ GetXRange()

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

Definition at line 85 of file TGLPlotPainter.h.

◆ GetYRange()

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

Definition at line 86 of file TGLPlotPainter.h.

◆ GetZRange()

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

Definition at line 87 of file TGLPlotPainter.h.

◆ IsActive()

Bool_t TGLBoxCut::IsActive ( ) const
inline

Definition at line 59 of file TGLPlotPainter.h.

◆ IsInCut() [1/2]

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

Definition at line 75 of file TGLPlotPainter.h.

◆ IsInCut() [2/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 1681 of file TGLPlotPainter.cxx.

◆ MoveBox()

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

Move box cut along selected direction.

Definition at line 1588 of file TGLPlotPainter.cxx.

◆ ResetBoxGeometry()

void TGLBoxCut::ResetBoxGeometry ( )

Set geometry using plot's back box.

Definition at line 1473 of file TGLPlotPainter.cxx.

◆ SetActive()

void TGLBoxCut::SetActive ( Bool_t  a)

Turn the box cut on/off.

Definition at line 1463 of file TGLPlotPainter.cxx.

◆ SetFactor()

void TGLBoxCut::SetFactor ( Double_t  f)
inline

Definition at line 64 of file TGLPlotPainter.h.

◆ StartMovement()

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

Start cut's movement.

Definition at line 1579 of file TGLPlotPainter.cxx.

◆ TurnOnOff()

void TGLBoxCut::TurnOnOff ( )

Turn the box cut on/off.

If it's on, it will be placed in front point of a plot.

Definition at line 1451 of file TGLPlotPainter.cxx.

Member Data Documentation

◆ fActive

Bool_t TGLBoxCut::fActive
private

Definition at line 49 of file TGLPlotPainter.h.

◆ fCenter

TGLVertex3 TGLBoxCut::fCenter
private

Definition at line 43 of file TGLPlotPainter.h.

◆ fFactor

Double_t TGLBoxCut::fFactor
private

Definition at line 50 of file TGLPlotPainter.h.

◆ fMousePos

TPoint TGLBoxCut::fMousePos
private

Definition at line 52 of file TGLPlotPainter.h.

◆ fPlotBox

const TGLPlotBox* const TGLBoxCut::fPlotBox
private

Definition at line 48 of file TGLPlotPainter.h.

◆ fXLength

Double_t TGLBoxCut::fXLength
private

Definition at line 40 of file TGLPlotPainter.h.

◆ fXRange

Rgl::Range_t TGLBoxCut::fXRange
private

Definition at line 44 of file TGLPlotPainter.h.

◆ fYLength

Double_t TGLBoxCut::fYLength
private

Definition at line 41 of file TGLPlotPainter.h.

◆ fYRange

Rgl::Range_t TGLBoxCut::fYRange
private

Definition at line 45 of file TGLPlotPainter.h.

◆ fZLength

Double_t TGLBoxCut::fZLength
private

Definition at line 42 of file TGLPlotPainter.h.

◆ fZRange

Rgl::Range_t TGLBoxCut::fZRange
private

Definition at line 46 of file TGLPlotPainter.h.

Libraries for TGLBoxCut:

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