ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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)
 
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>

Constructor & Destructor Documentation

TGLBoxCut::TGLBoxCut ( const TGLPlotBox plotBox)
TGLBoxCut::~TGLBoxCut ( )
virtual

Destructor.

Definition at line 1445 of file TGLPlotPainter.cxx.

Member Function Documentation

void TGLBoxCut::AdjustBox ( )
private

Box cut is limited by plot's sizes.

Definition at line 1653 of file TGLPlotPainter.cxx.

void TGLBoxCut::DrawBox ( Bool_t  selectionPass,
Int_t  selected 
) const
Rgl::Range_t TGLBoxCut::GetXRange ( ) const
inline

Definition at line 95 of file TGLPlotPainter.h.

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

Definition at line 96 of file TGLPlotPainter.h.

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

Definition at line 97 of file TGLPlotPainter.h.

Bool_t TGLBoxCut::IsActive ( ) const
inline
Bool_t TGLBoxCut::IsInCut ( Double_t  xMin,
Double_t  xMax,
Double_t  yMin,
Double_t  yMax,
Double_t  zMin,
Double_t  zMax 
) const
template<class V >
Bool_t TGLBoxCut::IsInCut ( const V *  v) const
inline

Definition at line 85 of file TGLPlotPainter.h.

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

Set geometry using plot's back box.

Definition at line 1475 of file TGLPlotPainter.cxx.

Referenced by TGL5DPainter::ResetGeometryRanges().

void TGLBoxCut::SetActive ( Bool_t  a)

Turn the box cut on/off.

Definition at line 1465 of file TGLPlotPainter.cxx.

Referenced by TGL5DPainter::ShowBoxCut().

void TGLBoxCut::SetFactor ( Double_t  f)
inline

Definition at line 74 of file TGLPlotPainter.h.

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

Member Data Documentation

Bool_t TGLBoxCut::fActive
private

Definition at line 59 of file TGLPlotPainter.h.

Referenced by IsActive().

TGLVertex3 TGLBoxCut::fCenter
private

Definition at line 53 of file TGLPlotPainter.h.

Double_t TGLBoxCut::fFactor
private

Definition at line 60 of file TGLPlotPainter.h.

Referenced by SetFactor().

TPoint TGLBoxCut::fMousePos
private

Definition at line 62 of file TGLPlotPainter.h.

const TGLPlotBox* const TGLBoxCut::fPlotBox
private

Definition at line 58 of file TGLPlotPainter.h.

Double_t TGLBoxCut::fXLength
private

Definition at line 50 of file TGLPlotPainter.h.

Rgl::Range_t TGLBoxCut::fXRange
private

Definition at line 54 of file TGLPlotPainter.h.

Referenced by GetXRange(), and IsInCut().

Double_t TGLBoxCut::fYLength
private

Definition at line 51 of file TGLPlotPainter.h.

Rgl::Range_t TGLBoxCut::fYRange
private

Definition at line 55 of file TGLPlotPainter.h.

Referenced by GetYRange(), and IsInCut().

Double_t TGLBoxCut::fZLength
private

Definition at line 52 of file TGLPlotPainter.h.

Rgl::Range_t TGLBoxCut::fZRange
private

Definition at line 56 of file TGLPlotPainter.h.

Referenced by GetZRange(), and IsInCut().

Collaboration diagram for TGLBoxCut:
[legend]

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