42 fZoomMin(0.001), fZoomDefault(0.78), fZoomMax(1000.0),
149 return Zoom(delta, mod1, mod2);
219 return Truck(-xstep, -ystep);
247 const TGLRect * pickRect)
const 253 glMatrixMode(GL_PROJECTION);
255 glMatrixMode(GL_MODELVIEW);
260 glMatrixMode(GL_PROJECTION);
268 gluPickMatrix(rect.
X(), rect.
Y(), rect.
Width(), rect.
Height(),
286 glOrtho(-halfRangeX, halfRangeX,
287 -halfRangeY, halfRangeY,
293 glMatrixMode(GL_MODELVIEW);
301 gluLookAt(pos[0], pos[1], pos[2],
302 center[0], center[1], center[2],
303 up[0], up[1], up[2]);
TGLOrthoCamera()
Construct kXOY orthographic camera.
Double_t fZoom
x, y size of scene from camera view
TGLVertex3 Center() const
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
virtual Bool_t Dolly(Int_t delta, Bool_t mod1, Bool_t mod2)
Dolly the camera.
TGLVector3 Extents() const
void SetZoomMax(Double_t z)
Set maximum zoom factor.
16 component (4x4) transform matrix - column MAJOR as per GL.
Double_t fFarClip
last applied near-clip
virtual Bool_t RotateRad(Double_t hRotate, Double_t vRotate)
Rotate camera around center.
void UpdateCache() const
largest box diagonal seen in OfInterest() - used when bootstrapping interest box
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Double_t fDollyDefault
last applied far-clip
virtual Bool_t Zoom(Int_t delta, Bool_t mod1, Bool_t mod2)
Zoom the camera - 'adjust lens focal length, retaining camera position'.
3 component (x/y/z) vertex class.
TGLRect fViewport
frustum planes (cached)
Viewport (pixel base) 2D rectangle class.
Double_t fDefXSize
scene volume
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Rotate the camera round view volume center established in Setup().
3 component (x/y/z) vector class.
void SetIdentity()
Set matrix to identity.
virtual void Setup(const TGLBoundingBox &box, Bool_t reset=kTRUE)
Setup camera limits suitable to view the world volume defined by 'box' and call Reset() to initialise...
TGLVector3 GetTranslation() const
Return the translation component of matrix.
void WindowToViewport(Int_t &, Int_t &y) const
Bool_t AdjustAndClampVal(Double_t &val, Double_t min, Double_t max, Int_t screenShift, Int_t screenShiftRange, Bool_t mod1, Bool_t mod2) const
Adjust a passed REFERENCE value 'val', based on screenShift delta.
virtual ~TGLOrthoCamera()
Destroy orthographic camera.
virtual Bool_t Truck(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Truck the camera - 'move camera parallel to film plane'.
Double_t AdjustDelta(Double_t screenShift, Double_t deltaFactor, Bool_t mod1, Bool_t mod2) const
Adjust a passed screen value and apply modifiers.
virtual void Apply(const TGLBoundingBox &sceneBox, const TGLRect *pickRect=0) const
Apply the camera to the current GL context, setting the viewport, projection and modelview matrices...
void SetCenterVec(Double_t x, Double_t y, Double_t z)
Set camera center vector.
Double_t fNearClip
current camera center
TGLMatrix fLastNoPickProjM
timestamp
virtual void Reset()
Reset the camera to defaults - trucking, zooming to reframe the world volume established in Setup()...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual Bool_t Dolly(Int_t delta, Bool_t mod1, Bool_t mod2)
Dolly the camera - 'move camera along eye line, retaining lens focal length'.
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Rotate the camera - 'swivel round the view volume center'.
virtual void Configure(Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
Configure the camera state.
Orthographic projection camera.
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
you should not use this method at all Int_t Int_t z
TGLMatrix fProjM
no-pick projection matrix (cached)
Double_t Sqrt(Double_t x)
void MoveLF(Int_t ai, Double_t amount)
Translate in local frame.
void SetZoomMin(Double_t z)
Set minimum zoom factor.
TGLVector3 GetBaseVec(Int_t b) const
static UInt_t fgZoomDeltaSens
const Int_t * CArr() const