MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
mg_definition.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// mg_definition.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// Derniere modification par francois
20 //####// mer 03 jui 2024 16:36:26 EDT
21 //####//------------------------------------------------------------
22 //####//------------------------------------------------------------
23 #ifndef _MG_DEFINITION_
24 #define _MG_DEFINITION_
25 
26 
27 
28 
29 
30 #include <set>
31 #include <string>
32 
33 
34 
35 
36 const int MEME_SENS=1;
37 const int SENS_CONTRAIRE=-1;
38 
39 const int OK=1;
40 const int FAIL=0;
41 
42 
43 const int MAX_TYPE_SOLUTION=9;
44 const int MAX_ETAT=2;
45 
46 template <class T>
47 struct inf : std::binary_function<T, T, bool> {
48  bool operator() ( const T& x, const T& y) const {
49  return x->get_id() < y->get_id();
50  }
51 };
52 
53 /*#define MAILLEUR_AUTO 1000
54 #define TRIANGULATION 1010
55 #define IMPOSE 1020
56 #define DUPLIQUER 1030
57 #define MODIFICATION 1040
58 #define OPTIMISE 1050
59 #define DEFORME 1060
60 #define GMSH 1070
61 #define SQUELETTE 1080*/
62 
63 
64 namespace MAGIC
65 {
66 
68 {
69 public:
72 };
73 
74 };
75 
76 
77 class ORIGINE
78 {
79 public:
81 };
82 
83 
85 {
86 public:
88 
89 
90  static std::string GetEntiteName(int value)
91  {
92  switch (value) {
93  case ENTITE_NOEUD: return "ENTITE_NOEUD";
94  case ENTITE_ELEMENT1: return "ENTITE_ELEMENT1";
95  case ENTITE_ELEMENT2: return "ENTITE_ELEMENT2";
96  case ENTITE_ELEMENT3: return "ENTITE_ELEMENT3";
97  case ENTITE_ELEMENT1_NOEUD: return "ENTITE_ELEMENT1_NOEUD";
98  case ENTITE_ELEMENT2_NOEUD: return "ENTITE_ELEMENT2_NOEUD";
99  case ENTITE_ELEMENT3_NOEUD: return "ENTITE_ELEMENT3_NOEUD";
100  case ENTITE_ELEMENT1_GAUSS: return "ENTITE_ELEMENT1_GAUSS";
101  case ENTITE_ELEMENT2_GAUSS: return "ENTITE_ELEMENT2_GAUSS";
102  case ENTITE_ELEMENT3_GAUSS: return "ENTITE_ELEMENT3_GAUSS";
103  case ENTITE_ELEMENTND: return "ENTITE_ELEMENTND";
104  case ENTITE_ELEMENTND_NOEUD: return "ENTITE_ELEMENTND_NOEUD";
105  default: return "Inconnu";
106  }
107  }
108 };
109 
111 {
112 public:
114 
115  static std::string GetEntiteName(int value)
116  {
117  switch (value) {
118  case SCALAIRE: return "SCALAIRE";
119  case VECTEUR: return "VECTEUR";
120  case TENSEUR_SYM: return "TENSEUR SYMETRIQUE";
121  case TENSEUR: return "TENSEUR";
122  default: return "Inconnu";
123  }
124  }
125 };
126 
127 
128 
129 
130 
132 {
133 public:
134 
135 
137 
138 
140 
142 
143 
145 
146 };
147 
148 
150 {
151 public:
153 };
154 
156 {
157 public:
159 };
160 
162 {
163 public:
192  };
193 };
194 
195 
197 {
198 public:
200 };
201 
202 
203 
205 {
206 public:
208 };
209 
210 
211 
213 {
214 public:
216 };
217 
218 
219 };
220 #endif
221 
222 
static std::string GetEntiteName(int value)
Definition: mg_definition.h:90
@ TRIANGULATION_ARETEORIGINE
Definition: mg_definition.h:80
static std::string GetEntiteName(int value)
const int MAX_TYPE_SOLUTION
Definition: mg_definition.h:43
const int OK
Definition: mg_definition.h:39
const int MEME_SENS
Definition: mg_definition.h:36
const int FAIL
Definition: mg_definition.h:40
const int SENS_CONTRAIRE
Definition: mg_definition.h:37
const int MAX_ETAT
Definition: mg_definition.h:44
bool operator()(const T &x, const T &y) const
Definition: mg_definition.h:48