ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
mechatronics
route.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 ROUTE_H
15
#define ROUTE_H
16
17
#include <
unidefs.h
>
18
#include <mechatronics/libmechatronics_exports.h>
19
32
#define ROUTED_BY "TC_Routed_By"
33
#define DEVICE_TO_CONNECTOR "TC_Device_To_Connector"
34
41
typedef
enum
ROUTE_display_font_e
{
42
ROUTE_display_font_solid
= 0,
43
ROUTE_display_font_dashed
,
44
ROUTE_display_font_dotted
45
}
ROUTE_display_font_t
;
46
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
56
extern
MECHATRONICS_API
int
ROUTE_create
(
57
const
char
* name,
58
const
char
* description,
59
tag_t
bvr,
60
tag_t
* route
61
);
62
63
68
extern
MECHATRONICS_API
int
ROUTE_add_segment
(
69
tag_t
route,
70
tag_t
segment,
71
int
position
72
);
73
77
extern
MECHATRONICS_API
int
ROUTE_remove_segment
(
78
tag_t
route,
79
tag_t
segment
80
);
81
85
extern
MECHATRONICS_API
int
ROUTE_list_segments
(
86
tag_t
route,
87
int
* num,
88
tag_t
** segments
89
);
90
94
extern
MECHATRONICS_API
int
ROUTE_ask_length
(
95
tag_t
route,
96
double
*real_length,
97
double
*represented_length
98
);
99
103
extern
MECHATRONICS_API
int
ROUTE_set_real_length
(
104
tag_t
route,
105
double
length
106
);
107
111
extern
MECHATRONICS_API
int
ROUTE_set_represented_length
(
112
tag_t
route,
113
double
length
114
);
115
120
extern
MECHATRONICS_API
int
ROUTE_add_node
(
121
tag_t
route,
122
tag_t
node,
123
int
position
124
);
125
129
extern
MECHATRONICS_API
int
ROUTE_remove_node
(
130
tag_t
route,
131
tag_t
node
132
);
133
137
extern
MECHATRONICS_API
int
ROUTE_list_nodes
(
138
tag_t
route,
139
int
* num,
140
tag_t
**nodes
141
);
142
147
extern
MECHATRONICS_API
int
ROUTE_set_center_curve
(
148
tag_t
route,
149
tag_t
center_curve
150
);
151
155
extern
MECHATRONICS_API
int
ROUTE_ask_center_curve
(
156
tag_t
route,
157
tag_t
*center_curve
158
);
159
160
164
extern
MECHATRONICS_API
int
ROUTE_create_segment
(
165
const
char
*name,
166
tag_t
bvr,
167
tag_t
*segment
168
);
169
173
extern
MECHATRONICS_API
int
ROUTE_ask_segment_name
(
174
tag_t
segment,
175
char
** name
176
);
177
178
182
extern
MECHATRONICS_API
int
ROUTE_ask_segment_start
(
183
tag_t
segment,
184
tag_t
*start_node
185
);
186
190
extern
MECHATRONICS_API
int
ROUTE_set_segment_start
(
191
tag_t
segment,
192
tag_t
start_node
193
);
194
198
extern
MECHATRONICS_API
int
ROUTE_ask_segment_end
(
199
tag_t
segment,
200
tag_t
*end_node
201
);
202
206
extern
MECHATRONICS_API
int
ROUTE_set_segment_end
(
207
tag_t
segment,
208
tag_t
end_node
209
);
210
214
extern
MECHATRONICS_API
int
ROUTE_ask_segment_center_curve
(
215
tag_t
segment,
216
tag_t
*center_curve
217
);
218
223
extern
MECHATRONICS_API
int
ROUTE_set_segment_center_curve
(
224
tag_t
segment,
225
tag_t
center_curve
226
);
227
228
229
233
extern
MECHATRONICS_API
int
ROUTE_ask_segment_routes
(
234
tag_t
segment,
235
int
*count,
236
tag_t
**routes
237
);
238
239
243
extern
MECHATRONICS_API
int
ROUTE_ask_segment_length
(
244
tag_t
segment,
245
double
*real_length,
246
double
*represented_length
247
);
248
252
extern
MECHATRONICS_API
int
ROUTE_set_segment_real_length
(
253
tag_t
segment,
254
double
length
255
);
256
260
extern
MECHATRONICS_API
int
ROUTE_set_segment_represented_length
(
261
tag_t
segment,
262
double
length
263
);
264
268
extern
MECHATRONICS_API
int
ROUTE_set_segment_cross_section
(
269
tag_t
segment,
270
double
area
271
);
272
276
extern
MECHATRONICS_API
int
ROUTE_ask_segment_cross_section
(
277
tag_t
segment,
278
double
*area
279
);
280
284
extern
MECHATRONICS_API
int
ROUTE_create_node
(
285
const
char
*name,
286
tag_t
bvr,
287
tag_t
*node
288
);
289
293
extern
MECHATRONICS_API
int
ROUTE_ask_node_name
(
294
tag_t
node,
295
char
** name
296
);
297
301
extern
MECHATRONICS_API
int
ROUTE_set_node_position
(
302
tag_t
node,
303
double
x,
304
double
y,
305
double
z
306
);
307
311
extern
MECHATRONICS_API
int
ROUTE_ask_node_position
(
312
tag_t
node,
313
double
*x,
314
double
*y,
315
double
*z
316
);
317
321
extern
MECHATRONICS_API
int
ROUTE_ask_node_segments
(
322
tag_t
node,
323
int
*count,
324
tag_t
**segments
325
);
326
330
extern
MECHATRONICS_API
int
ROUTE_ask_node_routes
(
331
tag_t
node,
332
int
*count,
333
tag_t
**routes
334
);
335
339
extern
MECHATRONICS_API
int
ROUTE_create_center_curve
(
340
const
char
*name,
341
tag_t
bvr,
342
tag_t
*center_curve
343
);
344
352
extern
MECHATRONICS_API
int
ROUTE_set_center_curve_data
(
353
tag_t
center_curve,
354
int
degree,
355
int
dimension,
356
logical
is_rational,
357
logical
is_uniform,
358
double
start_parameter,
359
double
end_parameter,
360
int
num_control_points,
361
double
**control_points,
362
int
num_knots,
363
double
*knots,
364
int
*multiplicities
365
);
366
367
371
extern
MECHATRONICS_API
int
ROUTE_ask_center_curve_data
(
372
tag_t
center_curve,
373
int
*degree,
374
int
*dimension,
375
logical
*is_rational,
376
logical
*is_uniform,
377
double
*start_parameter,
378
double
*end_parameter,
379
int
*num_control_points,
380
double
***control_points,
381
int
*num_knots,
382
double
**knots,
383
int
**multiplicities
384
);
385
386
390
extern
MECHATRONICS_API
int
ROUTE_ask_center_curve_name
(
391
tag_t
center_curve,
392
char
**name
393
);
394
398
extern
MECHATRONICS_API
int
ROUTE_ask_center_curve_segments
(
399
tag_t
center_curve,
400
int
*count,
401
tag_t
**segments
402
);
403
407
extern
MECHATRONICS_API
int
ROUTE_ask_center_curve_routes
(
408
tag_t
center_curve,
409
int
*count,
410
tag_t
**routes
411
);
412
413
418
extern
MECHATRONICS_API
int
ROUTE_associate
(
419
tag_t
bom_line,
420
tag_t
route
421
);
422
427
extern
MECHATRONICS_API
int
ROUTE_unassociate
(
428
tag_t
bom_line,
429
tag_t
route
430
);
431
435
extern
MECHATRONICS_API
int
ROUTE_ask_associated_route
(
436
tag_t
bom_line,
437
tag_t
*route
438
);
439
443
extern
MECHATRONICS_API
int
ROUTE_ask_associated_bom_lines
(
444
tag_t
route,
445
tag_t
window,
446
int
*count,
447
tag_t
**bom_lines
448
);
449
453
extern
MECHATRONICS_API
int
ROUTE_display_set_props
(
454
tag_t
route_tag,
455
ROUTE_display_font_t
font,
456
double
width,
457
const
double
color[3]
458
);
459
463
extern
MECHATRONICS_API
int
ROUTE_display_ask_props
(
464
tag_t
route_display,
465
ROUTE_display_font_t
*font,
466
double
*width,
467
double
color[3]
468
);
469
476
extern
MECHATRONICS_API
int
ROUTE_create_location
(
477
const
char
* location_id,
479
const
char
* location_name,
480
const
char
* location_type,
481
const
char
* location_rev_id,
483
tag_t
* new_location,
484
tag_t
* new_location_rev
485
);
486
493
extern
MECHATRONICS_API
int
ROUTE_create_location_with_forms
(
494
const
char
* location_id,
496
const
char
* location_name,
497
const
char
* location_type,
498
const
char
* location_rev_id,
500
tag_t
routeLocMaster,
501
tag_t
routeLocRevMaster,
502
tag_t
* new_location,
503
tag_t
* new_location_rev
504
);
505
506
511
extern
MECHATRONICS_API
int
ROUTE_set_assigned_location
(
512
tag_t
primary_object,
513
tag_t
location_line,
514
tag_t
*relation_tag
515
);
516
521
extern
MECHATRONICS_API
int
ROUTE_unset_assigned_location
(
522
tag_t
primary_object,
523
tag_t
location_line
524
);
525
529
extern
MECHATRONICS_API
int
ROUTE_ask_assigned_locations
(
530
tag_t
associating_object,
531
tag_t
window_tag,
533
int
*location_count,
534
tag_t
**assigned_location_lines
535
);
536
541
extern
MECHATRONICS_API
int
ROUTE_location_set_defining_item
(
542
tag_t
location_line,
543
tag_t
defining_item_line,
544
tag_t
*relation_tag
545
);
546
551
extern
MECHATRONICS_API
int
ROUTE_location_unset_defining_item
(
552
tag_t
location_line
553
);
554
558
extern
MECHATRONICS_API
int
ROUTE_location_ask_defining_item
(
559
tag_t
location_line,
560
tag_t
*defining_item_line
561
);
562
566
extern
MECHATRONICS_API
int
ROUTE_location_find_assigned_objects
(
567
tag_t
location_line,
568
int
*objects_count,
569
tag_t
**assigned_objects
570
);
571
575
extern
MECHATRONICS_API
int
ROUTE_delete_route_data
(
576
tag_t
bvr
577
);
578
579
583
#ifdef __cplusplus
584
}
585
#endif
586
587
#include <mechatronics/libmechatronics_undef.h>
588
#endif
589