Moka controlers
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
controler-gmap-types.hh
Go to the documentation of this file.
1
/*
2
* lib-controler-gmap : Le contrôleur de 3-G-cartes, surcouche de lib-controler.
3
* Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4
* http://www.sic.sp2mi.univ-poitiers.fr/
5
* Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6
* guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7
*
8
* This file is part of lib-controler-gmap
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU Lesser General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Lesser General Public License for more details.
19
*
20
* You should have received a copy of the GNU Lesser General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
//******************************************************************************
25
#ifndef CONTROLER_GMAP_TYPES_HH
26
#define CONTROLER_GMAP_TYPES_HH
27
//******************************************************************************
28
#include "
controler-types.hh
"
29
//******************************************************************************
30
namespace
GMap3d
31
{
32
//****************************************************************************
33
//@name Objets prédéfinis, (sans la polyline)
35
#define NB_PREDEFINED_OBJECTS (6)
36
37
typedef
int
TObject
;
38
39
enum
40
{
41
FIRST_OBJECT_CONTROLER_GMAP
= 0,
42
43
OBJECT_POLYGON
=
FIRST_OBJECT_CONTROLER_GMAP
,
44
OBJECT_MESH
,
45
OBJECT_SPHERE
,
46
OBJECT_CYLINDER
,
47
OBJECT_PYRAMID
,
48
OBJECT_TORUS
,
49
50
LAST_OBJECT_CONTROLER_GMAP
51
};
53
//****************************************************************************
54
enum
55
{
56
FIRST_MODE_CONTROLER_GMAP
=
LAST_MODE_CONTROLER
,
57
58
MODE_CREATION_POLYLINE
=
FIRST_MODE_CONTROLER_GMAP
,
59
MODE_CREATION_POLYGON
,
60
MODE_CREATION_MESH
,
61
MODE_CREATION_SPHERE
,
62
MODE_CREATION_CYLINDER
,
63
MODE_CREATION_PYRAMID
,
64
MODE_CREATION_TORUS
,
65
66
MODE_TRANSLATION
,
67
MODE_ROTATION
,
68
MODE_SCALE
,
69
70
MODE_ROUNDING
,
71
72
LAST_MODE_CONTROLER_GMAP
73
};
74
//****************************************************************************
75
enum
76
{
77
FIRST_MODE_OPERATION_CONTROLER_GMAP
=
LAST_MODE_OPERATION_CONTROLER
,
78
79
MODE_OPERATION_CREATION_POLYLINE
=
FIRST_MODE_OPERATION_CONTROLER_GMAP
,
80
MODE_OPERATION_CREATION_POLYGON
,
81
MODE_OPERATION_CREATION_MESH
,
82
MODE_OPERATION_CREATION_SPHERE
,
83
MODE_OPERATION_CREATION_CYLINDER
,
84
MODE_OPERATION_CREATION_PYRAMID
,
85
MODE_OPERATION_CREATION_TORUS
,
86
87
MODE_OPERATION_TRANSLATION
,
88
MODE_OPERATION_ROTATION
,
89
MODE_OPERATION_SCALE
,
90
91
MODE_OPERATION_ROUNDING
,
92
93
LAST_MODE_OPERATION_CONTROLER_GMAP
94
};
95
//****************************************************************************
96
//@name Types de listes précompilées
98
enum
99
{
100
FIRST_PRECOMPILE_CONTROLER_GMAP
=
LAST_PRECOMPILE_CONTROLER
,
101
102
PRECOMPILE_DART
=
FIRST_PRECOMPILE_CONTROLER_GMAP
,
103
PRECOMPILE_FACE
,
104
PRECOMPILE_NORMAL_VECTOR
,
105
PRECOMPILE_OBJECT_TRANSFORMATION
,
106
PRECOMPILE_PREVIEW
,
107
PRECOMPILE_SEW
,
108
#ifdef MODULE_SPAMOD
109
PRECOMPILE_SPAMOD,
110
#endif // MODULE_SPAMOD
111
PRECOMPILE_VERTEX
,
112
113
LAST_PRECOMPILE_CONTROLER_GMAP
114
};
116
//****************************************************************************
117
//@name Types de paramètres
118
typedef
int
TParameter
;
119
120
enum
121
{
122
FIRST_PARAMETER_CONTROLER_GMAP
=
LAST_PARAMETER_CONTROLER
,
123
124
// Paramètres précompiles
125
PARAMETER_DART
=
FIRST_PARAMETER_CONTROLER_GMAP
,
126
PARAMETER_FACE
,
127
PARAMETER_GRID
,
128
PARAMETER_NORMAL_VECTOR
,
129
PARAMETER_OBJECT_TRANSFORMATION
,
130
PARAMETER_PREVIEW
,
131
PARAMETER_SEW
,
132
#ifdef MODULE_SPAMOD
133
PARAMETER_SPAMOD,
134
#endif // MODULE_SPAMOD
135
PARAMETER_VERTEX
,
136
137
// Paramètres controleur
138
PARAMETER_GMAP_VERTEX
,
139
PARAMETER_CREATION
,
140
PARAMETER_SELECTION
,
141
PARAMETER_OBJECT_POSITION
,
142
PARAMETER_POLYLINE_POSITION
,
143
PARAMETER_OBJECT_TRANSLATION
,
144
PARAMETER_OBJECT_ROTATION
,
145
PARAMETER_OBJECT_SCALE
,
146
PARAMETER_OBJECT_PONDERATION
,
147
PARAMETER_OPERATIONS
,
148
149
LAST_PARAMETER_CONTROLER_GMAP
150
};
151
//****************************************************************************
152
//@name Types d'homothéties :
153
typedef
int
TScaleType
;
154
155
enum
156
{
157
SCALE_POINT
,
158
SCALE_AXE
,
159
SCALE_PLANE
160
};
161
//****************************************************************************
162
//@name Types de pondérations :
163
typedef
int
TPonderationType
;
164
165
enum
166
{
167
PONDERATION_POINT
,
168
PONDERATION_AXE
,
169
PONDERATION_PLANE
170
};
171
//****************************************************************************
172
//@name Types de lissage :
173
typedef
int
TSmoothType
;
174
175
enum
176
{
177
HERMITE_SMOOTH
,
178
BEZIER_SMOOTH
,
179
OVERHAUSER_SMOOTH
,
180
SPLINE_SMOOTH
,
181
COONS_SMOOTH
182
};
183
184
//****************************************************************************
185
enum
186
{
187
FIRST_OPERATION_CONTROLER_GMAP
=
LAST_OPERATION_CONTROLER
,
188
189
OPERATION_INVERT_LAST_OPERATION
=
FIRST_OPERATION_CONTROLER_GMAP
,
190
191
OPERATION_SELECT
,
192
193
OPERATION_CREATE
,
194
OPERATION_SEW
,
195
OPERATION_UNSEW
,
196
OPERATION_MERGE
,
197
OPERATION_MERGE_COLINEAR
,
198
OPERATION_MERGE_FACE_NODISCONNECTION
,
199
OPERATION_REMOVE_FACES_KEEP_BALLS
,
200
OPERATION_SHIFT_EDGES_INCIDENT_TO_VERTEX
,
201
OPERATION_REMOVE_DANGLING_EDGES
,
202
OPERATION_SIMPLIFY_2D_OBJECT
,
203
OPERATION_SIMPLIFY_3D_OBJECT
,
204
OPERATION_CONTRACT
,
205
OPERATION_DEL_FLAT_FACES
,
206
OPERATION_DEL_FLAT_VOLUMES
,
207
OPERATION_DELETE_DARTS
,
208
OPERATION_DUPLICATE_DARTS
,
209
OPERATION_DEL_NULL_EDGE
,
210
OPERATION_INSERT
,
211
OPERATION_STOP_UP
,
212
OPERATION_TRIANGULATE
,
213
OPERATION_QUADRANGULATE
,
214
OPERATION_EXTRUDE
,
215
OPERATION_THICKEN
,
216
OPERATION_MESH
,
217
OPERATION_SMOOTH
,
218
OPERATION_ROUND
,
219
OPERATION_TRIANGULATION
,
220
OPERATION_COREFINE
,
221
OPERATION_GEOLOGY
,
222
OPERATION_PLATE
,
223
OPERATION_DEFORM
,
224
OPERATION_MATERIALIZE
,
225
OPERATION_LOAD
,
226
OPERATION_SAVE
,
227
OPERATION_EXPORT
,
228
OPERATION_DUAL
,
229
OPERATION_EXTRACT_IMAGE
,
230
OPERATION_FIND_MOTIF_OFF
,
231
OPERATION_FIND_MOTIF_MOKA
,
232
233
LAST_OPERATION_CONTROLER_GMAP
234
};
235
//----------------------------------------------------------------------------
236
enum
237
{
238
FIRST_SUB_OPERATION_CONTROLER_GMAP
=
LAST_SUB_OPERATION_CONTROLER
,
239
240
SUB_OPERATION_INVERT_LAST_ORIENTATION
,
241
SUB_OPERATION_INVERT_LAST_GEOMETRY
,
242
243
SUB_OPERATION_CREATE_POLYLINE
,
244
SUB_OPERATION_CREATE_POLYGON
,
245
SUB_OPERATION_CREATE_MESH
,
246
SUB_OPERATION_CREATE_CYLINDER
,
247
SUB_OPERATION_CREATE_PYRAMID
,
248
SUB_OPERATION_CREATE_SPHERE
,
249
SUB_OPERATION_CREATE_TORUS
,
250
251
SUB_OPERATION_INTUITIVE
,
252
SUB_OPERATION_INTUITIVE_TOPO
,
253
SUB_OPERATION_INTUITIVE_GEO
,
254
SUB_OPERATION_TOPO
,
255
SUB_OPERATION_GEO
,
256
257
SUB_OPERATION_INTUITIVE_BORDER
,
258
SUB_OPERATION_INTUITIVE_GEO_BORDER
,
259
SUB_OPERATION_INTUITIVE_TOPO_BORDER
,
260
SUB_OPERATION_BORDERS
,
261
SUB_OPERATION_GEO_BORDERS
,
262
SUB_OPERATION_TOPO_BORDERS
,
263
264
SUB_OPERATION_QUADRANGULATE_FACES
,
265
SUB_OPERATION_QUADRANGULATE_FACES_BASIC
,
266
267
SUB_OPERATION_EXTRUDE_BY_PATH
,
268
SUB_OPERATION_EXTRUDE_BY_NORMAL
,
269
SUB_OPERATION_EXTRUDE_BY_REVOLUTION
,
270
SUB_OPERATION_INTUITIVE_EXTRUDE_BY_NORMAL
,
271
272
SUB_OPERATION_TRIANGULATION_SWAP_EDGE
,
273
SUB_OPERATION_TRIANGULATION_GEO_FACES
,
274
SUB_OPERATION_TRIANGULATION_TOPO_FACES
,
275
SUB_OPERATION_TRIANGULATION_MARK_NON_UNIFORM_FACES
,
276
SUB_OPERATION_TRIANGULATION_OPTIMIZE
,
277
SUB_OPERATION_TRIANGULATION_DELAUNAY
,
278
SUB_OPERATION_TRIANGULATION_OPTIMIZED_DELAUNAY
,
279
280
SUB_OPERATION_COREFINE2D_LINES
,
281
SUB_OPERATION_COREFINE2D_SWEEPING
,
282
SUB_OPERATION_COREFINE2D_PROPAGATION
,
283
SUB_OPERATION_COREFINE_BOOL_OPS2D
,
284
SUB_OPERATION_COREFINE3D
,
285
SUB_OPERATION_COREFINE3D_MARKED_FACES
,
286
SUB_OPERATION_COREFINE3D_MARKED_MESHES
,
287
SUB_OPERATION_COREFINE_BOOL_OPS3D
,
288
289
SUB_OPERATION_GEOLOGY_UNCERTAIN_ZONE
,
290
SUB_OPERATION_GEOLOGY_EXTEND
,
291
SUB_OPERATION_GEOLOGY_EXTEND_TO
,
292
SUB_OPERATION_GEOLOGY_SMOOTH
,
293
SUB_OPERATION_GEOLOGY_SIMPLIFY
,
294
SUB_OPERATION_GEOLOGY_RELAX
,
295
SUB_OPERATION_GEOLOGY_CENTER
,
296
SUB_OPERATION_GEOLOGY_PLATE_ON_FACES
,
297
SUB_OPERATION_GEOLOGY_PLATE_ON_EDGES
,
298
SUB_OPERATION_GEOLOGY_PLATE_ON_VERTICES
,
299
SUB_OPERATION_GEOLOGY_SELECT_VERTICES
,
300
SUB_OPERATION_GEOLOGY_SELECT_ALL_EDGES
,
301
SUB_OPERATION_GEOLOGY_SELECT_EDGES
,
302
SUB_OPERATION_GEOLOGY_SELECT_FACES
,
303
SUB_OPERATION_GEOLOGY_SELECT_BORDERS
,
304
SUB_OPERATION_GEOLOGY_IMPORT_GR2D
,
305
SUB_OPERATION_GEOLOGY_IMPORT_XYZ
,
306
SUB_OPERATION_GEOLOGY_IMPORT_TS
,
307
SUB_OPERATION_GEOLOGY_IMPORT_CLOUD
,
309
SUB_OPERATION_GEOLOGY_TRIANG_HOLES
,
310
SUB_OPERATION_GEOLOGY_HOLES_REFINEMENT
,
311
SUB_OPERATION_GEOLOGY_FILL_HOLES
,
312
SUB_OPERATION_GEOLOGY_FAILLE_DETECTION
,
313
SUB_OPERATION_GEOLOGY_EXTENSION_FAILLE
,
314
SUB_OPERATION_GEOLOGY_EXTRACT_FAILLE
,
315
SUB_OPERATION_GEOLOGY_MESH_SIMPLIFICATION
,
316
SUB_OPERATION_GEOLOGY_IMPORT_VRML
,
317
SUB_OPERATION_GEOLOGY_EXPORT_TS
,
319
320
SUB_OPERATION_TRANSLATE
,
321
SUB_OPERATION_ROTATE
,
322
SUB_OPERATION_SCALE
,
323
324
SUB_OPERATION_MATERIALIZE_BARYCENTER
,
325
SUB_OPERATION_MATERIALIZE_AXE
,
326
SUB_OPERATION_MATERIALIZE_PLANE
,
327
SUB_OPERATION_MATERIALIZE_NORMAL_VECTOR
,
328
SUB_OPERATION_MATERIALIZE_ORTHO_PLANE
,
329
SUB_OPERATION_MATERIALIZE_REFERENTIAL
,
330
331
SUB_OPERATION_SELECT_ORBIT
,
332
SUB_OPERATION_SET_SELECTION_LEVEL
,
333
SUB_OPERATION_SELECT_INCIDENTS
,
334
SUB_OPERATION_SELECT_INTERIOR
,
335
SUB_OPERATION_SELECT_INTERSECTION
,
336
SUB_OPERATION_REINIT_SELECTION
,
337
SUB_OPERATION_NEGATE_SELECTION
,
338
SUB_OPERATION_SWAP_SELECTIONS
,
339
SUB_OPERATION_EXTEND_SELECTION
,
340
SUB_OPERATION_SELECT_NON_PLANAR_FACES
,
341
SUB_OPERATION_MOVE_SELECTION
,
342
343
SUB_OPERATION_LOAD_MAP
,
344
SUB_OPERATION_ADD_MAP
,
345
346
LAST_SUB_OPERATION_CONTROLER_GMAP
347
};
348
//****************************************************************************
349
}
// namespace GMap3d
350
//******************************************************************************
351
#endif // CONTROLER_TYPES_HH
352
//******************************************************************************
lib-controler-gmap
controler-gmap-types.hh
Generated on Tue Apr 9 2013 09:51:16 for Moka controlers by
1.8.2