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
 
virtual TClassIsA () 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.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void TurnOnOff ()
 Turn the box cut on/off.
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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 1428 of file TGLPlotPainter.cxx.

◆ ~TGLBoxCut()

TGLBoxCut::~TGLBoxCut ( )
virtual

Destructor.

Definition at line 1441 of file TGLPlotPainter.cxx.

Member Function Documentation

◆ AdjustBox()

void TGLBoxCut::AdjustBox ( )
private

Box cut is limited by plot's sizes.

Definition at line 1649 of file TGLPlotPainter.cxx.

◆ Class()

static TClass * TGLBoxCut::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLBoxCut::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLBoxCut::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 92 of file TGLPlotPainter.h.

◆ DeclFileName()

static const char * TGLBoxCut::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 92 of file TGLPlotPainter.h.

◆ DrawBox()

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

Draw cut as a semi-transparent box.

Definition at line 1507 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.

◆ IsA()

virtual TClass * TGLBoxCut::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 92 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 1679 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 1586 of file TGLPlotPainter.cxx.

◆ ResetBoxGeometry()

void TGLBoxCut::ResetBoxGeometry ( )

Set geometry using plot's back box.

Definition at line 1471 of file TGLPlotPainter.cxx.

◆ SetActive()

void TGLBoxCut::SetActive ( Bool_t  a)

Turn the box cut on/off.

Definition at line 1461 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 1577 of file TGLPlotPainter.cxx.

◆ Streamer()

virtual void TGLBoxCut::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGLBoxCut::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 92 of file TGLPlotPainter.h.

◆ 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 1449 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: