library: libRGL #include "TGLPerspectiveCamera.h"

# TGLPerspectiveCamera

class description - source file - inheritance tree (.pdf)

## class TGLPerspectiveCamera : public TGLCamera

| Inheritance Chart:

`TGLCamera`

<-

`TGLPerspectiveCamera`

        public:

                               TGLPerspectiveCamera()
                       virtual ~TGLPerspectiveCamera()
                  virtual void Apply(const TGLBoundingBox& box, const TGLRect* pickRect = 0)
                static TClass* Class()
                virtual Bool_t Dolly(Int_t delta, Bool_t mod1, Bool_t mod2)
               virtual TClass* IsA() const
                  virtual void Reset()
                virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta)
                  virtual void Setup(const TGLBoundingBox& box)
                  virtual void ShowMembers(TMemberInspector& insp, char* parent)
                  virtual void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)
                virtual Bool_t Truck(Int_t x, Int_t y, Int_t xDelta, Int_t yDelta)
                virtual Bool_t Zoom(Int_t delta, Bool_t mod1, Bool_t mod2)

### Data Members

        private:

                 Double_t fDollyMin         !
                 Double_t fDollyDefault     !
                 Double_t fDollyMax         !
                 Double_t fFOV              !
                 Double_t fDolly            !
                 Double_t fVRotate          !
                 Double_t fHRotate          !
               TGLVertex3 fCenter           !
               TGLVector3 fTruck            !
          static Double_t fgFOVMin
          static Double_t fgFOVDefault
          static Double_t fgFOVMax
            static UInt_t fgDollyDeltaSens
            static UInt_t fgFOVDeltaSens

## Class Description

TGLPerspectiveCamera() : fDollyMin(1.0), fDollyDefault(10.0), fDollyMax(100.0), fFOV(fgFOVDefault), fDolly(fDollyDefault), fVRotate(0.0), fHRotate(0.0), fCenter(0.0, 0.0, 0.0), fTruck(0.0, 0.0, 0.0)

~TGLPerspectiveCamera()

void Setup(const TGLBoundingBox & box)

     Setup camera limits based on supplied bounding box.

void Reset()

Bool_t Zoom(Int_t shift, Bool_t mod1, Bool_t mod2)

Bool_t Dolly(Int_t shift, Bool_t mod1, Bool_t mod2)

Bool_t Truck(Int_t x, Int_t y, Int_t xDelta, Int_t yDelta)

    TODO: Convert TGLRect so this not required

Bool_t Rotate(Int_t xShift, Int_t yShift)

void Apply(const TGLBoundingBox & box, const TGLRect * pickRect)

### Inline Functions

                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLPerspectiveCamera.cxx,v 1.5 2005/06/21 16:54:17 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *