ROOT  6.06/08
Reference Guide
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TGLPlotCamera Class Reference

Camera for TGLPlotPainter and sub-classes.

Definition at line 21 of file TGLPlotCamera.h.

Public Member Functions

 TGLPlotCamera ()
 Construct camera for plot painters. More...
 
virtual ~TGLPlotCamera ()
 
void SetViewport (const TGLRect &vp)
 Setup viewport, if it was changed, plus reset arcball. More...
 
void SetViewVolume (const TGLVertex3 *box)
 'box' is the TGLPlotPainter's back box's coordinates. More...
 
void StartRotation (Int_t px, Int_t py)
 User clicks somewhere (px, py). More...
 
void RotateCamera (Int_t px, Int_t py)
 Mouse movement. More...
 
void StartPan (Int_t px, Int_t py)
 User clicks somewhere (px, py). More...
 
void Pan (Int_t px, Int_t py)
 Pan camera. More...
 
void ZoomIn ()
 Zoom in. More...
 
void ZoomOut ()
 Zoom out. More...
 
void SetCamera () const
 Viewport and projection. More...
 
void Apply (Double_t phi, Double_t theta) const
 Applies rotations and translations before drawing. More...
 
Bool_t ViewportChanged () const
 
Int_t GetX () const
 viewport[0] More...
 
Int_t GetY () const
 viewport[1] More...
 
Int_t GetWidth () const
 viewport[2] More...
 
Int_t GetHeight () const
 viewport[3] More...
 

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 &)
 

#include <TGLPlotCamera.h>

+ Collaboration diagram for TGLPlotCamera:

Constructor & Destructor Documentation

§ TGLPlotCamera() [1/2]

TGLPlotCamera::TGLPlotCamera ( const TGLPlotCamera )
private

§ TGLPlotCamera() [2/2]

TGLPlotCamera::TGLPlotCamera ( )

Construct camera for plot painters.

Definition at line 26 of file TGLPlotCamera.cxx.

§ ~TGLPlotCamera()

virtual TGLPlotCamera::~TGLPlotCamera ( )
inlinevirtual

Definition at line 40 of file TGLPlotCamera.h.

Member Function Documentation

§ Apply()

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

§ GetHeight()

Int_t TGLPlotCamera::GetHeight ( ) const

§ GetWidth()

Int_t TGLPlotCamera::GetWidth ( ) const

§ GetX()

Int_t TGLPlotCamera::GetX ( ) const

viewport[0]

Definition at line 154 of file TGLPlotCamera.cxx.

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

§ GetY()

Int_t TGLPlotCamera::GetY ( ) const

viewport[1]

Definition at line 162 of file TGLPlotCamera.cxx.

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

§ operator=()

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

§ Pan()

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

§ RotateCamera()

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

Mouse movement.

Definition at line 79 of file TGLPlotCamera.cxx.

Referenced by TGLHistPainter::ExecuteEvent(), and ~TGLPlotCamera().

§ SetCamera()

void TGLPlotCamera::SetCamera ( ) const

§ SetViewport()

void TGLPlotCamera::SetViewport ( const TGLRect vp)

Setup viewport, if it was changed, plus reset arcball.

Definition at line 39 of file TGLPlotCamera.cxx.

Referenced by TGLHistPainter::PadToViewport(), and ~TGLPlotCamera().

§ SetViewVolume()

void TGLPlotCamera::SetViewVolume ( const TGLVertex3 box)

§ StartPan()

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

§ StartRotation()

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

User clicks somewhere (px, py).

Definition at line 71 of file TGLPlotCamera.cxx.

Referenced by TGLHistPainter::ExecuteEvent(), and ~TGLPlotCamera().

§ ViewportChanged()

Bool_t TGLPlotCamera::ViewportChanged ( ) const
inline

Definition at line 53 of file TGLPlotCamera.h.

Referenced by TGLHistPainter::PadToViewport().

§ ZoomIn()

void TGLPlotCamera::ZoomIn ( )

Zoom in.

Definition at line 186 of file TGLPlotCamera.cxx.

Referenced by TGLHistPainter::ExecuteEvent(), and ~TGLPlotCamera().

§ ZoomOut()

void TGLPlotCamera::ZoomOut ( )

Zoom out.

Definition at line 194 of file TGLPlotCamera.cxx.

Referenced by TGLHistPainter::ExecuteEvent(), and ~TGLPlotCamera().

Member Data Documentation

§ fArcBall

TArcBall TGLPlotCamera::fArcBall
protected

Definition at line 34 of file TGLPlotCamera.h.

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

§ fCenter

TGLVertex3 TGLPlotCamera::fCenter
protected

Definition at line 32 of file TGLPlotCamera.h.

§ fMousePos

TPoint TGLPlotCamera::fMousePos
protected

Definition at line 35 of file TGLPlotCamera.h.

Referenced by Pan(), and StartPan().

§ fOrthoBox

Double_t TGLPlotCamera::fOrthoBox[4]
protected

Definition at line 31 of file TGLPlotCamera.h.

Referenced by SetCamera(), and TGLPlotCamera().

§ fShift

Double_t TGLPlotCamera::fShift
protected

Definition at line 30 of file TGLPlotCamera.h.

Referenced by Apply().

§ fTruck

TGLVector3 TGLPlotCamera::fTruck
protected

Definition at line 33 of file TGLPlotCamera.h.

Referenced by Apply(), and Pan().

§ fViewport

TGLRect TGLPlotCamera::fViewport
protected

Definition at line 28 of file TGLPlotCamera.h.

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

§ fVpChanged

Bool_t TGLPlotCamera::fVpChanged
protected

Definition at line 36 of file TGLPlotCamera.h.

Referenced by SetViewport(), and ViewportChanged().

§ fZoom

Double_t TGLPlotCamera::fZoom
protected

Definition at line 29 of file TGLPlotCamera.h.

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


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