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