ROOT
6.07/01
Reference Guide
|
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>
TGLBoxCut::TGLBoxCut | ( | const TGLPlotBox * | plotBox | ) |
|
virtual |
Destructor.
Definition at line 1445 of file TGLPlotPainter.cxx.
|
private |
Box cut is limited by plot's sizes.
Definition at line 1653 of file TGLPlotPainter.cxx.
Draw cut as a semi-transparent box.
Definition at line 1511 of file TGLPlotPainter.cxx.
Referenced by TGLVoxelPainter::DrawPlot(), TGLTF3Painter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGL5DPainter::DrawPlot(), TGLParametricPlot::DrawPlot(), and TGLIsoPainter::DrawPlot().
|
inline |
Definition at line 95 of file TGLPlotPainter.h.
|
inline |
Definition at line 96 of file TGLPlotPainter.h.
|
inline |
Definition at line 97 of file TGLPlotPainter.h.
|
inline |
Definition at line 69 of file TGLPlotPainter.h.
Referenced by TGLTF3Painter::DrawDefaultPlot(), TGLTF3Painter::DrawMaplePlot(), TGL5DPainter::DrawMesh(), TGLIsoPainter::DrawMesh(), TGLVoxelPainter::DrawPlot(), TGLTF3Painter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGL5DPainter::DrawPlot(), TGLParametricPlot::DrawPlot(), TGLIsoPainter::DrawPlot(), TGLTF3Painter::DrawToSelectionBuffer(), TGL5DPainter::IsBoxCutShown(), TGLH2PolyPainter::Pan(), TGLVoxelPainter::Pan(), TGLTF3Painter::Pan(), TGLLegoPainter::Pan(), TGLBoxPainter::Pan(), TGLSurfacePainter::Pan(), TGLTH3CompositionPainter::Pan(), TGL5DPainter::Pan(), TGLParametricPlot::Pan(), TGLIsoPainter::Pan(), TGLVoxelPainter::ProcessEvent(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLBoxPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLTH3CompositionPainter::ProcessEvent(), TGL5DPainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), and TGLParametricPlot::ProcessEvent().
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(), TGLTH3CompositionPainter::DrawPlot(), and TGLParametricPlot::DrawPlot().
|
inline |
Definition at line 85 of file TGLPlotPainter.h.
Move box cut along selected direction.
Definition at line 1590 of file TGLPlotPainter.cxx.
Referenced by TGLH2PolyPainter::Pan(), TGLVoxelPainter::Pan(), TGLTF3Painter::Pan(), TGLLegoPainter::Pan(), TGLBoxPainter::Pan(), TGLSurfacePainter::Pan(), TGLTH3CompositionPainter::Pan(), TGL5DPainter::Pan(), TGLIsoPainter::Pan(), and TGLParametricPlot::Pan().
void TGLBoxCut::ResetBoxGeometry | ( | ) |
Set geometry using plot's back box.
Definition at line 1475 of file TGLPlotPainter.cxx.
Referenced by TGL5DPainter::ResetGeometryRanges().
Turn the box cut on/off.
Definition at line 1465 of file TGLPlotPainter.cxx.
Referenced by TGL5DPainter::ShowBoxCut().
Definition at line 74 of file TGLPlotPainter.h.
Start cut's movement.
Definition at line 1581 of file TGLPlotPainter.cxx.
Referenced by TGLH2PolyPainter::StartPan(), TGLVoxelPainter::StartPan(), TGLTF3Painter::StartPan(), TGLLegoPainter::StartPan(), TGLBoxPainter::StartPan(), TGLSurfacePainter::StartPan(), TGLTH3CompositionPainter::StartPan(), TGL5DPainter::StartPan(), TGLIsoPainter::StartPan(), and TGLParametricPlot::StartPan().
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 1453 of file TGLPlotPainter.cxx.
Referenced by TGL5DPainter::InitGeometry(), TGLVoxelPainter::ProcessEvent(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLBoxPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLTH3CompositionPainter::ProcessEvent(), TGL5DPainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), and TGLParametricPlot::ProcessEvent().
|
private |
Definition at line 59 of file TGLPlotPainter.h.
Referenced by IsActive().
|
private |
Definition at line 53 of file TGLPlotPainter.h.
|
private |
Definition at line 60 of file TGLPlotPainter.h.
Referenced by SetFactor().
|
private |
Definition at line 62 of file TGLPlotPainter.h.
|
private |
Definition at line 58 of file TGLPlotPainter.h.
|
private |
Definition at line 50 of file TGLPlotPainter.h.
|
private |
Definition at line 54 of file TGLPlotPainter.h.
Referenced by GetXRange(), and IsInCut().
|
private |
Definition at line 51 of file TGLPlotPainter.h.
|
private |
Definition at line 55 of file TGLPlotPainter.h.
Referenced by GetYRange(), and IsInCut().
|
private |
Definition at line 52 of file TGLPlotPainter.h.
|
private |
Definition at line 56 of file TGLPlotPainter.h.
Referenced by GetZRange(), and IsInCut().