Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
virtual ~TGLPlotCamera ()
 
void Apply (Double_t phi, Double_t theta) const
 Applies rotations and translations before drawing.
 
Int_t GetHeight () const
 viewport[3]
 
Int_t GetWidth () const
 viewport[2]
 
Int_t GetX () const
 viewport[0]
 
Int_t GetY () const
 viewport[1]
 
virtual TClassIsA () const
 
void Pan (Int_t px, Int_t py)
 Pan camera.
 
void RotateCamera (Int_t px, Int_t py)
 Mouse movement.
 
void SetCamera () const
 Viewport and projection.
 
void SetViewport (const TGLRect &vp)
 Setup viewport, if it was changed, plus reset arcball.
 
void SetViewVolume (const TGLVertex3 *box)
 'box' is the TGLPlotPainter's back box's coordinates.
 
void StartPan (Int_t px, Int_t py)
 User clicks somewhere (px, py).
 
void StartRotation (Int_t px, Int_t py)
 User clicks somewhere (px, py).
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
Bool_t ViewportChanged () const
 
void ZoomIn ()
 Zoom in.
 
void ZoomOut ()
 Zoom out.
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Attributes

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

Private Member Functions

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

#include <TGLPlotCamera.h>

Constructor & Destructor Documentation

◆ TGLPlotCamera() [1/2]

TGLPlotCamera::TGLPlotCamera ( const TGLPlotCamera )
privatedelete

◆ TGLPlotCamera() [2/2]

TGLPlotCamera::TGLPlotCamera ( )

Construct camera for plot painters.

Definition at line 25 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

Applies rotations and translations before drawing.

Definition at line 140 of file TGLPlotCamera.cxx.

◆ Class()

static TClass * TGLPlotCamera::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLPlotCamera::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLPlotCamera::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 59 of file TGLPlotCamera.h.

◆ DeclFileName()

static const char * TGLPlotCamera::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 59 of file TGLPlotCamera.h.

◆ GetHeight()

Int_t TGLPlotCamera::GetHeight ( ) const

viewport[3]

Definition at line 177 of file TGLPlotCamera.cxx.

◆ GetWidth()

Int_t TGLPlotCamera::GetWidth ( ) const

viewport[2]

Definition at line 169 of file TGLPlotCamera.cxx.

◆ GetX()

Int_t TGLPlotCamera::GetX ( ) const

viewport[0]

Definition at line 153 of file TGLPlotCamera.cxx.

◆ GetY()

Int_t TGLPlotCamera::GetY ( ) const

viewport[1]

Definition at line 161 of file TGLPlotCamera.cxx.

◆ IsA()

virtual TClass * TGLPlotCamera::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 59 of file TGLPlotCamera.h.

◆ operator=()

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

◆ Pan()

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

Pan camera.

Definition at line 95 of file TGLPlotCamera.cxx.

◆ RotateCamera()

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

Mouse movement.

Definition at line 78 of file TGLPlotCamera.cxx.

◆ SetCamera()

void TGLPlotCamera::SetCamera ( ) const

Viewport and projection.

Definition at line 118 of file TGLPlotCamera.cxx.

◆ SetViewport()

void TGLPlotCamera::SetViewport ( const TGLRect vp)

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

Definition at line 38 of file TGLPlotCamera.cxx.

◆ SetViewVolume()

void TGLPlotCamera::SetViewVolume ( const TGLVertex3 box)

'box' is the TGLPlotPainter's back box's coordinates.

Definition at line 54 of file TGLPlotCamera.cxx.

◆ StartPan()

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

User clicks somewhere (px, py).

Definition at line 86 of file TGLPlotCamera.cxx.

◆ StartRotation()

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

User clicks somewhere (px, py).

Definition at line 70 of file TGLPlotCamera.cxx.

◆ Streamer()

virtual void TGLPlotCamera::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGLPlotCamera::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 59 of file TGLPlotCamera.h.

◆ ViewportChanged()

Bool_t TGLPlotCamera::ViewportChanged ( ) const
inline

Definition at line 53 of file TGLPlotCamera.h.

◆ ZoomIn()

void TGLPlotCamera::ZoomIn ( )

Zoom in.

Definition at line 185 of file TGLPlotCamera.cxx.

◆ ZoomOut()

void TGLPlotCamera::ZoomOut ( )

Zoom out.

Definition at line 193 of file TGLPlotCamera.cxx.

Member Data Documentation

◆ fArcBall

TArcBall TGLPlotCamera::fArcBall
protected

Definition at line 34 of file TGLPlotCamera.h.

◆ 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.

◆ fOrthoBox

Double_t TGLPlotCamera::fOrthoBox[4]
protected

Definition at line 31 of file TGLPlotCamera.h.

◆ fShift

Double_t TGLPlotCamera::fShift
protected

Definition at line 30 of file TGLPlotCamera.h.

◆ fTruck

TGLVector3 TGLPlotCamera::fTruck
protected

Definition at line 33 of file TGLPlotCamera.h.

◆ fViewport

TGLRect TGLPlotCamera::fViewport
protected

Definition at line 28 of file TGLPlotCamera.h.

◆ fVpChanged

Bool_t TGLPlotCamera::fVpChanged
protected

Definition at line 36 of file TGLPlotCamera.h.

◆ fZoom

Double_t TGLPlotCamera::fZoom
protected

Definition at line 29 of file TGLPlotCamera.h.

Libraries for TGLPlotCamera:

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