TGLBoxCut Class Reference

#include <TGLPlotPainter.h>

List of all members.

Public Member Functions

 TGLBoxCut (const TGLPlotBox *plotBox)
virtual ~TGLBoxCut ()
void TurnOnOff ()
Bool_t IsActive () const
void SetActive (Bool_t a)
void ResetBoxGeometry ()
void SetFactor (Double_t f)
void DrawBox (Bool_t selectionPass, Int_t selected) const
void StartMovement (Int_t px, Int_t py)
void MoveBox (Int_t px, Int_t py, Int_t axisID)
Bool_t 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 IsInCut (const V *v) const
Rgl::Range_t GetXRange () const
Rgl::Range_t GetYRange () const
Rgl::Range_t GetZRange () const
 TGLBoxCut (const TGLPlotBox *plotBox)
virtual ~TGLBoxCut ()
void TurnOnOff ()
Bool_t IsActive () const
void SetActive (Bool_t a)
void ResetBoxGeometry ()
void SetFactor (Double_t f)
void DrawBox (Bool_t selectionPass, Int_t selected) const
void StartMovement (Int_t px, Int_t py)
void MoveBox (Int_t px, Int_t py, Int_t axisID)
Bool_t 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 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 ()
void AdjustBox ()

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
const TGLPlotBox *const fPlotBox


Detailed Description

Definition at line 48 of file TGLPlotPainter.h.


Constructor & Destructor Documentation

TGLBoxCut::TGLBoxCut ( const TGLPlotBox plotBox  ) 

TGLBoxCut::~TGLBoxCut (  )  [virtual]

Definition at line 1375 of file TGLPlotPainter.cxx.

TGLBoxCut::TGLBoxCut ( const TGLPlotBox plotBox  ) 

virtual TGLBoxCut::~TGLBoxCut (  )  [virtual]


Member Function Documentation

void TGLBoxCut::TurnOnOff (  ) 

Definition at line 1381 of file TGLPlotPainter.cxx.

References fActive, and ResetBoxGeometry().

Referenced by TGL5DPainter::InitGeometry(), TGLBoxPainter::ProcessEvent(), TGL5DPainter::ProcessEvent(), TGLParametricPlot::ProcessEvent(), TGLTF3Painter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLTH3CompositionPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), and SetActive().

Bool_t TGLBoxCut::IsActive (  )  const [inline]

Definition at line 69 of file TGLPlotPainter.h.

References fActive.

Referenced by TGLTF3Painter::DrawDefaultPlot(), TGLTF3Painter::DrawMaplePlot(), TGLIsoPainter::DrawMesh(), TGL5DPainter::DrawMesh(), TGLTF3Painter::DrawPlot(), TGL5DPainter::DrawPlot(), TGLIsoPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLParametricPlot::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGLTF3Painter::DrawToSelectionBuffer(), TGL5DPainter::IsBoxCutShown(), TGLTH3CompositionPainter::Pan(), TGLLegoPainter::Pan(), TGL5DPainter::Pan(), TGLParametricPlot::Pan(), TGLH2PolyPainter::Pan(), TGLBoxPainter::Pan(), TGLIsoPainter::Pan(), TGLSurfacePainter::Pan(), TGLTF3Painter::Pan(), TGLBoxPainter::ProcessEvent(), TGLParametricPlot::ProcessEvent(), TGL5DPainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLTH3CompositionPainter::ProcessEvent(), and TGLSurfacePainter::ProcessEvent().

void TGLBoxCut::SetActive ( Bool_t  a  ) 

Definition at line 1393 of file TGLPlotPainter.cxx.

References fActive, and TurnOnOff().

Referenced by TGL5DPainter::ShowBoxCut().

void TGLBoxCut::ResetBoxGeometry (  ) 

Definition at line 1402 of file TGLPlotPainter.cxx.

References AdjustBox(), box(), fCenter, fFactor, fPlotBox, fXLength, fYLength, fZLength, TGLPlotBox::Get3DBox(), TGLPlotBox::GetFrontPoint(), TGLVertex3::X(), X, TGLVertex3::Y(), Y, TGLVertex3::Z(), and Z.

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

void TGLBoxCut::SetFactor ( Double_t  f  )  [inline]

Definition at line 74 of file TGLPlotPainter.h.

References fFactor.

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

Definition at line 1438 of file TGLPlotPainter.cxx.

References Rgl::DrawBoxFront(), fPlotBox, fXRange, fYRange, fZRange, TGLPlotBox::GetFrontPoint(), GL_BLEND, GL_DIFFUSE, GL_FRONT_AND_BACK, GL_LIGHTING, GL_LINES, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, glBegin(), glBlendFunc(), glColor3d(), glDisable(), glEnable(), glEnd(), glGetBooleanv(), glLineWidth(), glMaterialfv(), glVertex3d(), kFALSE, TGLPlotPainter::kXAxis, TGLPlotPainter::kYAxis, TGLPlotPainter::kZAxis, and Rgl::ObjectIDToColor().

Referenced by TGLTF3Painter::DrawPlot(), TGL5DPainter::DrawPlot(), TGLSurfacePainter::DrawPlot(), TGLIsoPainter::DrawPlot(), TGLParametricPlot::DrawPlot(), TGLBoxPainter::DrawPlot(), and TGLTH3CompositionPainter::DrawPlot().

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

Definition at line 1507 of file TGLPlotPainter.cxx.

References fMousePos, TPoint::fX, and TPoint::fY.

Referenced by TGLH2PolyPainter::StartPan(), TGLSurfacePainter::StartPan(), TGLBoxPainter::StartPan(), TGLParametricPlot::StartPan(), TGLTH3CompositionPainter::StartPan(), TGLTF3Painter::StartPan(), TGLLegoPainter::StartPan(), TGLIsoPainter::StartPan(), and TGL5DPainter::StartPan().

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

Definition at line 1515 of file TGLPlotPainter.cxx.

References AdjustBox(), box(), fCenter, fMousePos, fPlotBox, TPoint::fX, fXLength, TPoint::fY, fYLength, fZLength, TGLPlotBox::Get3DBox(), GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX, GL_VIEWPORT, glGetDoublev(), glGetIntegerv(), TGLPlotPainter::kXAxis, TGLPlotPainter::kYAxis, TGLPlotPainter::kZAxis, pr(), vp, TGLVertex3::X(), X, TGLVertex3::Y(), Y, TGLVertex3::Z(), and Z.

Referenced by TGLTH3CompositionPainter::Pan(), TGLLegoPainter::Pan(), TGL5DPainter::Pan(), TGLParametricPlot::Pan(), TGLH2PolyPainter::Pan(), TGLBoxPainter::Pan(), TGLIsoPainter::Pan(), TGLSurfacePainter::Pan(), and TGLTF3Painter::Pan().

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

Definition at line 1606 of file TGLPlotPainter.cxx.

References fXRange, fYRange, fZRange, kFALSE, and kTRUE.

Referenced by TGLSurfacePainter::DrawPlot(), TGLParametricPlot::DrawPlot(), TGLBoxPainter::DrawPlot(), and TGLTH3CompositionPainter::DrawPlot().

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

Definition at line 85 of file TGLPlotPainter.h.

References fXRange, fYRange, fZRange, kFALSE, and kTRUE.

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

Definition at line 95 of file TGLPlotPainter.h.

References fXRange.

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

Definition at line 96 of file TGLPlotPainter.h.

References fYRange.

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

Definition at line 97 of file TGLPlotPainter.h.

References fZRange.

void TGLBoxCut::AdjustBox (  )  [private]

Definition at line 1577 of file TGLPlotPainter.cxx.

References box(), fCenter, fPlotBox, fXLength, fXRange, fYLength, fYRange, fZLength, fZRange, TGLPlotBox::Get3DBox(), TMath::Max(), TMath::Min(), TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

Referenced by MoveBox(), and ResetBoxGeometry().

void TGLBoxCut::TurnOnOff (  ) 

Bool_t TGLBoxCut::IsActive (  )  const [inline]

Definition at line 69 of file TGLPlotPainter.h.

References fActive.

void TGLBoxCut::SetActive ( Bool_t  a  ) 

void TGLBoxCut::ResetBoxGeometry (  ) 

void TGLBoxCut::SetFactor ( Double_t  f  )  [inline]

Definition at line 74 of file TGLPlotPainter.h.

References fFactor.

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

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

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

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.

References fXRange, fYRange, fZRange, kFALSE, and kTRUE.

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

Definition at line 95 of file TGLPlotPainter.h.

References fXRange.

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

Definition at line 96 of file TGLPlotPainter.h.

References fYRange.

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

Definition at line 97 of file TGLPlotPainter.h.

References fZRange.

void TGLBoxCut::AdjustBox (  )  [private]


Member Data Documentation

Double_t TGLBoxCut::fXLength [private]

Definition at line 50 of file TGLPlotPainter.h.

Referenced by AdjustBox(), MoveBox(), and ResetBoxGeometry().

Double_t TGLBoxCut::fYLength [private]

Definition at line 51 of file TGLPlotPainter.h.

Referenced by AdjustBox(), MoveBox(), and ResetBoxGeometry().

Double_t TGLBoxCut::fZLength [private]

Definition at line 52 of file TGLPlotPainter.h.

Referenced by AdjustBox(), MoveBox(), and ResetBoxGeometry().

TGLVertex3 TGLBoxCut::fCenter [private]

Definition at line 53 of file TGLPlotPainter.h.

Referenced by AdjustBox(), MoveBox(), and ResetBoxGeometry().

Rgl::Range_t TGLBoxCut::fXRange [private]

Definition at line 54 of file TGLPlotPainter.h.

Referenced by AdjustBox(), DrawBox(), GetXRange(), and IsInCut().

Rgl::Range_t TGLBoxCut::fYRange [private]

Definition at line 55 of file TGLPlotPainter.h.

Referenced by AdjustBox(), DrawBox(), GetYRange(), and IsInCut().

Rgl::Range_t TGLBoxCut::fZRange [private]

Definition at line 56 of file TGLPlotPainter.h.

Referenced by AdjustBox(), DrawBox(), GetZRange(), and IsInCut().

const TGLPlotBox* const TGLBoxCut::fPlotBox [private]

Definition at line 58 of file TGLPlotPainter.h.

Referenced by AdjustBox(), DrawBox(), MoveBox(), and ResetBoxGeometry().

Bool_t TGLBoxCut::fActive [private]

Definition at line 59 of file TGLPlotPainter.h.

Referenced by IsActive(), SetActive(), and TurnOnOff().

Double_t TGLBoxCut::fFactor [private]

Definition at line 60 of file TGLPlotPainter.h.

Referenced by ResetBoxGeometry(), and SetFactor().

TPoint TGLBoxCut::fMousePos [private]

Definition at line 62 of file TGLPlotPainter.h.

Referenced by MoveBox(), and StartMovement().

const TGLPlotBox* const TGLBoxCut::fPlotBox [private]

Definition at line 58 of file TGLPlotPainter.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:57 2011 for ROOT_528-00b_version by  doxygen 1.5.1