TGLPlotCamera Class Reference

#include <TGLPlotCamera.h>

List of all members.

Public Member Functions

 TGLPlotCamera ()
virtual ~TGLPlotCamera ()
void SetViewport (const TGLRect &vp)
void SetViewVolume (const TGLVertex3 *box)
void StartRotation (Int_t px, Int_t py)
void RotateCamera (Int_t px, Int_t py)
void StartPan (Int_t px, Int_t py)
void Pan (Int_t px, Int_t py)
void ZoomIn ()
void ZoomOut ()
void SetCamera () const
void Apply (Double_t phi, Double_t theta) const
Bool_t ViewportChanged () const
Int_t GetX () const
Int_t GetY () const
Int_t GetWidth () const
Int_t GetHeight () const
 ClassDef (TGLPlotCamera, 0)
 TGLPlotCamera ()
virtual ~TGLPlotCamera ()
void SetViewport (const TGLRect &vp)
void SetViewVolume (const TGLVertex3 *box)
void StartRotation (Int_t px, Int_t py)
void RotateCamera (Int_t px, Int_t py)
void StartPan (Int_t px, Int_t py)
void Pan (Int_t px, Int_t py)
void ZoomIn ()
void ZoomOut ()
void SetCamera () const
void Apply (Double_t phi, Double_t theta) const
Bool_t ViewportChanged () const
Int_t GetX () const
Int_t GetY () const
Int_t GetWidth () const
Int_t GetHeight () const
 ClassDef (TGLPlotCamera, 0)

Protected Attributes

TGLRect fViewport
Double_t fZoom
Double_t fShift
Double_t fOrthoBox [4]
TGLVertex3 fCenter
TGLVector3 fTruck
TArcBall fArcBall
TPoint fMousePos
Bool_t fVpChanged

Private Member Functions

 TGLPlotCamera (const TGLPlotCamera &)
TGLPlotCameraoperator= (const TGLPlotCamera &)
 TGLPlotCamera (const TGLPlotCamera &)
TGLPlotCameraoperator= (const TGLPlotCamera &)


Detailed Description

Definition at line 21 of file TGLPlotCamera.h.


Constructor & Destructor Documentation

TGLPlotCamera::TGLPlotCamera ( const TGLPlotCamera  )  [private]

TGLPlotCamera::TGLPlotCamera (  ) 

Definition at line 22 of file TGLPlotCamera.cxx.

References fOrthoBox.

virtual TGLPlotCamera::~TGLPlotCamera (  )  [inline, virtual]

Definition at line 40 of file TGLPlotCamera.h.

TGLPlotCamera::TGLPlotCamera ( const TGLPlotCamera  )  [private]

TGLPlotCamera::TGLPlotCamera (  ) 

virtual TGLPlotCamera::~TGLPlotCamera (  )  [inline, virtual]

Definition at line 40 of file TGLPlotCamera.h.


Member Function Documentation

TGLPlotCamera& TGLPlotCamera::operator= ( const TGLPlotCamera  )  [private]

void TGLPlotCamera::SetViewport ( const TGLRect vp  ) 

Definition at line 34 of file TGLPlotCamera.cxx.

References fArcBall, fViewport, fVpChanged, TGLRect::Height(), kFALSE, kTRUE, TArcBall::SetBounds(), vp, TGLRect::Width(), TGLRect::X(), and TGLRect::Y().

Referenced by TGLHistPainter::PadToViewport().

void TGLPlotCamera::SetViewVolume ( const TGLVertex3 box  ) 

Definition at line 50 of file TGLPlotCamera.cxx.

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

void TGLPlotCamera::StartRotation ( Int_t  px,
Int_t  py 
)

Definition at line 65 of file TGLPlotCamera.cxx.

References TArcBall::Click(), and fArcBall.

Referenced by TGLHistPainter::ExecuteEvent().

void TGLPlotCamera::RotateCamera ( Int_t  px,
Int_t  py 
)

Definition at line 72 of file TGLPlotCamera.cxx.

References TArcBall::Drag(), and fArcBall.

Referenced by TGLHistPainter::ExecuteEvent().

void TGLPlotCamera::StartPan ( Int_t  px,
Int_t  py 
)

Definition at line 79 of file TGLPlotCamera.cxx.

References fMousePos, fViewport, TPoint::fX, TPoint::fY, and TGLRect::Height().

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

void TGLPlotCamera::Pan ( Int_t  px,
Int_t  py 
)

Definition at line 87 of file TGLPlotCamera.cxx.

References fMousePos, fTruck, fViewport, TPoint::fX, TPoint::fY, GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX, glGetDoublev(), TGLRect::Height(), pr(), start, vp, and TGLRect::Width().

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

void TGLPlotCamera::ZoomIn (  ) 

Definition at line 168 of file TGLPlotCamera.cxx.

References fZoom.

Referenced by TGLHistPainter::ExecuteEvent().

void TGLPlotCamera::ZoomOut (  ) 

Definition at line 175 of file TGLPlotCamera.cxx.

References fZoom.

Referenced by TGLHistPainter::ExecuteEvent().

void TGLPlotCamera::SetCamera (  )  const

Definition at line 107 of file TGLPlotCamera.cxx.

References fOrthoBox, fViewport, fZoom, GL_MODELVIEW, GL_PROJECTION, glLoadIdentity(), glMatrixMode(), glOrtho(), glViewport(), TGLRect::Height(), TGLRect::Width(), TGLRect::X(), and TGLRect::Y().

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

void TGLPlotCamera::Apply ( Double_t  phi,
Double_t  theta 
) const

Definition at line 128 of file TGLPlotCamera.cxx.

References fArcBall, fShift, fTruck, TArcBall::GetRotMatrix(), glMultMatrixd(), glRotated(), and glTranslated().

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

Bool_t TGLPlotCamera::ViewportChanged (  )  const [inline]

Definition at line 53 of file TGLPlotCamera.h.

References fVpChanged.

Referenced by TGLHistPainter::PadToViewport().

Int_t TGLPlotCamera::GetX (  )  const

Definition at line 140 of file TGLPlotCamera.cxx.

References fViewport, and TGLRect::X().

Referenced by TGLPlotPainter::Paint(), and TGLPlotPainter::PlotSelected().

Int_t TGLPlotCamera::GetY (  )  const

Definition at line 147 of file TGLPlotCamera.cxx.

References fViewport, and TGLRect::Y().

Referenced by TGLPlotPainter::Paint(), and TGLPlotPainter::PlotSelected().

Int_t TGLPlotCamera::GetWidth (  )  const

Definition at line 154 of file TGLPlotCamera.cxx.

References fViewport, and TGLRect::Width().

Referenced by TGLPlotPainter::Paint(), and TGLPlotPainter::PlotSelected().

Int_t TGLPlotCamera::GetHeight (  )  const

Definition at line 161 of file TGLPlotCamera.cxx.

References fViewport, and TGLRect::Height().

Referenced by TGLPlotPainter::Paint(), TGLTH3CompositionPainter::Pan(), TGLLegoPainter::Pan(), TGL5DPainter::Pan(), TGLParametricPlot::Pan(), TGLH2PolyPainter::Pan(), TGLBoxPainter::Pan(), TGLIsoPainter::Pan(), TGLSurfacePainter::Pan(), TGLTF3Painter::Pan(), TGLPlotPainter::PlotSelected(), TGLH2PolyPainter::StartPan(), TGLSurfacePainter::StartPan(), TGLBoxPainter::StartPan(), TGLTH3CompositionPainter::StartPan(), TGLParametricPlot::StartPan(), TGLTF3Painter::StartPan(), TGLLegoPainter::StartPan(), TGLIsoPainter::StartPan(), TGL5DPainter::StartPan(), and TGLSurfacePainter::WindowPointTo3DPoint().

TGLPlotCamera::ClassDef ( TGLPlotCamera  ,
 
)

TGLPlotCamera& TGLPlotCamera::operator= ( const TGLPlotCamera  )  [private]

void TGLPlotCamera::SetViewport ( const TGLRect vp  ) 

void TGLPlotCamera::SetViewVolume ( const TGLVertex3 box  ) 

void TGLPlotCamera::StartRotation ( Int_t  px,
Int_t  py 
)

void TGLPlotCamera::RotateCamera ( Int_t  px,
Int_t  py 
)

void TGLPlotCamera::StartPan ( Int_t  px,
Int_t  py 
)

void TGLPlotCamera::Pan ( Int_t  px,
Int_t  py 
)

void TGLPlotCamera::ZoomIn (  ) 

void TGLPlotCamera::ZoomOut (  ) 

void TGLPlotCamera::SetCamera (  )  const

void TGLPlotCamera::Apply ( Double_t  phi,
Double_t  theta 
) const

Bool_t TGLPlotCamera::ViewportChanged (  )  const [inline]

Definition at line 53 of file TGLPlotCamera.h.

References fVpChanged.

Int_t TGLPlotCamera::GetX (  )  const

Int_t TGLPlotCamera::GetY (  )  const

Int_t TGLPlotCamera::GetWidth (  )  const

Int_t TGLPlotCamera::GetHeight (  )  const

TGLPlotCamera::ClassDef ( TGLPlotCamera  ,
 
)


Member Data Documentation

TGLRect TGLPlotCamera::fViewport [protected]

Definition at line 28 of file TGLPlotCamera.h.

Referenced by GetHeight(), GetWidth(), GetX(), GetY(), Pan(), SetCamera(), SetViewport(), and StartPan().

Double_t TGLPlotCamera::fZoom [protected]

Definition at line 29 of file TGLPlotCamera.h.

Referenced by SetCamera(), ZoomIn(), and ZoomOut().

Double_t TGLPlotCamera::fShift [protected]

Definition at line 30 of file TGLPlotCamera.h.

Referenced by Apply().

Double_t TGLPlotCamera::fOrthoBox [protected]

Definition at line 31 of file TGLPlotCamera.h.

Referenced by SetCamera(), and TGLPlotCamera().

TGLVertex3 TGLPlotCamera::fCenter [protected]

Definition at line 32 of file TGLPlotCamera.h.

TGLVector3 TGLPlotCamera::fTruck [protected]

Definition at line 33 of file TGLPlotCamera.h.

Referenced by Apply(), and Pan().

TArcBall TGLPlotCamera::fArcBall [protected]

Definition at line 34 of file TGLPlotCamera.h.

Referenced by Apply(), RotateCamera(), SetViewport(), and StartRotation().

TPoint TGLPlotCamera::fMousePos [protected]

Definition at line 35 of file TGLPlotCamera.h.

Referenced by Pan(), and StartPan().

Bool_t TGLPlotCamera::fVpChanged [protected]

Definition at line 36 of file TGLPlotCamera.h.

Referenced by SetViewport(), and ViewportChanged().


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