12 #ifndef ROOT_TGLPerspectiveCamera
13 #define ROOT_TGLPerspectiveCamera
25 class TGLPerspectiveCamera :
public TGLCamera
31 static Double_t fgFOVMin, fgFOVDefault, fgFOVMax;
32 static UInt_t fgFOVDeltaSens;
35 TGLPerspectiveCamera();
36 TGLPerspectiveCamera(
const TGLVector3 & hAxis,
const TGLVector3 & vAxis);
37 virtual ~TGLPerspectiveCamera();
39 virtual Bool_t IsPerspective()
const {
return kTRUE; }
41 Double_t GetFOV()
const {
return fFOV; }
42 void SetFOV(Double_t fov) { fFOV = fov; }
44 virtual void Setup(
const TGLBoundingBox & box, Bool_t reset=kTRUE);
46 virtual Bool_t Zoom (Int_t delta, Bool_t mod1, Bool_t mod2);
47 using TGLCamera::Truck;
48 virtual Bool_t Truck(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2);
49 virtual void Apply(
const TGLBoundingBox & box,
const TGLRect * pickRect = 0)
const;
52 virtual void Configure(Double_t fov, Double_t dolly, Double_t center[3],
53 Double_t hRotate, Double_t vRotate);
55 ClassDef(TGLPerspectiveCamera,1)
58 #endif // ROOT_TGLPerspectiveCamera