12#include "TGLIncludes.h"
100 glGetDoublev(GL_MODELVIEW_MATRIX, mv);
102 glGetDoublev(GL_PROJECTION_MATRIX, pr);
107 gluUnProject(px, py, 1., mv, pr, vp, &end.
X(), &end.
Y(), &end.
Z());
121 glMatrixMode(GL_PROJECTION);
132 glMatrixMode(GL_MODELVIEW);
141 glTranslated(0., 0., -
fShift);
142 glMultMatrixd(
fArcBall.GetRotMatrix());
143 glRotated(theta - 90., 1., 0., 0.);
144 glRotated(phi, 0., 0., 1.);
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
Int_t GetY() const
viewport[1]
TGLPlotCamera()
Construct camera for plot painters.
void StartPan(Int_t px, Int_t py)
User clicks somewhere (px, py).
void Apply(Double_t phi, Double_t theta) const
Applies rotations and translations before drawing.
void SetViewport(const TGLRect &vp)
Setup viewport, if it was changed, plus reset arcball.
Int_t GetX() const
viewport[0]
void RotateCamera(Int_t px, Int_t py)
Mouse movement.
void SetCamera() const
Viewport and projection.
Int_t GetWidth() const
viewport[2]
void Pan(Int_t px, Int_t py)
Pan camera.
Int_t GetHeight() const
viewport[3]
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.
Viewport (pixel base) 2D rectangle class.
3 component (x/y/z) vertex class.