7fd59977 |
1 | |
2 | /* |
3 | * Attention, ce fichier passe par InterfaceGraphic_Cextern.awk. |
4 | * Il faut donc respecter le format de declaration des fonctions. |
5 | * Voir les regles precedees par ! |
6 | * |
7 | * <type_retourne> EXPORT call_<nom_fonction> ( |
8 | * #ifdef INTERFACEGRAPHIC_PROTOTYPE ! ne pas changer son nom mais facultatif |
9 | * <type_argument> <nom_argument>, ! virgule collee au nom |
10 | * <type_argument> *<nom_pointeur> ! * collee au nom |
11 | * ! une declaration d'argument par ligne |
12 | * #endif ! facultatif |
13 | * ); ! ); ensembles sur une ligne |
14 | * ! et en premiere colonne |
15 | * |
16 | * Merci, CAL |
17 | * |
18 | * Fonctions enlevees le 6/3/97 |
19 | * |
20 | * call_togl_light |
21 | * call_togl_plane |
22 | * call_togl_text3 |
23 | * call_togl_light_exploration |
24 | * call_togl_build_matrix |
25 | * call_tox_xgrigri |
26 | * call_tox_set_colormap_mapping |
27 | * call_util_osd_getenv |
28 | * |
29 | * 5/08/97 ; PCT : ajout texture mapping |
30 | * 17/09/98 ; FMN/BGN : ajout (S3819) des Ponts d'entree du Triedre. |
31 | * 15/11/99 ; GG PRO603 Add call_togl_redraw_area |
32 | * 24/01/00 ; EUG G003 Add call_togl_degeneratestructure() and |
33 | * call_togl_backfacing() functions. |
34 | * 27/0302 ; GG RIC120302 Add call_togl_begin_display function |
35 | * 16/06/2000 : ATS : G005 : Add function call_togl_parray |
36 | * 23/10/01 ; SAV Add call_togl_depthtest() |
37 | * call_togl_isdepthtest() |
38 | * 25/10/01 ; SAV Add call_togl_gllight() |
39 | * call_togl_isgllight() |
40 | * 23/12/02 ; SAV Added call_togl_create_bg_texture() and |
41 | * call_togl_set_bg_texture_style() to set background image |
42 | * 15/08/05 ; SZV Added call_togl_userdraw() |
43 | * |
44 | */ |
45 | |
46 | #ifndef InterfaceGraphic_CexternHeader |
47 | #define InterfaceGraphic_CexternHeader |
48 | |
49 | #if defined (__STDC__) || defined (__cplusplus) || defined (c_plusplus) |
50 | #define INTERFACEGRAPHIC_PROTOTYPE 1 |
51 | #endif |
52 | |
53 | #define InterfaceGraphic_True 1 |
54 | #define InterfaceGraphic_False 0 |
55 | |
56 | #define InterfaceGraphic_Success 1 |
57 | #define InterfaceGraphic_Failure 0 |
58 | |
59 | #define OCC1188 /* SAV : added methods to set background image */ |
60 | |
61 | #include <InterfaceGraphic_X11.hxx> |
62 | #include <InterfaceGraphic_Aspect.hxx> |
63 | #include <InterfaceGraphic_Graphic3d.hxx> |
64 | #include <InterfaceGraphic_Visual3d.hxx> |
65 | |
66 | |
67 | #define BUC61044 /* 25/10/01 SAV ; added functionality to control gl depth testing |
68 | from higher API */ |
69 | #define BUC61045 /* 25/10/01 SAV ; added functionality to control gl lighting |
70 | from higher API */ |
71 | |
72 | /* Declarations des subroutines triedron */ |
73 | |
74 | void EXPORT call_togl_ztriedron_setup ( |
75 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
76 | float* xcolor, |
77 | float* ycolor, |
78 | float* zcolor, |
79 | float sizeratio, |
80 | float axisdiameter, |
81 | int nbfacettes |
82 | #endif |
83 | ); |
84 | |
85 | void EXPORT call_togl_triedron_display ( |
86 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
87 | CALL_DEF_VIEW * aview, |
88 | int APosition, |
89 | float r, |
90 | float g, |
91 | float b, |
92 | float AScale, |
93 | int asWireframe |
94 | #endif |
95 | ); |
96 | |
97 | void EXPORT call_togl_triedron_erase ( |
98 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
99 | CALL_DEF_VIEW *aview |
100 | #endif |
101 | ); |
102 | |
103 | void EXPORT call_togl_triedron_echo ( |
104 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
105 | CALL_DEF_VIEW *aview, |
106 | int AType |
107 | #endif |
108 | ); |
109 | |
110 | /* Declarations des subroutines mode immediat */ |
111 | |
112 | int EXPORT call_togl_begin_ajout_mode ( |
113 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
114 | CALL_DEF_VIEW *aview |
115 | #endif |
116 | ); |
117 | |
118 | void EXPORT call_togl_end_ajout_mode ( |
119 | ); |
120 | |
121 | int EXPORT call_togl_begin_immediat_mode ( |
122 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
123 | CALL_DEF_VIEW *aview, |
124 | CALL_DEF_LAYER *anunderlayer, |
125 | CALL_DEF_LAYER *anoverlayer, |
126 | int doublebuffer, |
127 | int retainmode |
128 | #endif |
129 | ); |
130 | |
131 | void EXPORT call_togl_end_immediat_mode ( |
132 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
133 | int synchronize |
134 | #endif |
135 | ); |
136 | |
137 | void EXPORT call_togl_clear_immediat_mode ( |
138 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
139 | CALL_DEF_VIEW *aview, |
140 | int aFlush |
141 | #endif |
142 | ); |
143 | |
144 | void EXPORT call_togl_transform ( |
145 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
146 | CALL_DEF_MATRIX4X4 amatrix, |
147 | int mode |
148 | #endif |
149 | ); |
150 | |
151 | void EXPORT call_togl_begin_polyline ( |
152 | ); |
153 | |
154 | void EXPORT call_togl_end_polyline ( |
155 | ); |
156 | |
157 | void EXPORT call_togl_begin_polygon ( |
158 | ); |
159 | |
160 | void EXPORT call_togl_end_polygon ( |
161 | ); |
162 | |
163 | void EXPORT call_togl_begin_trianglemesh ( |
164 | ); |
165 | |
166 | void EXPORT call_togl_end_trianglemesh ( |
167 | ); |
168 | |
169 | void EXPORT call_togl_begin_marker ( |
170 | ); |
171 | |
172 | void EXPORT call_togl_end_marker ( |
173 | ); |
174 | |
175 | void EXPORT call_togl_begin_bezier ( |
176 | ); |
177 | |
178 | void EXPORT call_togl_end_bezier ( |
179 | ); |
180 | |
181 | void EXPORT call_togl_move ( |
182 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
183 | float x, |
184 | float y, |
185 | float z |
186 | #endif |
187 | ); |
188 | |
189 | void EXPORT call_togl_movenormal ( |
190 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
191 | float x, |
192 | float y, |
193 | float z, |
194 | float nx, |
195 | float ny, |
196 | float nz |
197 | #endif |
198 | ); |
199 | |
200 | void EXPORT call_togl_moveweight ( |
201 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
202 | float x, |
203 | float y, |
204 | float z, |
205 | float w |
206 | #endif |
207 | ); |
208 | |
209 | void EXPORT call_togl_draw ( |
210 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
211 | float x, |
212 | float y, |
213 | float z |
214 | #endif |
215 | ); |
216 | |
217 | void EXPORT call_togl_drawnormal ( |
218 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
219 | float x, |
220 | float y, |
221 | float z, |
222 | float nx, |
223 | float ny, |
224 | float nz |
225 | #endif |
226 | ); |
227 | |
228 | void EXPORT call_togl_drawweight ( |
229 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
230 | float x, |
231 | float y, |
232 | float z, |
233 | float w |
234 | #endif |
235 | ); |
236 | |
237 | void EXPORT call_togl_draw_text ( |
238 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
239 | CALL_DEF_TEXT *atext |
240 | #endif |
241 | ); |
242 | |
243 | void EXPORT call_togl_draw_structure ( |
244 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
245 | int StructId |
246 | #endif |
247 | ); |
248 | |
249 | void EXPORT call_togl_set_linecolor ( |
250 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
251 | float r, |
252 | float g, |
253 | float b |
254 | #endif |
255 | ); |
256 | |
257 | void EXPORT call_togl_set_interiorcolor ( |
258 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
259 | float r, |
260 | float g, |
261 | float b |
262 | #endif |
263 | ); |
264 | |
265 | void EXPORT call_togl_set_linetype ( |
266 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
267 | long type |
268 | #endif |
269 | ); |
270 | |
271 | void EXPORT call_togl_set_interiortype ( |
272 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
273 | long type |
274 | #endif |
275 | ); |
276 | |
277 | void EXPORT call_togl_set_linewidth ( |
278 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
279 | float width |
280 | #endif |
281 | ); |
282 | |
283 | void EXPORT call_togl_set_textcolor ( |
284 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
285 | float r, |
286 | float g, |
287 | float b |
288 | #endif |
289 | ); |
290 | |
291 | void EXPORT call_togl_set_textfont ( |
292 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
293 | char *police, |
294 | float factor, |
295 | float space |
296 | #endif |
297 | ); |
298 | |
299 | void EXPORT call_togl_set_markercolor ( |
300 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
301 | float r, |
302 | float g, |
303 | float b |
304 | #endif |
305 | ); |
306 | |
307 | void EXPORT call_togl_set_markertype ( |
308 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
309 | long type, |
310 | float scale |
311 | #endif |
312 | ); |
313 | |
314 | void EXPORT call_togl_set_minmax ( |
315 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
316 | float x1, |
317 | float y1, |
318 | float z1, |
319 | float x2, |
320 | float y2, |
321 | float z2 |
322 | #endif |
323 | ); |
324 | |
325 | void EXPORT call_togl_set_rgb ( |
326 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
327 | float r, |
328 | float g, |
329 | float b |
330 | #endif |
331 | ); |
332 | |
333 | /* Declarations des subroutines appelees du C++ */ |
334 | /* dans les packages Graphic3d et Visual3d */ |
335 | |
336 | void EXPORT call_togl_opengroup ( |
337 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
338 | CALL_DEF_GROUP *agroup |
339 | #endif |
340 | ); |
341 | |
342 | void EXPORT call_togl_closegroup ( |
343 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
344 | CALL_DEF_GROUP *agroup |
345 | #endif |
346 | ); |
347 | |
348 | void EXPORT call_togl_cleargroup ( |
349 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
350 | CALL_DEF_GROUP *agroup |
351 | #endif |
352 | ); |
353 | |
354 | void EXPORT call_togl_linecontextgroup ( |
355 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
356 | CALL_DEF_GROUP *agroup, |
357 | int noinsert |
358 | #endif |
359 | ); |
360 | |
361 | void EXPORT call_togl_facecontextgroup ( |
362 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
363 | CALL_DEF_GROUP *agroup, |
364 | int noinsert |
365 | #endif |
366 | ); |
367 | |
368 | void EXPORT call_togl_markercontextgroup ( |
369 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
370 | CALL_DEF_GROUP *agroup, |
371 | int noinsert |
372 | #endif |
373 | ); |
374 | |
375 | void EXPORT call_togl_textcontextgroup ( |
376 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
377 | CALL_DEF_GROUP *agroup, |
378 | int noinsert |
379 | #endif |
380 | ); |
381 | |
382 | void EXPORT call_togl_group ( |
383 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
384 | CALL_DEF_GROUP *agroup |
385 | #endif |
386 | ); |
387 | |
388 | void EXPORT call_togl_marker ( |
389 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
390 | CALL_DEF_GROUP *agroup, |
391 | CALL_DEF_MARKER *amarker |
392 | #endif |
393 | ); |
394 | |
395 | void EXPORT call_togl_marker_set ( |
396 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
397 | CALL_DEF_GROUP *agroup, |
398 | CALL_DEF_LISTMARKERS *almarkers |
399 | #endif |
400 | ); |
401 | |
402 | void EXPORT call_togl_polyline ( |
403 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
404 | CALL_DEF_GROUP *agroup, |
405 | CALL_DEF_LISTPOINTS *alpoints |
406 | #endif |
407 | ); |
408 | |
409 | void EXPORT call_togl_polygon ( |
410 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
411 | CALL_DEF_GROUP *agroup, |
412 | CALL_DEF_FACET *afacet |
413 | #endif |
414 | ); |
415 | |
416 | void EXPORT call_togl_polygon_holes ( |
417 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
418 | CALL_DEF_GROUP *agroup, |
419 | CALL_DEF_LISTFACETS *alfacets |
420 | #endif |
421 | ); |
422 | |
423 | void EXPORT call_togl_polygon_indices ( |
424 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
425 | CALL_DEF_GROUP *agroup, |
426 | CALL_DEF_LISTPOINTS *alpoints, |
427 | CALL_DEF_LISTEDGES *aledges, |
428 | CALL_DEF_LISTINTEGERS *albounds |
429 | #endif |
430 | ); |
431 | |
432 | void EXPORT call_togl_pickid ( |
433 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
434 | CALL_DEF_GROUP *agroup |
435 | #endif |
436 | ); |
437 | |
438 | void EXPORT call_togl_quadrangle ( |
439 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
440 | CALL_DEF_GROUP *agroup, |
441 | CALL_DEF_QUAD *aquad |
442 | #endif |
443 | ); |
444 | |
445 | void EXPORT call_togl_removegroup ( |
446 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
447 | CALL_DEF_GROUP *agroup |
448 | #endif |
449 | ); |
450 | |
451 | void EXPORT call_togl_text ( |
452 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
453 | CALL_DEF_GROUP *agroup, |
454 | CALL_DEF_TEXT *atext |
455 | #endif |
456 | ); |
457 | |
458 | void EXPORT call_togl_triangle ( |
459 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
460 | CALL_DEF_GROUP *agroup, |
461 | CALL_DEF_TRIKE *atrike |
462 | #endif |
463 | ); |
464 | |
465 | void EXPORT call_togl_bezier ( |
466 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
467 | CALL_DEF_GROUP *agroup, |
468 | CALL_DEF_LISTPOINTS *alpoints |
469 | #endif |
470 | ); |
471 | |
472 | void EXPORT call_togl_bezier_weight ( |
473 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
474 | CALL_DEF_GROUP *agroup, |
475 | CALL_DEF_LISTPOINTS *alpoints, |
476 | CALL_DEF_LISTREALS *alweights |
477 | #endif |
478 | ); |
479 | |
480 | void EXPORT call_togl_blink ( |
481 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
482 | CALL_DEF_STRUCTURE *astructure, |
483 | int create |
484 | #endif |
485 | ); |
486 | |
487 | void EXPORT call_togl_boundarybox ( |
488 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
489 | CALL_DEF_STRUCTURE *astructure, |
490 | int create |
491 | #endif |
492 | ); |
493 | |
494 | void EXPORT call_togl_clearstructure ( |
495 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
496 | CALL_DEF_STRUCTURE *astructure |
497 | #endif |
498 | ); |
499 | |
500 | void EXPORT call_togl_contextstructure ( |
501 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
502 | CALL_DEF_STRUCTURE *astructure |
503 | #endif |
504 | ); |
505 | |
506 | void EXPORT call_togl_highlightcolor ( |
507 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
508 | CALL_DEF_STRUCTURE *astructure, |
509 | CALL_DEF_COLOR *acolor, |
510 | int create |
511 | #endif |
512 | ); |
513 | |
514 | void EXPORT call_togl_namesetstructure ( |
515 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
516 | CALL_DEF_STRUCTURE *astructure |
517 | #endif |
518 | ); |
519 | |
520 | void EXPORT call_togl_removestructure ( |
521 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
522 | CALL_DEF_STRUCTURE *astructure |
523 | #endif |
524 | ); |
525 | |
526 | void EXPORT call_togl_structure ( |
527 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
528 | CALL_DEF_STRUCTURE *astructure |
529 | #endif |
530 | ); |
531 | |
532 | void EXPORT call_togl_transformstructure ( |
533 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
534 | CALL_DEF_STRUCTURE *astructure |
535 | #endif |
536 | ); |
537 | |
538 | void EXPORT call_togl_degeneratestructure ( |
539 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
540 | CALL_DEF_STRUCTURE *astructure |
541 | #endif |
542 | ); |
543 | |
544 | void EXPORT call_togl_connect ( |
545 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
546 | CALL_DEF_STRUCTURE *afather, |
547 | CALL_DEF_STRUCTURE *ason |
548 | #endif |
549 | ); |
550 | |
551 | void EXPORT call_togl_disconnect ( |
552 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
553 | CALL_DEF_STRUCTURE *afather, |
554 | CALL_DEF_STRUCTURE *ason |
555 | #endif |
556 | ); |
557 | |
558 | int EXPORT call_togl_begin_animation ( |
559 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
560 | CALL_DEF_VIEW *aview |
561 | #endif |
562 | ); |
563 | |
564 | void EXPORT call_togl_end_animation ( |
565 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
566 | CALL_DEF_VIEW *aview |
567 | #endif |
568 | ); |
569 | |
570 | int EXPORT call_togl_begin ( |
571 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
572 | char *adisplay |
573 | #endif |
574 | ); |
575 | |
576 | /*RIC120302*/ |
577 | int EXPORT call_togl_begin_display ( |
578 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
579 | void *pdisplay |
580 | #endif |
581 | ); |
582 | /*RIC120302*/ |
583 | |
584 | void EXPORT call_togl_end ( |
585 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
586 | #endif |
587 | ); |
588 | |
589 | void EXPORT call_togl_structure_exploration ( |
590 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
591 | long Id, |
592 | long LabelBegin, |
593 | long LabelEnd |
594 | #endif |
595 | ); |
596 | |
597 | void EXPORT call_togl_element_exploration ( |
598 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
599 | long Id, |
600 | long elem_num, |
601 | long *type, |
602 | CALL_DEF_POINT *pt, |
603 | CALL_DEF_NORMAL *npt, |
604 | CALL_DEF_COLOR *cpt, |
605 | CALL_DEF_NORMAL *nfa |
606 | #endif |
607 | ); |
608 | |
609 | void EXPORT call_togl_element_type ( |
610 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
611 | long Id, |
612 | long elem_num, |
613 | long *type |
614 | #endif |
615 | ); |
616 | |
617 | void EXPORT call_togl_activateview ( |
618 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
619 | CALL_DEF_VIEW *aview |
620 | #endif |
621 | ); |
622 | |
623 | void EXPORT call_togl_antialiasing ( |
624 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
625 | CALL_DEF_VIEW *aview, |
626 | int tag |
627 | #endif |
628 | ); |
629 | |
630 | void EXPORT call_togl_background ( |
631 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
632 | CALL_DEF_VIEW *aview |
633 | #endif |
634 | ); |
635 | |
636 | void EXPORT call_togl_gradient_background |
637 | ( |
638 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
639 | int ws, int type, |
640 | tel_colour color1, |
641 | tel_colour color2 |
642 | #endif |
643 | ); |
644 | |
645 | void EXPORT call_togl_set_gradient_type |
646 | ( |
647 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
648 | int ws, int type |
649 | #endif |
650 | ); |
651 | |
652 | int EXPORT call_togl_project_raster ( |
653 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
654 | int wsid, |
655 | float x, |
656 | float y, |
657 | float z, |
658 | int *ixr, |
659 | int *iyr |
660 | #endif |
661 | ); |
662 | |
663 | int EXPORT call_togl_unproject_raster ( |
664 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
665 | int wsid, |
666 | int xm, |
667 | int ym, |
668 | int xM, |
669 | int yM, |
670 | int ixr, |
671 | int iyr, |
672 | float *x, |
673 | float *y, |
674 | float *z |
675 | #endif |
676 | ); |
677 | |
678 | int EXPORT call_togl_unproject_raster_with_ray ( |
679 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
680 | int wsid, |
681 | int xm, |
682 | int ym, |
683 | int xM, |
684 | int yM, |
685 | int ixr, |
686 | int iyr, |
687 | float *x, |
688 | float *y, |
689 | float *z, |
690 | float *dx, |
691 | float *dy, |
692 | float *dz |
693 | #endif |
694 | ); |
695 | |
696 | void EXPORT call_togl_cliplimit ( |
697 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
698 | CALL_DEF_VIEW *aview, |
699 | int wait |
700 | #endif |
701 | ); |
702 | |
703 | void EXPORT call_togl_deactivateview ( |
704 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
705 | CALL_DEF_VIEW *aview |
706 | #endif |
707 | ); |
708 | |
709 | void EXPORT call_togl_depthcueing ( |
710 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
711 | CALL_DEF_VIEW *aview, |
712 | int tag |
713 | #endif |
714 | ); |
715 | |
716 | void EXPORT call_togl_displaystructure ( |
717 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
718 | CALL_DEF_VIEW *aview, |
719 | int StructId, |
720 | int Priority |
721 | #endif |
722 | ); |
723 | |
724 | void EXPORT call_togl_erasestructure ( |
725 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
726 | int ViewId, |
727 | int StructId |
728 | #endif |
729 | ); |
730 | |
731 | void EXPORT call_togl_init_pick ( |
732 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
733 | #endif |
734 | ); |
735 | |
736 | void EXPORT call_togl_pick ( |
737 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
738 | CALL_DEF_PICK *apick |
739 | #endif |
740 | ); |
741 | |
742 | void EXPORT call_togl_ratio_window ( |
743 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
744 | CALL_DEF_VIEW *aview |
745 | #endif |
746 | ); |
747 | |
748 | void EXPORT call_togl_redraw ( |
749 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
750 | CALL_DEF_VIEW *aview, |
751 | CALL_DEF_LAYER *anunderlayer, |
752 | CALL_DEF_LAYER *anoverlayer |
753 | #endif |
754 | ); |
755 | |
756 | void EXPORT call_togl_redraw_area ( |
757 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
758 | CALL_DEF_VIEW *aview, |
759 | CALL_DEF_LAYER *anunderlayer, |
760 | CALL_DEF_LAYER *anoverlayer, |
761 | int x, int y, int width, int height |
762 | #endif |
763 | ); |
764 | |
765 | void EXPORT call_togl_removeview ( |
766 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
767 | CALL_DEF_VIEW *aview |
768 | #endif |
769 | ); |
770 | |
771 | void EXPORT call_togl_setlight ( |
772 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
773 | CALL_DEF_VIEW *aview |
774 | #endif |
775 | ); |
776 | |
777 | void EXPORT call_togl_setplane ( |
778 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
779 | CALL_DEF_VIEW *aview |
780 | #endif |
781 | ); |
782 | |
783 | void EXPORT call_togl_setvisualisation ( |
784 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
785 | CALL_DEF_VIEW *aview |
786 | #endif |
787 | ); |
788 | |
789 | void EXPORT call_togl_transparency ( |
790 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
791 | int WsId, |
792 | int ViewId, |
793 | int Activity |
794 | #endif |
795 | ); |
796 | |
797 | void EXPORT call_togl_update ( |
798 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
799 | CALL_DEF_VIEW *aview, |
800 | CALL_DEF_LAYER *anunderlayer, |
801 | CALL_DEF_LAYER *anoverlayer |
802 | #endif |
803 | ); |
804 | |
805 | int EXPORT call_togl_view ( |
806 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
807 | CALL_DEF_VIEW *aview |
808 | #endif |
809 | ); |
810 | |
811 | int EXPORT call_togl_viewmapping ( |
812 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
813 | CALL_DEF_VIEW *aview, |
814 | int wait |
815 | #endif |
816 | ); |
817 | |
818 | int EXPORT call_togl_vieworientation ( |
819 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
820 | CALL_DEF_VIEW *aview, |
821 | int wait |
822 | #endif |
823 | ); |
824 | |
825 | int EXPORT call_togl_inquiretexture ( |
826 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
827 | #endif |
828 | ); |
829 | |
830 | int EXPORT call_togl_inquirelight ( |
831 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
832 | #endif |
833 | ); |
834 | |
835 | int EXPORT call_togl_inquireplane ( |
836 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
837 | #endif |
838 | ); |
839 | |
840 | int EXPORT call_togl_inquireview ( |
841 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
842 | #endif |
843 | ); |
844 | |
845 | int EXPORT call_togl_inquiremat ( |
846 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
847 | CALL_DEF_VIEW *aview, |
848 | CALL_DEF_MATRIX4X4 ori_matrix, |
849 | CALL_DEF_MATRIX4X4 map_matrix |
850 | #endif |
851 | ); |
852 | |
853 | void EXPORT call_togl_view_exploration ( |
854 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
855 | long Id |
856 | #endif |
857 | ); |
858 | |
859 | #ifdef OCC1188 |
860 | int EXPORT call_togl_create_texture ( |
861 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
862 | int Type, |
863 | unsigned int Width, |
864 | unsigned int Height, |
865 | unsigned char *Data, |
866 | char *FileName |
867 | #endif |
868 | ); |
869 | |
870 | void EXPORT call_togl_create_bg_texture ( |
871 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
872 | CALL_DEF_VIEW *aview, |
873 | int width, |
874 | int height, |
875 | unsigned char *data, |
876 | int style |
877 | #endif |
878 | ); |
879 | #endif /* OCC1188 */ |
880 | |
881 | void EXPORT call_togl_set_bg_texture_style( |
882 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
883 | CALL_DEF_VIEW* aview, |
884 | int style |
885 | #endif |
886 | ); |
887 | |
888 | void EXPORT call_togl_destroy_texture ( |
889 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
890 | int TexId |
891 | #endif |
892 | ); |
893 | |
894 | void EXPORT call_togl_modify_texture ( |
895 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
896 | int TexId, |
897 | CALL_DEF_INIT_TEXTURE *init_tex |
898 | #endif |
899 | ); |
900 | |
901 | void EXPORT call_togl_environment ( |
902 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
903 | CALL_DEF_VIEW *aview |
904 | #endif |
905 | ); |
906 | |
907 | /* Declarations des subroutines layer mode */ |
908 | |
909 | void EXPORT call_togl_layer2d ( |
910 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
911 | CALL_DEF_LAYER *alayer |
912 | #endif |
913 | ); |
914 | |
915 | void EXPORT call_togl_removelayer2d ( |
916 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
917 | CALL_DEF_LAYER *alayer |
918 | #endif |
919 | ); |
920 | |
921 | void EXPORT call_togl_begin_layer2d ( |
922 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
923 | CALL_DEF_LAYER *alayer |
924 | #endif |
925 | ); |
926 | |
927 | void EXPORT call_togl_end_layer2d ( |
928 | ); |
929 | |
930 | void EXPORT call_togl_clear_layer2d ( |
931 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
932 | CALL_DEF_LAYER *alayer |
933 | #endif |
934 | ); |
935 | |
936 | void EXPORT call_togl_begin_polyline2d ( |
937 | ); |
938 | |
939 | void EXPORT call_togl_end_polyline2d ( |
940 | ); |
941 | |
942 | void EXPORT call_togl_begin_polygon2d ( |
943 | ); |
944 | |
945 | void EXPORT call_togl_end_polygon2d ( |
946 | ); |
947 | |
948 | void EXPORT call_togl_move2d ( |
949 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
950 | float x, |
951 | float y |
952 | #endif |
953 | ); |
954 | |
955 | void EXPORT call_togl_draw2d ( |
956 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
957 | float x, |
958 | float y |
959 | #endif |
960 | ); |
961 | |
962 | void EXPORT call_togl_edge2d ( |
963 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
964 | float x, |
965 | float y |
966 | #endif |
967 | ); |
968 | |
969 | void EXPORT call_togl_rectangle2d ( |
970 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
971 | float x, |
972 | float y, |
973 | float w, |
974 | float h |
975 | #endif |
976 | ); |
977 | |
978 | void EXPORT call_togl_set_color ( |
979 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
980 | float r, |
981 | float g, |
982 | float b |
983 | #endif |
984 | ); |
985 | |
986 | void EXPORT call_togl_set_transparency ( |
987 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
988 | float a |
989 | #endif |
990 | ); |
991 | |
992 | void EXPORT call_togl_unset_transparency ( |
993 | ); |
994 | |
995 | void EXPORT call_togl_set_line_attributes ( |
996 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
997 | long type, |
998 | float width |
999 | #endif |
1000 | ); |
1001 | |
1002 | void EXPORT call_togl_set_text_attributes ( |
1003 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1004 | char* font, |
1005 | long type, |
1006 | float r, |
1007 | float g, |
1008 | float b |
1009 | #endif |
1010 | ); |
1011 | |
1012 | void EXPORT call_togl_text2d ( |
1013 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1014 | char *s, |
1015 | float x, |
1016 | float y, |
1017 | float height |
1018 | #endif |
1019 | ); |
1020 | |
1021 | void EXPORT call_togl_textsize2d ( |
1022 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1023 | char *s, |
1024 | float height, |
1025 | float *width, |
1026 | float *ascent, |
1027 | float *descent |
1028 | #endif |
1029 | ); |
1030 | |
1031 | void EXPORT call_togl_backfacing ( |
1032 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1033 | CALL_DEF_VIEW* |
1034 | #endif /* INTERFACEGRAPHIC_PROTOTYPE */ |
1035 | ); |
1036 | |
1037 | /* *** group of parray functions *** */ |
1038 | |
1039 | void EXPORT call_togl_parray ( |
1040 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1041 | CALL_DEF_GROUP *agroup, |
1042 | CALL_DEF_PARRAY* parray |
1043 | #endif |
1044 | ); |
1045 | |
1046 | void EXPORT call_togl_userdraw ( |
1047 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1048 | CALL_DEF_GROUP *agroup, |
1049 | CALL_DEF_USERDRAW *anobject |
1050 | #endif |
1051 | ); |
1052 | |
1053 | /* ------------------------- */ |
1054 | void EXPORT call_togl_print ( |
1055 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1056 | CALL_DEF_VIEW *aview, |
1057 | CALL_DEF_LAYER *anunderlayer, |
1058 | CALL_DEF_LAYER *anoverlayer, |
1059 | const Aspect_Drawable hPrintDC, |
1060 | const int background, |
1061 | const char* filename |
1062 | #endif |
1063 | ); |
1064 | |
1065 | |
1066 | #ifdef BUC61044 |
1067 | void EXPORT call_togl_depthtest ( |
1068 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1069 | CALL_DEF_VIEW *aview, |
1070 | int dFlag |
1071 | #endif |
1072 | ); |
1073 | |
1074 | int EXPORT call_togl_isdepthtest ( |
1075 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1076 | CALL_DEF_VIEW *aview |
1077 | #endif |
1078 | ); |
1079 | #endif |
1080 | |
1081 | #ifdef BUC61045 |
1082 | void EXPORT call_togl_gllight ( |
1083 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1084 | CALL_DEF_VIEW *aview, |
1085 | int dFlag |
1086 | #endif |
1087 | ); |
1088 | |
1089 | int EXPORT call_togl_isgllight ( |
1090 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1091 | CALL_DEF_VIEW *aview |
1092 | #endif |
1093 | ); |
1094 | void EXPORT call_togl_graduatedtrihedron_get ( |
1095 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1096 | /* View id */ |
1097 | CALL_DEF_VIEW* aview, |
1098 | /* Graduated trihedron data */ |
1099 | CALL_DEF_GRADUATEDTRIHEDRON* cubic |
1100 | #endif |
1101 | ); |
1102 | |
1103 | void EXPORT call_togl_graduatedtrihedron_display ( |
1104 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1105 | /* View id */ |
1106 | CALL_DEF_VIEW* aview, |
1107 | /* Graduated trihedron data */ |
1108 | CALL_DEF_GRADUATEDTRIHEDRON* cubic |
1109 | #endif |
1110 | ); |
1111 | |
1112 | void EXPORT call_togl_graduatedtrihedron_erase ( |
1113 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1114 | /* View id */ |
1115 | CALL_DEF_VIEW* aview |
1116 | #endif |
1117 | ); |
1118 | |
1119 | void EXPORT call_togl_graduatedtrihedron_minmaxvalues ( |
1120 | #ifdef INTERFACEGRAPHIC_PROTOTYPE |
1121 | float xmin, |
1122 | float ymin, |
1123 | float zmin, |
1124 | float xmax, |
1125 | float ymax, |
1126 | float zmax |
1127 | #endif |
1128 | ); |
1129 | |
1130 | #endif |
1131 | |
1132 | #endif /* InterfaceGraphic_CexternHeader */ |