ITK Function Reference

(V10000.1.0.60_20160308.00)
datasettype.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
16 /* */
17 
18 #ifndef DATASETTYPE_H
19 #define DATASETTYPE_H
20 
27 #define TEXT_REF "TEXT"
28 #define BINARY_REF "BINARY"
29 #define OBJECT_REF "OBJECT"
30 
31 #define AE_NOEXPORT 0
32 #define AE_EXPORT 1
33 
34 /* ******************************************************** */
39 /*
40 ** If you get these 'incompatibly defined' errors, then:
41 **
42 ** 1a. Either move your #include datasettype.h directive ahead of the clashing
43 ** product's #include directives
44 **
45 ** 1b. Or move whichever #include is including datasettype.h or introduce a new
46 ** #include datasettype.h ahead of the other product's #include.
47 **
48 ** 2. Put #undef EXPORT immediately after the #include datasettype.h
49 **
50 ** 3. Make sure that your code uses AE_EXPORT if it means AE_EXPORT. If you really
51 ** want the other product's EXPORT, then use EXPORT.
52 */
53 
54 #ifdef EXPORT
55 # error EXPORT is incompatibly defined; use AE_EXPORT and re-arrange includes
56 #else
57 # define EXPORT AE_EXPORT
58 #endif
59 #ifdef NOEXPORT
60 # error NOEXPORT is incompatibly defined; use AE_NOEXPORT and re-arrange includes
61 #else
62 # define NOEXPORT AE_NOEXPORT
63 #endif
64 
65 /* End deprecation. */
66 /* ******************************************************** */
67 
68 #include <ae/ae_types.h>
69 #include <tc/tc_startup.h>
70 #include <ae/libae_exports.h>
71 
72 #ifdef __cplusplus
73  extern "C"{
74 #endif
75 
79 extern AE_API int AE_datasettype_extent(
80  int* n_instances,
81  tag_t** instances
82  );
83 
88 extern AE_API int AE_ask_datasettype_parent(
89  tag_t datasettype,
90  tag_t* parent_type
91  );
92 
98 extern AE_API int AE_ask_datasettype_def_tool(
99  tag_t datasettype,
100  tag_t* tool
101  );
102 
108 extern AE_API int AE_ask_datasettype_def_view_tool(
109  tag_t datasettype,
110  tag_t* tool
111  );
112 
119 extern AE_API int AE_ask_datasettype_name(
120  tag_t datasettype,
121  char datasettype_name[AE_datasettype_name_size_c + 1]
122  );
123 
127 extern AE_API int AE_ask_datasettype_name2(
128  tag_t datasettype,
129  char **datasettype_name
130  );
131 
138 extern AE_API int AE_ask_datasettype_desc(
139  tag_t datasettype,
140  char datasettype_desc[AE_datasettype_desc_size_c + 1]
141  );
142 
143 
147 extern AE_API int AE_ask_datasettype_desc2(
148  tag_t datasettype,
149  char **datasettype_desc
150  );
151 
159 extern AE_API int AE_ask_datasettype_tools(
160  tag_t datasettype,
161  int* tool_count,
162  tag_t** tool_list
163  );
164 
172 extern AE_API int AE_ask_datasettype_view_tools(
173  tag_t datasettype,
174  int* tool_count,
175  tag_t** tool_list
176  );
177 
208 extern AE_API int AE_find_datasettype(
209  const char datasettype_name[AE_datasettype_name_size_c + 1],
210  tag_t* datasettype
211  );
212 
213 
241 extern AE_API int AE_find_datasettype2(
242  const char *datasettype_name,
243  tag_t* datasettype
244  );
245 
250 extern AE_API int AE_ask_datasettype_children(
251  tag_t datasettype,
252  int* child_count,
253  tag_t** child_tags
254  );
255 
259 extern AE_API int AE_ask_datasettype_action(
260  tag_t datasettype,
261  AE_action_t action,
262  int* on_or_off
263  );
264 
268 extern AE_API int AE_init_datasettype_actions(
269  tag_t datasettype,
270  int on_or_off
271  );
272 
306 extern AE_API int AE_ask_datasettype_refs(
307  tag_t datasettype,
308  int* ref_count,
309  char*** ref_list
310  );
311 
322 extern AE_API int AE_ask_datasettype_file_refs(
323  tag_t datasettype,
324  const char* ref_name,
325  int* count,
326  char*** ref_templates,
327  char*** ref_formats
328  );
329 
333 extern AE_API int AE_ask_tool_oper_refs(
334  tag_t dtag,
335  tag_t tool,
336  int oper_name,
337  int* no_refs,
338  char*** ref_names,
339  int** export_flags
341  );
342 
346 extern AE_API int AE_ask_tool_oper_params(
347  tag_t dtag,
348  tag_t tool,
349  int oper_name,
350  int* no_params,
351  char*** param_names
353  );
354 
357 extern AE_API int AE_ask_oper_preaction(
358  tag_t dtag,
359  tag_t tool,
360  int oper_name,
361  tag_t* preaction_tool
362  );
363 
364 extern AE_API int AE_ask_oper_postaction (
365  tag_t dtag,
366  tag_t tool,
367  int oper_name,
368  tag_t* postaction_tool
369  );
370 
371 extern AE_API int AE_ask_oper_preaction_params (
372  tag_t dtag,
373  tag_t tool,
374  int oper_name,
375  int* no_params,
376  char*** param_names
377  );
378 
379 extern AE_API int AE_ask_oper_postaction_params (
380  tag_t dtag,
381  tag_t tool,
382  int oper_name,
383  int* no_params,
384  char*** param_names
385  );
386 
387 #ifdef __cplusplus
388 }
389 #endif
390 
393 #include <ae/libae_undef.h>
394 #endif