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 TClass * | IsA () 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 TClass * | Class () |
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 | |
TGLPlotCamera & | operator= (const TGLPlotCamera &)=delete |
#include <TGLPlotCamera.h>
|
privatedelete |
TGLPlotCamera::TGLPlotCamera | ( | ) |
Construct camera for plot painters.
Definition at line 24 of file TGLPlotCamera.cxx.
|
inlinevirtual |
Definition at line 40 of file TGLPlotCamera.h.
Applies rotations and translations before drawing.
Definition at line 139 of file TGLPlotCamera.cxx.
Definition at line 59 of file TGLPlotCamera.h.
Definition at line 59 of file TGLPlotCamera.h.
Int_t TGLPlotCamera::GetHeight | ( | ) | const |
viewport[3]
Definition at line 176 of file TGLPlotCamera.cxx.
Int_t TGLPlotCamera::GetWidth | ( | ) | const |
viewport[2]
Definition at line 168 of file TGLPlotCamera.cxx.
Int_t TGLPlotCamera::GetX | ( | ) | const |
viewport[0]
Definition at line 152 of file TGLPlotCamera.cxx.
Int_t TGLPlotCamera::GetY | ( | ) | const |
viewport[1]
Definition at line 160 of file TGLPlotCamera.cxx.
Definition at line 59 of file TGLPlotCamera.h.
|
privatedelete |
Pan camera.
Definition at line 94 of file TGLPlotCamera.cxx.
Mouse movement.
Definition at line 77 of file TGLPlotCamera.cxx.
void TGLPlotCamera::SetCamera | ( | ) | const |
Viewport and projection.
Definition at line 117 of file TGLPlotCamera.cxx.
Setup viewport, if it was changed, plus reset arcball.
Definition at line 37 of file TGLPlotCamera.cxx.
void TGLPlotCamera::SetViewVolume | ( | const TGLVertex3 * | box | ) |
'box' is the TGLPlotPainter's back box's coordinates.
Definition at line 53 of file TGLPlotCamera.cxx.
User clicks somewhere (px, py).
Definition at line 85 of file TGLPlotCamera.cxx.
User clicks somewhere (px, py).
Definition at line 69 of file TGLPlotCamera.cxx.
|
inline |
Definition at line 59 of file TGLPlotCamera.h.
|
inline |
Definition at line 53 of file TGLPlotCamera.h.
void TGLPlotCamera::ZoomIn | ( | ) |
Zoom in.
Definition at line 184 of file TGLPlotCamera.cxx.
void TGLPlotCamera::ZoomOut | ( | ) |
Zoom out.
Definition at line 192 of file TGLPlotCamera.cxx.
|
protected |
Definition at line 34 of file TGLPlotCamera.h.
|
protected |
Definition at line 32 of file TGLPlotCamera.h.
|
protected |
Definition at line 35 of file TGLPlotCamera.h.
|
protected |
Definition at line 31 of file TGLPlotCamera.h.
|
protected |
Definition at line 30 of file TGLPlotCamera.h.
|
protected |
Definition at line 33 of file TGLPlotCamera.h.
|
protected |
Definition at line 28 of file TGLPlotCamera.h.
|
protected |
Definition at line 36 of file TGLPlotCamera.h.
|
protected |
Definition at line 29 of file TGLPlotCamera.h.