1 | |
---|
2 | // DO-NOT-DELETE bocca.splicer.begin(iMeshC.comment) |
---|
3 | |
---|
4 | // Insert-UserCode-Here {iMeshC.comment} (Insert your package comments here) |
---|
5 | |
---|
6 | // DO-NOT-DELETE bocca.splicer.end(iMeshC.comment) |
---|
7 | package iMeshC version 0.0 { |
---|
8 | |
---|
9 | // DO-NOT-DELETE bocca.splicer.begin(iMeshC.iMeshPort.comment) |
---|
10 | |
---|
11 | // Insert-UserCode-Here {iMeshC.iMeshPort.comment} (Insert your port comments here) |
---|
12 | |
---|
13 | /** single call, worst case scenario */ |
---|
14 | enum AdjacencyInfo { |
---|
15 | UNAVAILABLE, /**< Adjacency information not supported */ |
---|
16 | ALL_ORDER_1, /**< Stored or local traversal */ |
---|
17 | ALL_ORDER_LOGN, /**< Computation required, e.g., Tree search */ |
---|
18 | ALL_ORDER_N, /**< Computation required, e.g., Global search */ |
---|
19 | SOME_ORDER_1, /**< Some connectivity available, stored or local */ |
---|
20 | SOME_ORDER_LOGN, /**< Some connectivity available, log(n) computation */ |
---|
21 | SOME_ORDER_N /**< Some connectivity available, n computation */ |
---|
22 | }; |
---|
23 | |
---|
24 | enum EntityTopology { |
---|
25 | POINT, /**< a general zero-dimensional entity */ |
---|
26 | LINE_SEGMENT, /**< a general one-dimensional entity */ |
---|
27 | POLYGON, /**< a general two-dimensional element */ |
---|
28 | TRIANGLE, /**< a three-sided, two-dimensional element */ |
---|
29 | QUADRILATERAL, /**< a four-sided, two-dimensional element */ |
---|
30 | POLYHEDRON, /**< a general three-dimensional element */ |
---|
31 | TETRAHEDRON, /**< a four-sided, three-dimensional element whose |
---|
32 | * faces are quadrilaterals */ |
---|
33 | HEXAHEDRON, /**< a six-sided, three-dimensional element whose |
---|
34 | * faces are quadrilaterals */ |
---|
35 | PRISM, /**< a five-sided, three-dimensional element which |
---|
36 | * has three quadrilateral faces and two |
---|
37 | * triangular faces */ |
---|
38 | PYRAMID, /**< a five-sided, three-dimensional element |
---|
39 | * which has one quadrilateral face and four |
---|
40 | * triangular faces */ |
---|
41 | SEPTAHEDRON, /**< a hexahedral entity with one collapsed edge |
---|
42 | * - a seven noded element with six faces */ |
---|
43 | ALL_TOPOLOGIES /**< allows the user to request information |
---|
44 | * about all the topology types */ |
---|
45 | }; |
---|
46 | |
---|
47 | enum EntityType { |
---|
48 | VERTEX, |
---|
49 | EDGE, |
---|
50 | FACE, |
---|
51 | REGION, |
---|
52 | ALL_TYPES |
---|
53 | }; |
---|
54 | |
---|
55 | |
---|
56 | enum StorageOrder { |
---|
57 | BLOCKED, |
---|
58 | INTERLEAVED, |
---|
59 | UNDETERMINED |
---|
60 | }; |
---|
61 | |
---|
62 | enum CreationStatus { |
---|
63 | NEW, |
---|
64 | ALREADY_EXISTED, |
---|
65 | CREATED_DUPLICATE, |
---|
66 | CREATION_FAILED |
---|
67 | }; |
---|
68 | |
---|
69 | enum ErrorActions { |
---|
70 | SILENT, // does nothing, not recommended |
---|
71 | WARN_ONLY, // prints something, but nothing else |
---|
72 | THROW_ERROR // throws an exception |
---|
73 | }; |
---|
74 | |
---|
75 | |
---|
76 | enum ErrorType { |
---|
77 | SUCCESS, |
---|
78 | DATA_ALREADY_LOADED, |
---|
79 | NO_DATA, |
---|
80 | FILE_NOT_FOUND, |
---|
81 | FILE_ACCESS_ERROR, |
---|
82 | NIL_ARRAY, // array was supposed to be initialized and have data |
---|
83 | BAD_ARRAY_SIZE, |
---|
84 | BAD_ARRAY_DIMENSION, // all tstt arrays should be 1D |
---|
85 | INVALID_ENTITY_HANDLE, |
---|
86 | INVALID_ENTITY_COUNT, |
---|
87 | INVALID_ENTITY_TYPE, |
---|
88 | INVALID_ENTITY_TOPOLOGY, |
---|
89 | BAD_TYPE_AND_TOPO, |
---|
90 | ENTITY_CREATION_ERROR, |
---|
91 | INVALID_TAG_HANDLE, |
---|
92 | TAG_NOT_FOUND, |
---|
93 | TAG_ALREADY_EXISTS, |
---|
94 | TAG_IN_USE, |
---|
95 | INVALID_ENTITYSET_HANDLE, |
---|
96 | INVALID_ITERATOR_HANDLE, |
---|
97 | INVALID_ARGUMENT, |
---|
98 | ARGUMENT_OUT_OF_RANGE, |
---|
99 | MEMORY_ALLOCATION_FAILED, |
---|
100 | NOT_SUPPORTED, |
---|
101 | ENTITY_IN_USE, |
---|
102 | FAILURE |
---|
103 | }; |
---|
104 | |
---|
105 | |
---|
106 | class Error extends sidl.SIDLException { |
---|
107 | void set(in ErrorType error, in string description); |
---|
108 | void getErrorType(out ErrorType err_type); |
---|
109 | void get(out ErrorType err, out string description); |
---|
110 | void getDescription(out string description); |
---|
111 | void echo(in string label); // prints label and then description string to stderr |
---|
112 | }; |
---|
113 | |
---|
114 | enum TagValueType { |
---|
115 | INTEGER, |
---|
116 | DOUBLE, |
---|
117 | ENTITY_HANDLE, |
---|
118 | BYTES |
---|
119 | }; |
---|
120 | |
---|
121 | // DO-NOT-DELETE bocca.splicer.end(iMeshC.iMeshPort.comment) |
---|
122 | interface iMeshPort extends gov.cca.Port |
---|
123 | { |
---|
124 | // DO-NOT-DELETE bocca.splicer.begin(iMeshC.iMeshPort.methods) |
---|
125 | |
---|
126 | //--------------------------------------------------------------------- |
---|
127 | // iMesh methods |
---|
128 | //--------------------------------------------------------------------- |
---|
129 | |
---|
130 | // Created new "newMesh" function from original class declaration in |
---|
131 | // iMesh package |
---|
132 | void newMesh(in string options, out opaque new_mesh) |
---|
133 | throws Error; |
---|
134 | void deleteMesh(in opaque mesh) throws Error; |
---|
135 | // Added arg1 of load and save, in opaque mesh |
---|
136 | void load( in opaque mesh, in opaque entity_set_handle, |
---|
137 | in string name, in string options) throws Error; |
---|
138 | void save( in opaque mesh, in opaque entity_set_handle, in string name, |
---|
139 | in string options) throws Error; |
---|
140 | void getRootSet(in opaque mesh, out opaque root_set) throws Error; |
---|
141 | // Changed arg2 of getDfltStorage from StorageOrder to int |
---|
142 | void getDfltStorage(in opaque mesh, out int dflt_storage) |
---|
143 | throws Error; |
---|
144 | // Added arg1 of getAllVtxCoords, in opaque mesh, and changed arg7 to |
---|
145 | // int |
---|
146 | void getAllVtxCoords(in opaque mesh, |
---|
147 | in opaque entity_set, |
---|
148 | out array<double> coords, |
---|
149 | out int coords_size, |
---|
150 | inout array<int> in_entity_set, |
---|
151 | out int in_entity_set_size, |
---|
152 | inout int storage_order) |
---|
153 | throws Error; |
---|
154 | // Added arg1 of getGeometricDim, in opaque mesh |
---|
155 | void getGeometricDim(in opaque mesh, out int dim) throws Error; |
---|
156 | // Added arg1 of getAdjTable, in opaque mesh |
---|
157 | void getAdjTable( in opaque mesh, |
---|
158 | out array< AdjacencyInfo > adjacency_table, |
---|
159 | out int adjacency_table_size) throws Error; |
---|
160 | // Added arg1 of areEHValid, in opaque mesh |
---|
161 | void areEHValid(in opaque mesh, in int reset, out int are_valid) |
---|
162 | throws Error; |
---|
163 | // Added arg1 of getNumOfType, in opaque mesh |
---|
164 | void getNumOfType(in opaque mesh, in opaque entity_set_handle, |
---|
165 | in EntityType entity_type, |
---|
166 | out int num_type) throws Error; |
---|
167 | // Added arg1 of getNumOfTopo, in opaque mesh |
---|
168 | void getNumOfTopo(in opaque mesh, in opaque entity_set_handle, |
---|
169 | in EntityTopology entity_topology, |
---|
170 | out int num_topo) throws Error; |
---|
171 | // size of the offset array will be entity_topology_size+1, |
---|
172 | // already in docs |
---|
173 | // Added arg1 of getVtxCoordIndex, in opaque mesh |
---|
174 | void getVtxCoordIndex(in opaque mesh, in opaque entity_set, |
---|
175 | in EntityType requested_entity_type, |
---|
176 | in EntityTopology requested_entity_topology, |
---|
177 | in EntityType entity_adjacency_type, |
---|
178 | inout array<int> offset, |
---|
179 | out int offset_size, |
---|
180 | inout array<int> index, |
---|
181 | out int index_size, |
---|
182 | inout array<EntityTopology> |
---|
183 | entity_topologies, |
---|
184 | out int entity_topologies_size) |
---|
185 | throws Error; |
---|
186 | // Added arg1 of getEntities, in opaque mesh |
---|
187 | void getEntities(in opaque mesh, in opaque entity_set, |
---|
188 | in EntityType entity_type, |
---|
189 | in EntityTopology entity_topology, |
---|
190 | inout array<opaque> entity_handles, |
---|
191 | out int entity_handles_size) throws Error; |
---|
192 | // Added arg1 of getVtxArrCoords, in opaque mesh, and arg4 from |
---|
193 | // StorageOrder to int |
---|
194 | void getVtxArrCoords(in opaque mesh, in array<opaque> vertex_handles, |
---|
195 | in int vertex_handles_size, |
---|
196 | inout int storage_order, |
---|
197 | inout array<double> coords, |
---|
198 | out int coords_size) throws Error; |
---|
199 | // Added arg1 of getAdjEntities, in opaque mesh |
---|
200 | void getAdjEntities(in opaque mesh, in opaque entity_set, |
---|
201 | in EntityType entity_type_requestor, |
---|
202 | in EntityTopology entity_topology_requestor, |
---|
203 | in EntityType entity_type_requested, |
---|
204 | inout array<opaque> adj_entity_handles, |
---|
205 | out int adj_entity_handles_size, |
---|
206 | inout array<int> offset, |
---|
207 | out int offset_size, |
---|
208 | inout array<int> in_entity_set, |
---|
209 | out int in_entity_set_size) throws Error; |
---|
210 | // Added arg1 of initEntIter, in opaque mesh |
---|
211 | void initEntIter(in opaque mesh, in opaque entity_set_handle, |
---|
212 | in EntityType requested_entity_type, |
---|
213 | in EntityTopology requested_entity_topology, |
---|
214 | out opaque entity_iterator ) throws Error; |
---|
215 | // Added arg1 of getNextEntIter, in opaque mesh |
---|
216 | void getNextEntIter(in opaque mesh, in opaque entity_iterator, |
---|
217 | out opaque entity_handle, |
---|
218 | out int at_end) throws Error; |
---|
219 | // Added arg1 of reset/endEntArrIter, in opaque mesh |
---|
220 | void resetEntIter(in opaque mesh, in opaque entity_iterator) |
---|
221 | throws Error; |
---|
222 | void endEntIter(in opaque mesh, in opaque entity_iterator) |
---|
223 | throws Error; |
---|
224 | // Added arg1 of getEntTopo/Type, in opaque mesh |
---|
225 | void getEntTopo(in opaque mesh, in opaque entity_handle, |
---|
226 | out EntityTopology ent_topo) throws Error; |
---|
227 | void getEntType(in opaque mesh, in opaque entity_handle, |
---|
228 | out EntityType ent_type) throws Error; |
---|
229 | // Added arg1 of getVtxCoord, in opaque mesh |
---|
230 | void getVtxCoord(in opaque mesh, in opaque vertex_handle, |
---|
231 | out double x, out double y, out double z) throws Error; |
---|
232 | void getEntAdj(in opaque mesh, in opaque entity_handle, |
---|
233 | in EntityType entity_type_requested, |
---|
234 | inout array<opaque> adj_entity_handles, |
---|
235 | out int adj_entity_handles_size) throws Error; |
---|
236 | // Added arg1 of getEnt2ndAdj, in opaque mesh |
---|
237 | void getEnt2ndAdj(in opaque mesh, in opaque entity_handle, |
---|
238 | in EntityType order_adjacent_key, |
---|
239 | in EntityType entity_type_requested, |
---|
240 | inout array<opaque> adj_entity_handles, |
---|
241 | out int adj_entity_handles_size) throws Error; |
---|
242 | // Added arg1 of initEntArrIter, in opaque mesh |
---|
243 | void initEntArrIter(in opaque mesh, in opaque entity_set_handle, |
---|
244 | in EntityType requested_entity_type, |
---|
245 | in EntityTopology requested_entity_topology, |
---|
246 | in int requested_array_size, |
---|
247 | out opaque entArr_iterator ) throws Error; |
---|
248 | // Added arg1 of getNextEntArrIter, in opaque mesh |
---|
249 | void getNextEntArrIter(in opaque mesh, in opaque entArr_iterator, |
---|
250 | inout array<opaque> entity_handles, |
---|
251 | out int entity_handles_size, |
---|
252 | out int at_end) throws Error; |
---|
253 | // Added arg1 of reset/endEntArrIter, in opaque mesh |
---|
254 | void resetEntArrIter(in opaque mesh, in opaque entArr_iterator) |
---|
255 | throws Error; |
---|
256 | void endEntArrIter(in opaque mesh, in opaque entArr_iterator) |
---|
257 | throws Error; |
---|
258 | // Added arg1 of getEntArrTopo/Type, in opaque mesh |
---|
259 | void getEntArrTopo(in opaque mesh, in array<opaque> entity_handles, |
---|
260 | in int entity_handles_size, |
---|
261 | inout array<EntityTopology> topology, |
---|
262 | out int topology_size) throws Error; |
---|
263 | void getEntArrType(in opaque mesh, in array<opaque> entity_handles, |
---|
264 | in int entity_handles_size, |
---|
265 | inout array<EntityType> type, |
---|
266 | out int type_size) throws Error; |
---|
267 | // Added arg1 or getEntArrAdj/getEntArr2ndAdj, in opaque mesh |
---|
268 | void getEntArrAdj(in opaque mesh, in array<opaque> entity_handles, |
---|
269 | in int entity_handles_size, |
---|
270 | in EntityType entity_type_requested, |
---|
271 | inout array<opaque> adj_entity_handles, |
---|
272 | out int adj_entity_handles_size, |
---|
273 | inout array<int> offset, |
---|
274 | out int offset_size) throws Error; |
---|
275 | void getEntArr2ndAdj(in opaque mesh, in array<opaque> entity_handles, |
---|
276 | in int entity_handles_size, |
---|
277 | in EntityType order_adjacent_key, |
---|
278 | in EntityType entity_type_requested, |
---|
279 | inout array<opaque> adj_entity_handles, |
---|
280 | out int adj_entity_handles_size, |
---|
281 | inout array<int> offset, |
---|
282 | out int offset_size) throws Error; |
---|
283 | // Added arg1 of setVtxCoords/createVtxCoords, in opaque mesh |
---|
284 | void setVtxCoords(in opaque mesh, in opaque vertex_handle, |
---|
285 | in double x, in double y, in double z) |
---|
286 | throws Error; |
---|
287 | void createVtx(in opaque mesh, in double x, in double y, in double z, |
---|
288 | out opaque new_vertex_handle) throws Error; |
---|
289 | // Added arg1 of createEnt/deleteEnt, in opaque mesh |
---|
290 | void createEnt(in opaque mesh, |
---|
291 | in EntityTopology new_entity_topology, |
---|
292 | in array<opaque> lower_order_entity_handles, |
---|
293 | in int lower_order_entity_handles_size, |
---|
294 | out opaque new_entity_handle, |
---|
295 | out CreationStatus status) throws Error; |
---|
296 | void deleteEnt(in opaque mesh, in opaque entity_handle) |
---|
297 | throws Error; |
---|
298 | // Added arg1 of setVtxArrCoords, in opaque mesh |
---|
299 | void setVtxArrCoords(in opaque mesh, in array<opaque> vertex_handles, |
---|
300 | in int vertex_handles_size, |
---|
301 | in StorageOrder storage_order, |
---|
302 | in array<double> new_coords, |
---|
303 | in int new_coords_size) throws Error; |
---|
304 | // Added arg1 of createVtxArr, in opaque mesh |
---|
305 | void createVtxArr(in opaque mesh, in int num_verts, |
---|
306 | in StorageOrder storage_order, |
---|
307 | in array<double> new_coords, |
---|
308 | in int new_coords_size, |
---|
309 | inout array<opaque> new_vertex_handles, |
---|
310 | out int new_vertex_handles_size) |
---|
311 | throws Error; |
---|
312 | // Added arg1 of createEntArr/deleteEntArr, in opaque mesh, |
---|
313 | // and changed arg7 to type int. |
---|
314 | void createEntArr(in opaque mesh, |
---|
315 | in EntityTopology new_entity_topology, |
---|
316 | in array<opaque> lower_order_entity_handles, |
---|
317 | in int lower_order_entity_handles_size, |
---|
318 | inout array<opaque> new_entity_handles, |
---|
319 | out int new_entity_handles_size, |
---|
320 | inout array<int> status, |
---|
321 | out int status_size) throws Error; |
---|
322 | void deleteEntArr(in opaque mesh, in array<opaque> entity_handles, |
---|
323 | in int entity_handles_size) throws Error; |
---|
324 | |
---|
325 | //--------------------------------------------------------------------- |
---|
326 | // iBASE methods, added "in opaque mesh" where needed |
---|
327 | //--------------------------------------------------------------------- |
---|
328 | |
---|
329 | void createTag(in opaque mesh, in string tag_name, |
---|
330 | in int number_of_values, in TagValueType tag_type, |
---|
331 | out opaque tag_handle) throws Error; |
---|
332 | void destroyTag(in opaque mesh, in opaque tag_handle, in bool forced) |
---|
333 | throws Error; |
---|
334 | void getTagName(in opaque mesh, in opaque tag_handle, |
---|
335 | out char tag_name) throws Error; |
---|
336 | |
---|
337 | void getTagSizeValues(in opaque mesh, in opaque tag_handle, |
---|
338 | out int size_values) throws Error; |
---|
339 | void getTagSizeBytes(in opaque mesh, in opaque tag_handle, |
---|
340 | out int size_bytes) throws Error; |
---|
341 | |
---|
342 | void getTagHandle(in opaque mesh, in string tag_name, |
---|
343 | out opaque tag_handle) throws Error; |
---|
344 | void getTagType(in opaque mesh, in opaque tag_handle, |
---|
345 | out TagValueType tag_data_type) throws Error; |
---|
346 | |
---|
347 | void getData(in opaque mesh, in opaque entity_handle, |
---|
348 | in opaque tag_handle, |
---|
349 | inout array<char> tag_value, |
---|
350 | out int tag_value_size) throws Error; |
---|
351 | // in bytes - number of things in the array |
---|
352 | void getIntData(in opaque mesh, in opaque entity_handle, |
---|
353 | in opaque tag_handle, |
---|
354 | out int int_data) throws Error; |
---|
355 | void getDblData(in opaque mesh, in opaque entity_handle, |
---|
356 | in opaque tag_handle, |
---|
357 | out double dbl_data) throws Error; |
---|
358 | void getEHData(in opaque mesh, in opaque entity_handle, |
---|
359 | in opaque tag_handle, |
---|
360 | out opaque eh_data) throws Error; |
---|
361 | void setData(in opaque mesh, in opaque entity_handle, |
---|
362 | in opaque tag_handle, in array<char> tag_value, |
---|
363 | in int tag_value_size) throws Error; |
---|
364 | void setIntData(in opaque mesh, in opaque entity_handle, |
---|
365 | in opaque tag_handle, in int tag_value) throws Error; |
---|
366 | void setDblData(in opaque mesh, in opaque entity_handle, |
---|
367 | in opaque tag_handle, in double tag_value) throws Error; |
---|
368 | void setEHData(in opaque mesh, in opaque entity_handle, |
---|
369 | in opaque tag_handle, in opaque tag_value) throws Error; |
---|
370 | void getAllTags(in opaque mesh, in opaque entity_handle, |
---|
371 | inout array<opaque> tag_handles, |
---|
372 | out int tag_handles_size) throws Error; |
---|
373 | void rmvTag(in opaque mesh, in opaque entity_handle, |
---|
374 | in opaque tag_handle) throws Error; |
---|
375 | |
---|
376 | void getArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
377 | in int entity_handles_size, |
---|
378 | in opaque tag_handle, |
---|
379 | inout string value_array, |
---|
380 | out int value_array_size) throws Error; |
---|
381 | void getIntArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
382 | in int entity_handles_size, |
---|
383 | in opaque tag_handle, |
---|
384 | inout array<int> value_array, |
---|
385 | out int value_array_size) throws Error; |
---|
386 | void getDblArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
387 | in int entity_handles_size, |
---|
388 | in opaque tag_handle, |
---|
389 | inout array<double> value_array, |
---|
390 | out int value_array_size) throws Error; |
---|
391 | void getEHArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
392 | in int entity_handles_size, |
---|
393 | in opaque tag_handle, |
---|
394 | inout array<opaque> value_array, |
---|
395 | out int value_array_size) throws Error; |
---|
396 | void setArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
397 | in int entity_handles_size, |
---|
398 | in opaque tag_handle, |
---|
399 | in string value_array, |
---|
400 | in int value_array_size) throws Error; |
---|
401 | void setIntArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
402 | in int entity_handles_size, |
---|
403 | in opaque tag_handle, |
---|
404 | in array<int> value_array, |
---|
405 | in int value_array_size) throws Error; |
---|
406 | void setDblArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
407 | in int entity_handles_size, |
---|
408 | in opaque tag_handle, |
---|
409 | in array<double> value_array, |
---|
410 | in int value_array_size) throws Error; |
---|
411 | void setEHArrData(in opaque mesh, in array<opaque> entity_handles, |
---|
412 | in int entity_handles_size, |
---|
413 | in opaque tag_handle, |
---|
414 | in array<opaque> value_array, |
---|
415 | in int value_array_size) throws Error; |
---|
416 | void rmvArrTag(in opaque mesh, in array<opaque> entity_handles, |
---|
417 | in int entity_handles_size, |
---|
418 | in opaque tag_handle) throws Error; |
---|
419 | |
---|
420 | void setEntSetData(in opaque mesh, in opaque entity_set, |
---|
421 | in opaque tag_handle, in string tag_value, |
---|
422 | in int tag_value_size) throws Error; |
---|
423 | void setEntSetIntData(in opaque mesh, in opaque entity_set, |
---|
424 | in opaque tag_handle, in int tag_value) |
---|
425 | throws Error; |
---|
426 | void setEntSetDblData(in opaque mesh, in opaque entity_set, |
---|
427 | in opaque tag_handle, in double tag_value) |
---|
428 | throws Error; |
---|
429 | void setEntSetEHData(in opaque mesh, in opaque entity_set, |
---|
430 | in opaque tag_handle, in opaque tag_value) |
---|
431 | throws Error; |
---|
432 | void getEntSetData(in opaque mesh, in opaque entity_set, |
---|
433 | in opaque tag_handle, inout string tag_value, |
---|
434 | out int tag_value_size) throws Error; |
---|
435 | void getEntSetIntData(in opaque mesh, in opaque entity_set, |
---|
436 | in opaque tag_handle, |
---|
437 | out int int_data) throws Error; |
---|
438 | void getEntSetDblData(in opaque mesh, in opaque entity_set, |
---|
439 | in opaque tag_handle, |
---|
440 | out double dbl_data) throws Error; |
---|
441 | void getEntSetEHData(in opaque mesh, in opaque entity_set, |
---|
442 | in opaque tag_handle, |
---|
443 | out opaque eh_data) throws Error; |
---|
444 | |
---|
445 | void getAllEntSetTags(in opaque mesh, in opaque entity_set, |
---|
446 | inout array<opaque> tag_handles, |
---|
447 | out int tag_handles_size) throws Error; |
---|
448 | void rmvEntSetTag(in opaque mesh, in opaque entity_set, |
---|
449 | in opaque tag_handle) throws Error; |
---|
450 | |
---|
451 | // create/destroy |
---|
452 | void createEntSet(in opaque mesh, in bool isList, |
---|
453 | out opaque entity_set) throws Error; |
---|
454 | |
---|
455 | void destroyEntSet(in opaque mesh, in opaque entity_set) throws Error; |
---|
456 | |
---|
457 | // is this set ordered? |
---|
458 | void isList(in opaque mesh, in opaque entity_set, |
---|
459 | out int is_list) throws Error; |
---|
460 | |
---|
461 | // get the entity sets |
---|
462 | // num_hops of >=0 is recurse down that many levels |
---|
463 | // (=0 is that ESet only) |
---|
464 | // num_hops < 0 is recurse forever |
---|
465 | void getNumEntSets(in opaque mesh, in opaque entity_set, |
---|
466 | in int num_hops, |
---|
467 | out int num_sets) throws Error; |
---|
468 | |
---|
469 | void getEntSets (in opaque mesh, in opaque entity_set, in int num_hops, |
---|
470 | inout array<opaque> contained_entset_handles, |
---|
471 | out int contained_entset_handles_size) throws Error; |
---|
472 | |
---|
473 | // add and remove entities |
---|
474 | void addEntToSet(in opaque mesh, in opaque entity_handle, |
---|
475 | inout opaque entity_set) throws Error; |
---|
476 | |
---|
477 | // if the entity isn't in the set, don't throw an error |
---|
478 | void rmvEntFromSet(in opaque mesh, in opaque entity_handle, |
---|
479 | inout opaque entity_set) throws Error; |
---|
480 | |
---|
481 | void addEntArrToSet(in opaque mesh, in array<opaque> entity_handles, |
---|
482 | in int entity_handles_size, |
---|
483 | inout opaque entity_set) throws Error; |
---|
484 | |
---|
485 | // if the entity isn't in the set, don't throw an error |
---|
486 | void rmvEntArrFromSet(in opaque mesh, in array<opaque> entity_handles, |
---|
487 | in int entity_handles_size, |
---|
488 | inout opaque entity_set) throws Error; |
---|
489 | |
---|
490 | // all entity sets are contained in root set |
---|
491 | // root set is contained in no other sets |
---|
492 | // root set cannot be removed - throw an error |
---|
493 | // can't remove anthing from root set - throw an error - use destroy |
---|
494 | |
---|
495 | // add/remove entity sets |
---|
496 | void addEntSet(in opaque mesh, in opaque entity_set_to_add, |
---|
497 | inout opaque entity_set_handle) |
---|
498 | throws Error; |
---|
499 | |
---|
500 | // if the entity set isn't in the set, don't throw an error |
---|
501 | void rmvEntSet(in opaque mesh, in opaque entity_set_to_remove, |
---|
502 | inout opaque entity_set_handle) |
---|
503 | throws Error; |
---|
504 | |
---|
505 | // check whether an entity is contained in the entity set |
---|
506 | void isEntContained(in opaque mesh, in opaque containing_entity_set, |
---|
507 | in opaque entity_handle, |
---|
508 | out int is_contained) throws Error; |
---|
509 | |
---|
510 | // check whether an entity set is contained in another |
---|
511 | void isEntSetContained(in opaque mesh, in opaque containing_entity_set, |
---|
512 | in opaque contained_entity_set, |
---|
513 | out int is_contained) throws Error; |
---|
514 | |
---|
515 | // don't throw error if parent/child already exists |
---|
516 | void addPrntChld(in opaque mesh, inout opaque parent_entity_set, |
---|
517 | inout opaque child_entity_set) throws Error; |
---|
518 | |
---|
519 | // don't throw error if parent/child link doesn't exist |
---|
520 | void rmvPrntChld(in opaque mesh, inout opaque parent_entity_set, |
---|
521 | inout opaque child_entity_set) throws Error; |
---|
522 | |
---|
523 | void isChildOf(in opaque mesh, in opaque parent_entity_set, |
---|
524 | in opaque child_entity_set, |
---|
525 | out int is_child) throws Error; |
---|
526 | |
---|
527 | void getNumChld(in opaque mesh, in opaque entity_set, in int num_hops, |
---|
528 | out int num_child) throws Error; |
---|
529 | void getNumPrnt(in opaque mesh, in opaque entity_set, in int num_hops, |
---|
530 | out int num_parent) throws Error; |
---|
531 | |
---|
532 | void getChldn(in opaque mesh, in opaque from_entity_set, |
---|
533 | in int num_hops, inout array<opaque> child_handles, |
---|
534 | out int child_handles_size) throws Error; |
---|
535 | void getPrnts(in opaque mesh, in opaque from_entity_set, |
---|
536 | in int num_hops, inout array<opaque> parent_handles, |
---|
537 | out int parent_handles_size) throws Error; |
---|
538 | |
---|
539 | void subtract(in opaque mesh, in opaque entity_set_1, |
---|
540 | in opaque entity_set_2, |
---|
541 | out opaque result_entity_set) throws Error; |
---|
542 | void intersect(in opaque mesh, in opaque entity_set_1, |
---|
543 | in opaque entity_set_2, |
---|
544 | out opaque result_entity_set) throws Error; |
---|
545 | void unite(in opaque mesh, in opaque entity_set_1, |
---|
546 | in opaque entity_set_2, |
---|
547 | out opaque result_entity_set) throws Error; |
---|
548 | |
---|
549 | // Insert-UserCode-Here {iMeshC.iMeshPort.methods} (Insert your port methods here) |
---|
550 | |
---|
551 | // DO-NOT-DELETE bocca.splicer.end(iMeshC.iMeshPort.methods) |
---|
552 | } |
---|
553 | } |
---|