[╯°□°]╯︵┻━┻
 All Classes Functions Variables
Camera.h
00001 #ifndef PRJ_CAMERA_H
00002 #define PRJ_CAMERA_H
00003 
00004 #include "Obj.h"
00005 #include "String3d.h"
00006 
00007 class Camera:public Obj{
00008 public:
00009         Camera();
00010         void RotateTheta(GLdouble deg);
00011         void RotatePhi(GLdouble deg);
00012         void RotateRho(GLdouble deg);
00013         void RotateThetaMouse(GLdouble deg);
00014         void RotatePhiMouse(GLdouble deg);
00015         void RotateRhoMouse(GLdouble deg);
00016         void walk(double const& nb);
00017         void strafe(double const& nb);
00018         void jump(double const& nb);
00019         void init();
00020                 
00021         void setFollow(Obj&);
00022         void setFollow();
00023 
00024         void ApplyLeftFrustum();
00025         void ApplyRightFrustum();
00026         void look();
00027         
00028         void focusMove(double const& var);
00029         void perspectiveMove(double const& var);
00030         void motionBlurMove(double const& var);
00031         double getMotionBlur();
00032         double getPerspective();
00033         double getFocus();
00034         int getCompassState();
00035         
00036         void dispRepere();
00037         void dispInterface();
00038         
00039         void update(double deltaT);
00040         
00041         double fast;
00042         int showBoussole;
00043         bool showTerminal;
00044         
00045         void setLeftPanel(string const&);
00046         void setRightPanel(string const&);
00047         void setTitle(string const&);
00048 
00049         void PanelBackground(int );
00050 
00051         void message(string const&,double timedisp = 1500);
00052 
00053         void setmAspectRatio(double nb);
00054 
00055 private:
00056         int panelBackground;
00057         double messageTimeCount;
00058         string messagestr;
00059         string leftPanelstr;
00060         string rightPanelstr;
00061         string titlestr;
00062 
00063         Vect posLIGHT;
00064         Obj* follow;
00065         Vect w,s,q;
00066         double camSpeed;
00067         public:double theta;
00068         private:double dtheta;
00069         double ddtheta;
00070         public:double phi;
00071         private:double dphi;
00072         double ddphi;
00073         double rho;
00074         double drho;
00075         double ddrho;
00076         double thetaInterface;
00077         double phiInterface;
00078         double rhoInterface;
00079         double motionBlur;
00080         double dmotionBlur;
00081         //stereoCam
00082         double mConvergence;
00083         double dmConvergence;
00084         double mEyeSeparation;
00085         double mAspectRatio;
00086         double mFOV;
00087         double dmFOV;
00088         double mNearClippingDistance;
00089         double mFarClippingDistance;
00090 };
00091 
00092 #endif