12 #ifndef ROOT_TGLPlotCamera 13 #define ROOT_TGLPlotCamera void SetViewport(const TGLRect &vp)
Setup viewport, if it was changed, plus reset arcball.
Camera for TGLPlotPainter and sub-classes.
void StartPan(Int_t px, Int_t py)
User clicks somewhere (px, py).
Int_t GetWidth() const
viewport[2]
Bool_t ViewportChanged() const
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void Apply(Double_t phi, Double_t theta) const
Applies rotations and translations before drawing.
#define ClassDef(name, id)
3 component (x/y/z) vertex class.
void SetCamera() const
Viewport and projection.
Viewport (pixel base) 2D rectangle class.
3 component (x/y/z) vector class.
void StartRotation(Int_t px, Int_t py)
User clicks somewhere (px, py).
void SetViewVolume(const TGLVertex3 *box)
'box' is the TGLPlotPainter's back box's coordinates.
void RotateCamera(Int_t px, Int_t py)
Mouse movement.
void Pan(Int_t px, Int_t py)
Pan camera.
TGLPlotCamera()
Construct camera for plot painters.
Int_t GetY() const
viewport[1]
Implements the arc-ball rotation manipulator.
Int_t GetHeight() const
viewport[3]
TGLPlotCamera & operator=(const TGLPlotCamera &)
Int_t GetX() const
viewport[0]