Page principale   Liste des namespaces   Hiérarchie des classes   Liste par ordre alphabétique   Liste des composants   Liste des fichiers   Composants   Déclarations  

ExManagerCam.h

Aller à la documentation de ce fichier.
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: ExManagerCam.h,v 1.5 2002/08/01 18:45:56 data Exp $
00021  *
00022  */
00023 
00024 #ifndef __EXMANAGERCAM_H__
00025 #define __EXMANAGERCAM_H__
00026 //--------------------------------
00027 // File to include
00028 //--------------------------------
00029 #include "ExDefine.h"
00030 #include "ExMath.h"
00031 #include "ExCCamera.h"
00032 #include "ExManagerPVS.h"
00033 #include "ExManagerCollision.h"
00034 #include "ExManagerId.h"
00035 //--------------------------------
00036 class ExManagerCam 
00037 {
00038 private:
00039 //--------------------------------
00040 // Variable
00041 //--------------------------------
00042         ExManagerPVS                            *ManagerPVS;
00043         ExManagerCollision                      *ManagerCollision;
00044         ExManagerId                                             *ManagerId      ;
00045 
00046         std::vector<ExCCamera> m_VecCamera;
00047         std::vector<ExCCamera>::iterator m_ItVecCamera;
00048 
00049         ExId m_CurrentCam;
00050         
00051         ExId                                            m_MultSlot1;
00052         ExId                                            m_MultSlot2;
00053         ExId                                            m_MultSlot3;
00054         ExId                                            m_MultSlot4;
00055         int                                                     itcount;
00056 public:
00057 //--------------------------------
00058 // Constructor // Destructor
00059 //--------------------------------
00060         ExManagerCam(void);
00061         ~ExManagerCam(void);
00062 //--------------------------------
00063 // Methode
00064 //--------------------------------
00065         bool                                    m_multiview;
00066         std::ostrstream *Consol;
00067         void (*WriteToConsol)(const char *Label);
00068 
00069         inline void SetManagerPVS(ExManagerPVS * PVS){ManagerPVS = PVS;}
00070         inline void SetManagerCollision(ExManagerCollision *Collision){ManagerCollision = Collision;}
00071         inline void SetManagerId(ExManagerId *Id){ManagerId     = Id;}
00072         ExCCamera * GetCurrentCam(void);
00073         void NextCam(void);
00074         void PrevCam(void);
00075         void SetCurrentCam(ExId Id);
00076         void Draw(int x,int y);
00077         void Reset(void);
00078         void Init(void);
00079         bool Init(char * FileName);
00080         ExId NewObject(void);
00081         ExCCamera *  Get(char * Name);
00082         ExCCamera *  Get(ExId Id);
00083         ExId Add(ExCCamera Object);
00084         bool Remove(ExId Id);
00085         ExId GetIdByName(char *Name);
00086         char * GetNameById(ExId Id);
00087 //--------------------------------
00088 // Operator
00089 //--------------------------------
00090 //--------------------------------
00091 // friends
00092 //--------------------------------
00093 };
00094 #endif //__EXMANAGERCAM_H__

Généré le Tue Aug 6 20:25:27 2002 pour ExNihilo par doxygen1.2.17