ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
mechatronics
hrn.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
12
/* */
13
14
#ifndef HRN_H
15
#define HRN_H
16
17
#include <
unidefs.h
>
18
#include <mechatronics/libmechatronics_exports.h>
19
28
#define HRN_INT_NULL (-9999)
29
#define HRN_STRING_NULL "NULL"
30
#define HRN_DOUBLE_NULL ((double)-9999.99)
31
186
typedef
struct
HRN_wire_length_data_s
187
{
188
char
*
length_type
;
189
double
length_value
;
190
}
HRN_wire_length_data_t
, *
HRN_wire_length_data_p_t
;
191
192
typedef
struct
HRN_wire_color_data_s
193
{
194
char
*
color_type
;
195
char
*
color_value
;
196
}
HRN_wire_color_data_t
, *
HRN_wire_color_data_p_t
;
197
198
typedef
struct
HRN_fixing_assignment_data_s
199
{
200
double
location_value
;
201
double
orientation_value
[3];
202
}
HRN_fixing_assignment_data_t
, *
HRN_fixing_assignment_data_p_t
;
203
204
typedef
struct
HRN_connector_occ_data_s
205
{
206
char
*
id
;
207
int
alias_count
;
208
char
**
alias_ids
;
209
char
*
usage
;
210
}
HRN_connector_occ_data_t
, *
HRN_connector_occ_data_p_t
;
211
212
typedef
struct
HRN_protection_area_data_s
213
{
214
double
end_location
;
215
double
start_location
;
216
double
gradient
;
217
char
*
taping_direction
;
218
}
HRN_protection_area_data_t
, *
HRN_protection_area_data_p_t
;
219
220
typedef
struct
HRN_part_occ_data_s
221
{
222
char
*
id
;
223
int
alias_count
;
224
char
**
alias_ids
;
225
}
HRN_part_occ_data_t
, *
HRN_part_occ_data_p_t
;
226
227
typedef
struct
HRN_cavity_occ_data_s
228
{
229
char
*
id
;
230
double
position_on_wire
;
231
}
HRN_cavity_occ_data_t
, *
HRN_cavity_occ_data_p_t
;
232
233
typedef
struct
HRN_wire_protect_occ_data_s
234
{
235
char
*
id
;
236
double
protect_length
;
237
int
alias_count
;
238
char
**
alias_ids
;
239
}
HRN_wire_protect_occ_data_t
, *
HRN_wire_protect_occ_data_p_t
;
240
241
typedef
struct
HRN_general_wire_occ_data_s
242
{
243
char
*
wire_number
;
244
char
*
multiplier
;
245
char
*
offset
;
246
char
*
seperation_code
;
247
}
HRN_general_wire_occ_data_t
, *
HRN_general_wire_occ_data_p_t
;
248
249
#ifdef __cplusplus
250
extern
"C"
{
251
#endif
252
253
267
extern
MECHATRONICS_API
int
HRN_set_associated_part
(
268
tag_t
cavity_line_tag,
269
tag_t
part_line_tag,
270
tag_t
*relation_tagptr
271
);
272
283
extern
MECHATRONICS_API
int
HRN_ask_associated_parts
(
284
tag_t
cavity_line_tag,
285
int
*associated_parts_count,
286
tag_t
**associated_part_tags
287
);
288
303
extern
MECHATRONICS_API
int
HRN_unset_associated_part
(
304
tag_t
cavity_line_tag,
305
tag_t
part_line_tag
306
);
307
324
extern
MECHATRONICS_API
int
HRN_set_wire_protection_segment
(
325
tag_t
wirep_line_tag,
326
tag_t
segment_tag,
327
tag_t
*relation_tagptr
328
);
329
344
extern
MECHATRONICS_API
int
HRN_ask_wire_protection_segment
(
345
tag_t
wirep_line_tag,
346
tag_t
*segment_tag
347
);
348
365
extern
MECHATRONICS_API
int
HRN_unset_wire_protection_segment
(
366
tag_t
wirep_line_tag,
367
tag_t
segment_tag );
368
369
381
extern
MECHATRONICS_API
int
HRN_ask_wire_protection_segments
(
382
tag_t
wire_protection_line_tag,
/* <I> */
383
int
*n_segments,
/* <O> */
384
tag_t
**segment_tags
/* <OF> */
385
);
386
396
extern
MECHATRONICS_API
int
HRN_set_wire_protection_segments
(
397
tag_t
wire_protection_line_tag,
/* <I> */
398
int
n_segments,
/* <I> */
399
tag_t
* segment_tags
/* <I> */
400
);
401
414
extern
MECHATRONICS_API
int
HRN_unset_wire_protection_segments
(
415
tag_t
wire_protection_line_tag,
/* <I> */
416
int
n_segments,
/* <I> */
417
tag_t
* segment_tags
/* <I> */
418
);
419
420
430
extern
MECHATRONICS_API
int
HRN_set_protection_area_data
(
431
tag_t
wire_protect_line_tag,
432
const
HRN_protection_area_data_t
* protect_area_data
433
);
434
435
444
extern
MECHATRONICS_API
int
HRN_get_protection_area_data
(
445
tag_t
wire_protect_line_tag,
446
HRN_protection_area_data_t
* protect_area_data
447
);
448
449
461
extern
MECHATRONICS_API
int
HRN_remove_protection_area_data
(
462
tag_t
wire_protect_line_tag
463
);
464
465
478
extern
MECHATRONICS_API
int
HRN_set_fixing_segment
(
479
tag_t
bom_line_tag,
480
tag_t
segment_tag,
481
tag_t
*relation_tagptr
482
);
483
494
extern
MECHATRONICS_API
int
HRN_ask_fixing_segment
(
495
tag_t
bom_line_tag,
496
tag_t
*segment_tag
497
);
498
499
508
extern
MECHATRONICS_API
int
HRN_set_fixing_assignment_data
(
509
tag_t
fixing_line_tag,
510
const
HRN_fixing_assignment_data_t
* assignment_data
511
);
512
513
522
extern
MECHATRONICS_API
int
HRN_get_fixing_assignment_data
(
523
tag_t
fixing_line_tag,
524
HRN_fixing_assignment_data_t
* assignment_data
525
);
526
527
539
extern
MECHATRONICS_API
int
HRN_remove_fixing_assignment_data
(
540
tag_t
fixing_line_tag
541
);
542
543
556
extern
MECHATRONICS_API
int
HRN_unset_fixing_segment
(
557
tag_t
bom_line_tag,
558
tag_t
segment_tag
559
);
560
571
extern
MECHATRONICS_API
int
HRN_ask_referenced_component
(
572
tag_t
node_tag
,
573
tag_t
window_tag,
574
int
*reference_comp_count,
575
tag_t
**reference_comp_tags
576
);
577
587
extern
MECHATRONICS_API
int
HRN_set_referenced_component
(
588
tag_t
node_tag,
589
tag_t
reference_comp_tag,
590
tag_t
*relation_tagptr
591
);
592
604
extern
MECHATRONICS_API
int
HRN_unset_referenced_component
(
605
tag_t
node_tag,
606
tag_t
reference_comp_tag
607
);
608
609
619
extern
MECHATRONICS_API
int
HRN_set_part_occ_data
(
620
tag_t
bom_line_tag,
621
const
HRN_part_occ_data_t
* part_occ_data
622
);
623
624
633
extern
MECHATRONICS_API
int
HRN_get_part_occ_data
(
634
tag_t
bom_line_tag,
635
HRN_part_occ_data_t
* part_occ_data
636
);
637
638
650
extern
MECHATRONICS_API
int
HRN_remove_part_occ_data
(
651
tag_t
bom_line_tag
652
);
653
663
extern
MECHATRONICS_API
int
HRN_set_connector_occ_data
(
664
tag_t
bom_line_tag,
665
const
HRN_connector_occ_data_t
* connector_occ_data
666
);
667
668
677
extern
MECHATRONICS_API
int
HRN_get_connector_occ_data
(
678
tag_t
bom_line_tag,
679
HRN_connector_occ_data_t
* connector_occ_data
680
);
681
682
694
extern
MECHATRONICS_API
int
HRN_remove_connector_occ_data
(
695
tag_t
bom_line_tag
696
);
697
708
extern
MECHATRONICS_API
int
HRN_set_cavity_data
(
709
tag_t
cavity_line_tag,
710
const
HRN_cavity_occ_data_t
* cavity_occ_data
711
);
712
713
723
extern
MECHATRONICS_API
int
HRN_get_cavity_data
(
724
tag_t
cavity_line_tag,
725
HRN_cavity_occ_data_t
* cavity_occ_data
726
);
727
728
741
extern
MECHATRONICS_API
int
HRN_remove_cavity_data
(
742
tag_t
cavity_line_tag
743
);
744
753
extern
MECHATRONICS_API
int
HRN_set_wire_protect_occ_data
(
754
tag_t
bom_line_tag,
755
const
HRN_wire_protect_occ_data_t
* wire_protect_occ_data
756
);
757
758
767
extern
MECHATRONICS_API
int
HRN_get_wire_protect_occ_data
(
768
tag_t
bom_line_tag,
769
HRN_wire_protect_occ_data_t
* wire_protect_occ_data
770
);
771
772
784
extern
MECHATRONICS_API
int
HRN_remove_wire_protect_occ_data
(
785
tag_t
bom_line_tag
786
);
787
796
extern
MECHATRONICS_API
int
HRN_set_general_wire_occ_data
(
797
tag_t
line_tag,
798
const
HRN_general_wire_occ_data_t
*wire_occ_data
799
);
800
809
extern
MECHATRONICS_API
int
HRN_get_general_wire_occ_data
(
810
tag_t
line_tag,
811
HRN_general_wire_occ_data_t
*wire_occ_data
812
);
813
822
extern
MECHATRONICS_API
int
HRN_remove_general_wire_occ_data
(
823
tag_t
line_tag
824
);
825
839
extern
MECHATRONICS_API
int
HRN_set_wire_length_information
(
840
tag_t
bom_line,
841
const
char
*length_type,
842
double
length_value
843
);
844
855
extern
MECHATRONICS_API
int
HRN_get_wire_length_information
(
856
tag_t
bom_line,
857
const
char
*length_type,
858
double
*length_value
859
);
860
871
extern
MECHATRONICS_API
int
HRN_get_all_wire_length_information
(
872
tag_t
bom_line,
873
int
* count,
874
HRN_wire_length_data_t
** length_data
875
);
876
889
extern
MECHATRONICS_API
int
HRN_remove_wire_length_information
(
890
tag_t
bom_line,
891
const
char
*length_type
892
);
893
906
extern
MECHATRONICS_API
int
HRN_set_wire_color
(
907
tag_t
object_tag,
908
const
char
*color_type,
909
const
char
*color_value
910
);
911
922
extern
MECHATRONICS_API
int
HRN_get_wire_color
(
923
tag_t
object_tag,
924
const
char
*color_type,
925
char
**color_value
926
);
927
938
extern
MECHATRONICS_API
int
HRN_get_all_wire_color
(
939
tag_t
object_tag,
940
int
* count,
941
HRN_wire_color_data_t
** wire_color_data
942
);
943
957
extern
MECHATRONICS_API
int
HRN_remove_wire_color
(
958
tag_t
object_tag,
959
const
char
*color_type
960
);
961
962
965
#ifdef __cplusplus
966
}
967
#endif
968
969
#include <mechatronics/libmechatronics_undef.h>
970
#endif
971
972