ITK Function Reference

(V10000.1.0.60_20160308.00)
modelsearch.h
Go to the documentation of this file.
1 /*
2 // Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
3 // ==================================================
4 // Copyright 2010.
5 // Siemens Product Lifecycle Management Software Inc.
6 // All Rights Reserved.
7 // ==================================================
8 // Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
9 */
10 
17 #ifndef APPMODEL_MODELQUERY_H
18 #define APPMODEL_MODELQUERY_H
19 
20 #include <unidefs.h>
22 #include <mdl0model/libmdl0model_exports.h>
23 
98 #ifdef __cplusplus
99 extern "C"{
100 #endif
101 
110 extern MDL0MODEL_API int MODELSEARCH_create_box_zone_expression(
111  const double* box_coordinates,
112  Mdl0BoxOperator_t box_operator,
113  tag_t* box_expression
114  );
115 
124 extern MDL0MODEL_API int MODELSEARCH_create_plane_zone_expression(
125  const double* plane_coordinates,
126  Mdl0PlaneOperator_t plane_operator,
127  tag_t* plane_expression
128  );
129 
138 extern MDL0MODEL_API int MODELSEARCH_create_proximity_expression(
139  int num_target_elements,
140  const tag_t* target_elements,
141  double distance,
142  tag_t* proximity_expression
143  );
144 
153 extern MDL0MODEL_API int MODELSEARCH_create_saved_query_expression(
154  const char* name,
155  int num_entries,
156  const char** entries,
157  const char** values,
158  tag_t* saved_query_expression
159  );
160 
169 extern MDL0MODEL_API int MODELSEARCH_create_result_type_expression(
170  int num_types,
171  const char** search_types,
172  tag_t* result_type_expression
173 );
174 
185 extern MDL0MODEL_API int MODELSEARCH_create_group_expression(
186  Mdl0Operator_t group_operator,
187  int num_exprs,
188  const tag_t * exprs,
189  tag_t* group_expr
190  );
191 
203 extern MDL0MODEL_API int MODELSEARCH_execute_search(
204  tag_t collaborative_design,
205  tag_t config_context,
206  tag_t search_recipe,
207  logical apply_trushape,
208  logical load_results,
209  int* num_objects,
210  tag_t** model_elements
211  );
212 
233 extern MDL0MODEL_API int MODELSEARCH_execute_search_by_container(
234  tag_t search_container,
235  tag_t config_context,
236  logical load_elements,
237  int* number_of_elements,
238  tag_t** model_elements
239  );
240 
249 extern MDL0MODEL_API int MODELSEARCH_set_recipe_on_container(
250  tag_t collaborative_design,
251  tag_t config_context,
252  tag_t search_recipe,
253  logical apply_trushape,
254  tag_t container
255  );
256 
265 extern MDL0MODEL_API int MODELSEARCH_get_recipe_from_container(
266  tag_t container,
267  tag_t* collaborative_design,
268  tag_t* config_context,
269  tag_t* search_recipe,
270  logical* apply_trushape
271  );
272 
273 
282 extern MDL0MODEL_API int MODELSEARCH_create_configuration_context(
283  const char* revision_rule,
284  tag_t* configuration_context
285  );
286 
297  const tag_t revision_rule,
298  const tag_t variant_rule,
299  tag_t* configuration_context
300  );
301 
302 #ifdef __cplusplus
303 }
304 #endif
305 
308 #include <mdl0model/libmdl0model_undef.h>
309 #endif