00001 /* 00002 * ExNihilo 3D Engine 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 * Please read AUTHORS file !!! 00019 * 00020 * $Id: ExCCamera.h,v 1.10 2002/11/24 11:58:55 data Exp $ 00021 * 00022 */ 00023 00024 #ifndef __EXCCAMERA_H__ 00025 #define __EXCCAMERA_H__ 00026 //-------------------------------- 00027 // File to include 00028 //-------------------------------- 00029 #include "ExDefine.h" 00030 #include "ExMath.h" 00031 #include "ExCObject3D.h" 00032 #include "ExManagerPVS.h" 00033 #include "ExManagerCollision.h" 00034 #include "ExCAction.h" 00035 //-------------------------------- 00036 class ExCCamera : public ExCObject3D 00037 { 00038 protected: 00039 //-------------------------------- 00040 // Variable 00041 //-------------------------------- 00042 bool m_Actif; 00043 float m_Zoom; 00044 float m_ClipFar; 00045 float m_ClipNear; 00046 float m_ZoomDefault; 00047 float m_ZoomMax; 00048 float m_ZoomMin; 00049 public: 00050 00051 //-------------------------------- 00052 // Constructor // Destructor 00053 //-------------------------------- 00054 ExCCamera(void); 00055 ~ExCCamera(void); 00056 //-------------------------------- 00057 // Methode 00058 //-------------------------------- 00059 virtual void Draw(void); 00060 00061 //ZOOM FUNCTION 00062 void ZoomIn(void); 00063 void ZoomOut(void); 00064 void ResetZoom(void); 00065 void ZoomIn(float zoom); 00066 void ZoomOut(float zoom); 00067 void SetZoom(float zoom); 00068 void SetZoomMax(float zoom); 00069 void SetZoomMin(float zoom); 00070 void SetZoomDefault(float zoom); 00071 float GetZoomMax(void){return m_ZoomMax;} 00072 float GetZoomMin(void){return m_ZoomMin;} 00073 float GetZoom(void){return m_Zoom;} 00074 float GetZoomDefault(void){return m_ZoomDefault;} 00075 //CLIPPING FUNCTION 00076 void SetClipFar(float clip); 00077 void SetClipNear(float clip); 00078 float GetClipFar(void){return m_ClipFar;} 00079 float GetClipNear(void){return m_ClipNear;} 00080 00081 int m_CurrentAction; 00082 std::vector<int> m_VecAction; 00083 std::vector<int>::iterator m_ItVecAction; 00084 00085 void StartAction(int Action); 00086 void StopAction(int Action); 00087 void Process(void); 00088 //-------------------------------- 00089 // Operator 00090 //-------------------------------- 00091 //-------------------------------- 00092 // friends 00093 //-------------------------------- 00094 }; 00095 #endif //__EXCCAMERA_H__