ROOT » GRAF3D » GL » TGLPlotCamera

class TGLPlotCamera


 Camera for TGLPlotPainter and sub-classes.

Function Members (Methods)

public:
virtual~TGLPlotCamera()
voidApply(Double_t phi, Double_t theta) const
static TClass*Class()
Int_tGetHeight() const
Int_tGetWidth() const
Int_tGetX() const
Int_tGetY() const
virtual TClass*IsA() const
voidPan(Int_t px, Int_t py)
voidRotateCamera(Int_t px, Int_t py)
voidSetCamera() const
voidSetViewport(const TGLRect& vp)
voidSetViewVolume(const TGLVertex3* box)
virtual voidShowMembers(TMemberInspector& insp) const
voidStartPan(Int_t px, Int_t py)
voidStartRotation(Int_t px, Int_t py)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLPlotCamera()
Bool_tViewportChanged() const
voidZoomIn()
voidZoomOut()

Data Members

protected:
TArcBallfArcBall
TGLVertex3fCenter
TPointfMousePos
Double_tfOrthoBox[4]
Double_tfShift
TGLVector3fTruck
TGLRectfViewport
Bool_tfVpChanged
Double_tfZoom

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLPlotCamera()
Construct camera for plot painters.
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.
   fCenter[0] = (box[0].X() + box[1].X()) / 2;
   fCenter[1] = (box[0].Y() + box[2].Y()) / 2;
   fCenter[2] = (box[0].Z() + box[4].Z()) / 2;
   const Double_t maxDim = box[1].X() - box[0].X();
   fOrthoBox[0] = maxDim;
   fOrthoBox[1] = maxDim;
   fOrthoBox[2] = -100 * maxDim;//100?
   fOrthoBox[3] = 100 * maxDim;
fShift = maxDim * 1.5;
void StartRotation(Int_t px, Int_t py)
User clicks somewhere (px, py).
void RotateCamera(Int_t px, Int_t py)
Mouse movement.
void StartPan(Int_t px, Int_t py)
User clicks somewhere (px, py).
void Pan(Int_t px, Int_t py)
Pan camera.
void SetCamera() const
Viewport and projection.
void Apply(Double_t phi, Double_t theta) const
Applies rotations and translations before drawing
Int_t GetX() const
viewport[0]
Int_t GetY() const
viewport[1]
Int_t GetWidth() const
viewport[2]
Int_t GetHeight() const
viewport[3]
void ZoomIn()
Zoom in.
void ZoomOut()
Zoom out.
TGLPlotCamera(const TGLPlotCamera& )
TGLPlotCamera& operator=(const TGLPlotCamera& )
virtual ~TGLPlotCamera()
{}
Bool_t ViewportChanged() const
{return fVpChanged;}