00001
00002 #ifndef MULTISURFACE_H
00003 #define MULTISURFACE_H
00004 #include <string>
00005
00006
00015 using namespace std;
00016
00017 class Point;
00018
00019
00020 class MultiSurface
00021 {
00022
00023
00024
00025
00026 private:
00027
00028 static int nbComposantAttendus;
00029
00030 typedef struct mapZone {
00031 double x ;
00032 double y ;
00033 double propL ;
00034 double propH ;
00035 } ;
00036
00037
00038 typedef struct mapCG {
00039 int idS ;
00040 int idZ ;
00041 char* nom ;
00042 } ;
00043
00044
00045 int ID ;
00046
00047
00048
00049
00050 protected:
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066 public :
00067
00068 void printMap(int id) ;
00073 void selectionCG(int idS);
00078 void deSelectionCG(int idG);
00083 void supprimer(int idG);
00088 void setMode(int ed);
00094 void activerS(int id, bool etat);
00099 void verifierNomGraphe(char* nom, bool graphe, bool miniature );
00109 void deplacerCG(int ids1,int idz1,int ids2,int idz2,int idg,char *type);
00116 void modVisu(bool unD,bool deuxD,bool troisD);
00127 void creerCG(char* strNom,bool graphe,bool miniature,int strIdg, int strIdm,int strIds,int strIdz);
00128
00138 void MAJmapZone ( int idS, int idZ, double x, double y , double L, double H ) ;
00139
00146 void envNomOK(char* nom, int idg, int idm) ;
00147
00152 void setGraph() ;
00153
00160 void moveCG (int idCG, double x, double y );
00161
00162
00163
00164
00165
00166
00167
00168
00169
00174 MultiSurface();
00175
00176
00177
00178
00179
00180 void init();
00181
00185 void print();
00186
00187
00191 void destruction();
00192
00193 };
00194
00195
00196 #endif