1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
|
--
-- File: OpenGl_GraphicDriver.cdl
-- Created: Mardi 28 janvier 1997
-- Author: CAL
-- Modified:
-- 07-10-99 : EUG : Degeneration support (G003)
-- Add DegenerateStructure() and
-- SetBackFacingModel() methods.
-- 16-06-2000 : ATS,SPK : G005 : PARRAY method
-- 17/08/00 ; THA ; Thomas HARTL <t-hartl@muenchen.matra-dtv.fr>
-- -> Add Print methods (works only under Windows).
-- 27/03/02 ; GG ; RIC120302 Add new method Begin(Aspect_Display)
-- 23/12/02 ; SAV Added methods to set background image
-- 20/01/09 ; ABD : Integration support of system fonts (using FTGL and FreeType)
--
--
---Copyright: MatraDatavision 1997
--
class GraphicDriver from OpenGl inherits GraphicDriver from Graphic3d
---Version:
---Purpose: This class allows the definition of an opengl graphic
-- driver
---Keywords: OpenGl
---Warning:
---References:
uses
Array1OfInteger from TColStd,
Array1OfReal from TColStd,
Array2OfReal from TColStd,
ExtendedString from TCollection,
NameOfColor from Quantity,
Color from Quantity,
PlaneAngle from Quantity,
AlienImage from AlienImage,
Array1OfEdge from Aspect,
CLayer2d from Aspect,
TypeOfTriedronEcho from Aspect,
TypeOfTriedronPosition from Aspect,
Handle from Aspect,
Display from Aspect,
PrintAlgo from Aspect,
AspectLine3d from Graphic3d,
AspectMarker3d from Graphic3d,
AspectText3d from Graphic3d,
AspectFillArea3d from Graphic3d,
HorizontalTextAlignment from Graphic3d,
CBitFields20 from Graphic3d,
CGroup from Graphic3d,
CPick from Graphic3d,
CStructure from Graphic3d,
CView from Graphic3d,
CRawBufferData from Image,
Structure from Graphic3d,
TextPath from Graphic3d,
TypeOfComposition from Graphic3d,
TypeOfPolygon from Graphic3d,
TypeOfPrimitive from Graphic3d,
Vector from Graphic3d,
Array1OfVertex from Graphic3d,
Array2OfVertex from Graphic3d,
Vertex from Graphic3d,
Array1OfVertexC from Graphic3d,
Array2OfVertexC from Graphic3d,
VertexC from Graphic3d,
Array1OfVertexN from Graphic3d,
Array2OfVertexN from Graphic3d,
VertexN from Graphic3d,
Array1OfVertexNC from Graphic3d,
Array2OfVertexNC from Graphic3d,
VertexNC from Graphic3d,
VerticalTextAlignment from Graphic3d,
CInitTexture from Graphic3d,
TypeOfTexture from Graphic3d,
VertexNT from Graphic3d,
Array1OfVertexNT from Graphic3d,
Array2OfVertexNT from Graphic3d,
PrimitiveArray from Graphic3d,
PtrFrameBuffer from Graphic3d,
FillMethod from Aspect,
GradientFillMethod from Aspect,
HArray1OfByte from TColStd,
ExportFormat from Graphic3d,
SortType from Graphic3d,
HArray1OfReal from TColStd,
CUserDraw from Graphic3d,
NListOfHAsciiString from Graphic3d,
FontAspect from OSD,
CGraduatedTrihedron from Graphic3d
is
Create ( AShrName : CString from Standard )
returns mutable GraphicDriver from OpenGl;
-------------------------
-- Category: Init methods
-------------------------
DefaultTextHeight( me )
returns ShortReal from Standard
is redefined static;
Begin ( me : mutable;
ADisplay : CString from Standard )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_begin
Begin ( me : mutable;
ADisplay : Display from Aspect )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_begin_display
End ( me : mutable )
is redefined static;
---Purpose: call_togl_end
----------------------------
-- Category: Inquire methods
----------------------------
InquireLightLimit ( me : mutable )
returns Integer from Standard
is redefined static;
---Purpose: call_togl_inquirelight
InquireMat ( me : mutable;
ACView : CView from Graphic3d;
AMatO : out Array2OfReal from TColStd;
AMatM : out Array2OfReal from TColStd )
is redefined static;
---Purpose: call_togl_inquiremat
InquirePlaneLimit ( me : mutable )
returns Integer from Standard
is redefined static;
---Purpose: call_togl_inquireplane
InquireViewLimit ( me : mutable )
returns Integer from Standard
is redefined static;
---Purpose: call_togl_inquireview
InquireTextureAvailable ( me : mutable )
returns Boolean from Standard
is redefined static;
---Purpose: Returns Standard_True if texture is
-- supported by the graphic driver
------------------------------
-- Category: Highlight methods
------------------------------
Blink ( me : mutable;
ACStructure : CStructure from Graphic3d;
Create : Boolean from Standard )
is redefined static;
---Purpose: call_togl_blink
BoundaryBox ( me : mutable;
ACStructure : CStructure from Graphic3d;
Create : Boolean from Standard )
is redefined static;
---Purpose: call_togl_boundarybox
HighlightColor ( me : mutable;
ACStructure : CStructure from Graphic3d;
R : ShortReal from Standard;
G : ShortReal from Standard;
B : ShortReal from Standard;
Create : Boolean from Standard )
is redefined static;
---Purpose: call_togl_highlightcolor
NameSetStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_namesetstructure
-------------------------------------
-- Category: Group management methods
-------------------------------------
ClearGroup ( me : mutable;
ACGroup : CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_cleargroup
CloseGroup ( me : mutable;
ACGroup : CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_closegroup
FaceContextGroup ( me : mutable;
ACGroup : CGroup from Graphic3d;
NoInsert : Integer from Standard )
is redefined static;
---Purpose: call_togl_facecontextgroup
Group ( me : mutable;
ACGroup : in out CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_group
LineContextGroup ( me : mutable;
ACGroup : CGroup from Graphic3d;
NoInsert : Integer from Standard )
is redefined static;
---Purpose: call_togl_linecontextgroup
MarkerContextGroup ( me : mutable;
ACGroup : CGroup from Graphic3d;
NoInsert : Integer from Standard )
is redefined static;
---Purpose: call_togl_markercontextgroup
MarkerContextGroup ( me : mutable;
ACGroup : CGroup from Graphic3d;
NoInsert : Integer from Standard;
AMarkWidth : Integer from Standard;
AMarkHeight : Integer from Standard;
ATexture : HArray1OfByte from TColStd )
is redefined static;
---Purpose: call_togl_markercontextgroup
OpenGroup ( me : mutable;
ACGroup : CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_opengroup
RemoveGroup ( me : mutable;
ACGroup : CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_removegroup
TextContextGroup ( me : mutable;
ACGroup : CGroup from Graphic3d;
NoInsert : Integer from Standard )
is redefined static;
---Purpose: call_togl_textcontextgroup
-----------------------------------------
-- Category: Structure management methods
-----------------------------------------
ClearStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_clearstructure
Connect ( me : mutable;
AFather : CStructure from Graphic3d;
ASon : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_connect
ContextStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_contextstructure
Disconnect ( me : mutable;
AFather : CStructure from Graphic3d;
ASon : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_disconnect
DisplayStructure ( me : mutable;
ACView : CView from Graphic3d;
ACStructure : CStructure from Graphic3d;
APriority : Integer from Standard )
is redefined static;
---Purpose: call_togl_displaystructure
EraseStructure ( me : mutable;
ACView : CView from Graphic3d;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_erasestructure
RemoveStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_removestructure
Structure ( me : mutable;
ACStructure : in out CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_structure
--------------------------------
-- Category: Exploration methods
--------------------------------
DumpGroup ( me : mutable;
ACGroup : CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_structure_exploration
DumpStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_structure_exploration
DumpView ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_view_exploration
ElementExploration ( me : mutable;
ACStructure : CStructure from Graphic3d;
ElementNumber : Integer from Standard;
AVertex : out VertexNC from Graphic3d;
AVector : out Vector from Graphic3d )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_element_exploration
ElementType ( me : mutable;
ACStructure : CStructure from Graphic3d;
ElementNumber : Integer from Standard )
returns TypeOfPrimitive from Graphic3d
is redefined static;
---Purpose: call_togl_element_type
------------------------------------
-- Category: Pick management methods
------------------------------------
InitPick ( me : mutable )
is redefined static;
---Purpose: call_togl_init_pick
Pick ( me : mutable;
ACPick : out CPick from Graphic3d )
is redefined static;
---Purpose: call_togl_pick
PickId ( me : mutable;
ACGroup : CGroup from Graphic3d )
is redefined static;
---Purpose: call_togl_pickid
------------------------------------
-- Category: Structured mode methods
------------------------------------
ActivateView ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_activateview
AntiAliasing ( me : mutable;
ACView : CView from Graphic3d;
AFlag : Boolean from Standard )
is redefined static;
---Purpose: call_togl_antialiasing
Background ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_background
GradientBackground ( me : mutable;
ACView : CView from Graphic3d;
AColor1: Color from Quantity;
AColor2: Color from Quantity;
FillStyle : GradientFillMethod from Aspect
)
is redefined static;
---Purpose: call_togl_gradient_background
BackgroundImage( me : mutable;
FileName : CString from Standard;
ACView : CView from Graphic3d;
FillStyle : FillMethod from Aspect )
is redefined static;
SetBgImageStyle( me : mutable; ACView : CView from Graphic3d;
FillStyle : FillMethod from Aspect )
is redefined static;
SetBgGradientStyle( me : mutable;
ACView : CView from Graphic3d;
FillStyle : GradientFillMethod from Aspect )
is redefined static;
ClipLimit ( me : mutable;
ACView : CView from Graphic3d;
AWait : Boolean from Standard )
is redefined static;
---Purpose: call_togl_cliplimit
DeactivateView ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_deactivateview
DepthCueing ( me : mutable;
ACView : CView from Graphic3d;
AFlag : Boolean from Standard )
is redefined static;
---Purpose: call_togl_cliplimit
ProjectRaster ( me : mutable;
ACView : CView from Graphic3d;
AX : ShortReal from Standard;
AY : ShortReal from Standard;
AZ : ShortReal from Standard;
AU : out Integer from Standard;
AV : out Integer from Standard )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_unproject_raster
UnProjectRaster ( me : mutable;
ACView : CView from Graphic3d;
Axm : Integer from Standard;
Aym : Integer from Standard;
AXM : Integer from Standard;
AYM : Integer from Standard;
AU : Integer from Standard;
AV : Integer from Standard;
AX : out ShortReal from Standard;
AY : out ShortReal from Standard;
AZ : out ShortReal from Standard )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_unproject_raster
UnProjectRasterWithRay ( me : mutable;
ACView : CView from Graphic3d;
Axm : Integer from Standard;
Aym : Integer from Standard;
AXM : Integer from Standard;
AYM : Integer from Standard;
AU : Integer from Standard;
AV : Integer from Standard;
AX : out ShortReal from Standard;
AY : out ShortReal from Standard;
AZ : out ShortReal from Standard;
DX : out ShortReal from Standard;
DY : out ShortReal from Standard;
DZ : out ShortReal from Standard )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_unproject_raster_with_ray
RatioWindow ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_ratio_window
Redraw ( me : mutable;
ACView : CView from Graphic3d;
ACUnderLayer : CLayer2d from Aspect;
ACOverLayer : CLayer2d from Aspect;
x : Integer = 0;
y : Integer = 0;
width : Integer = 0;
height : Integer = 0 )
is redefined static;
---Purpose: call_togl_redraw
RemoveView ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_removeview
SetLight ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_setlight
SetPlane ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_setplane
SetVisualisation ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_setvisualisation
TransformStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_transformstructure
DegenerateStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_degeneratestructure
Transparency ( me : mutable;
ACView : CView from Graphic3d;
AFlag : Boolean from Standard )
is redefined static;
---Purpose: call_togl_transparency
Update ( me : mutable;
ACView : CView from Graphic3d;
ACUnderLayer : CLayer2d from Aspect;
ACOverLayer : CLayer2d from Aspect )
is redefined static;
---Purpose: call_togl_update
View ( me : mutable;
ACView : in out CView from Graphic3d )
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_view
ViewMapping ( me : mutable;
ACView : CView from Graphic3d;
AWait : Boolean from Standard )
is redefined static;
---Purpose: call_togl_viewmapping
ViewOrientation ( me : mutable;
ACView : CView from Graphic3d;
AWait : Boolean from Standard )
is redefined static;
---Purpose: call_togl_vieworientation
Environment ( me : mutable;
ACView : CView from Graphic3d )
is redefined static;
---Purpose:
----------------------------------------
-- Category: Methods to create Marker
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
Marker ( me : mutable;
ACGroup : CGroup from Graphic3d;
APoint : Vertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
MarkerSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
----------------------------------------
-- Category: Methods to create Polygon
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
Polygon ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
AType : TypeOfPolygon from Graphic3d = Graphic3d_TOP_CONVEX;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon
Polygon ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
Normal : Vector from Graphic3d;
AType : TypeOfPolygon from Graphic3d = Graphic3d_TOP_CONVEX;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon
Polygon ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexN from Graphic3d;
AType : TypeOfPolygon from Graphic3d = Graphic3d_TOP_CONVEX;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon
Polygon ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexN from Graphic3d;
Normal : Vector from Graphic3d;
AType : TypeOfPolygon from Graphic3d = Graphic3d_TOP_CONVEX;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon
Polygon ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNT from Graphic3d;
AType : TypeOfPolygon from Graphic3d = Graphic3d_TOP_CONVEX;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon
PolygonHoles ( me : mutable;
ACGroup : CGroup from Graphic3d;
Bounds : Array1OfInteger from TColStd;
ListVertex : Array1OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_holes
PolygonHoles ( me : mutable;
ACGroup : CGroup from Graphic3d;
Bounds : Array1OfInteger from TColStd;
ListVertex : Array1OfVertex from Graphic3d;
Normal : Vector from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_holes
PolygonHoles ( me : mutable;
ACGroup : CGroup from Graphic3d;
Bounds : Array1OfInteger from TColStd;
ListVertex : Array1OfVertexN from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_holes
PolygonHoles ( me : mutable;
ACGroup : CGroup from Graphic3d;
Bounds : Array1OfInteger from TColStd;
ListVertex : Array1OfVertexN from Graphic3d;
Normal : Vector from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_holes
----------------------------------------
-- Category: Methods to create Polyline
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
Polyline ( me : mutable;
ACGroup : CGroup from Graphic3d;
X1, Y1, Z1, X2, Y2, Z2 : Real from Standard;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polyline
Polyline ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polyline
Polyline ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexC from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polyline
-----------------------------------------
-- Category: Methods to create Quadrangle
-- for Purpose : see Graphic3d_Group.cdl
-----------------------------------------
QuadrangleMesh ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array2OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_quadrangle
QuadrangleMesh ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array2OfVertexN from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_quadrangle
QuadrangleMesh ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array2OfVertexNT from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_quadrangle
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexN from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNT from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
QuadrangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
----------------------------------------
-- Category: Methods to create Text
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
Text ( me : mutable;
ACGroup : CGroup from Graphic3d;
AText : CString from Standard;
APoint : Vertex from Graphic3d;
AHeight : Real from Standard;
AAngle : PlaneAngle from Quantity;
ATp : TextPath from Graphic3d;
AHta : HorizontalTextAlignment from Graphic3d;
AVta : VerticalTextAlignment from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_text
Text ( me : mutable;
ACGroup : CGroup from Graphic3d;
AText : CString from Standard;
APoint : Vertex from Graphic3d;
AHeight : Real from Standard;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_text
Text ( me : mutable;
ACGroup : CGroup from Graphic3d;
AText : ExtendedString from TCollection;
APoint : Vertex from Graphic3d;
AHeight : Real from Standard;
AAngle : PlaneAngle from Quantity;
ATp : TextPath from Graphic3d;
AHta : HorizontalTextAlignment from Graphic3d;
AVta : VerticalTextAlignment from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_text
Text ( me : mutable;
ACGroup : CGroup from Graphic3d;
AText : ExtendedString from TCollection;
APoint : Vertex from Graphic3d;
AHeight : Real from Standard;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_text
----------------------------------------
---Category: Methods to create Triangle
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
TriangleMesh ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_triangle
TriangleMesh ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexN from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_triangle
TriangleMesh ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNT from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_triangle
TriangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
TriangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexN from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
TriangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNT from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
TriangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
TriangleSet ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertexNC from Graphic3d;
ListEdge : Array1OfEdge from Aspect;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_polygon_indices
PrimitiveArray( me : mutable;
ACGroup : CGroup from Graphic3d;
parray : PrimitiveArray from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_parray
UserDraw( me : mutable;
ACGroup : CGroup from Graphic3d;
AUserDraw : CUserDraw from Graphic3d )
is redefined static;
---Purpose: call_togl_userdraw
EnableVBO( me : mutable;
status : Boolean from Standard )
is redefined static;
---Purpose: enables/disables usage of OpenGL vertex buffer arrays while drawing primitiev arrays
----------------------------------------
---Category: Methods to create Triedron
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
ZBufferTriedronSetup ( me : mutable;
XColor : NameOfColor from Quantity = Quantity_NOC_RED;
YColor : NameOfColor from Quantity = Quantity_NOC_GREEN;
ZColor : NameOfColor from Quantity = Quantity_NOC_BLUE1;
SizeRatio : Real from Standard = 0.8;
AxisDiametr : Real from Standard = 0.05;
NbFacettes : Integer from Standard = 12)
is redefined static;
---Purpose: call_togl_ztriedron_setup
TriedronDisplay ( me : mutable;
ACView : CView from Graphic3d;
APosition : TypeOfTriedronPosition from Aspect = Aspect_TOTP_CENTER;
AColor : NameOfColor from Quantity = Quantity_NOC_WHITE ;
AScale : Real from Standard = 0.02;
AsWireframe : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_triedron_display
TriedronErase ( me : mutable;
ACView : CView from Graphic3d)
is redefined static;
---Purpose: call_togl_triedron_erase
TriedronEcho ( me : mutable;
ACView : CView from Graphic3d;
AType : TypeOfTriedronEcho from Aspect = Aspect_TOTE_NONE )
is redefined static;
---Purpose: call_togl_triedron_echo
---------------------------------
---Category: Graduated trihedron
--------------------------------
GraduatedTrihedronDisplay(me : mutable;
view : CView from Graphic3d;
cubic : CGraduatedTrihedron from Graphic3d)
---Purpose: call_togl_graduatedtrihedron_display
is redefined static;
GraduatedTrihedronErase(me : mutable;
view : CView from Graphic3d)
---Purpose: call_togl_graduatedtrihedron_erase
is redefined static;
GraduatedTrihedronMinMaxValues(me : mutable;
xmin : ShortReal from Standard;
ymin : ShortReal from Standard;
zmin : ShortReal from Standard;
xmax : ShortReal from Standard;
ymax : ShortReal from Standard;
zmax : ShortReal from Standard)
---Purpose: call_togl_graduatedtrihedron_minmaxvalues
is redefined static;
----------------------------------------
-- Category: Internal methods
-- for Purpose : see Graphic3d_Group.cdl
----------------------------------------
Bezier ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_bezier
Bezier ( me : mutable;
ACGroup : CGroup from Graphic3d;
ListVertex : Array1OfVertex from Graphic3d;
ListWeight : Array1OfReal from TColStd;
EvalMinMax : Boolean from Standard = Standard_True )
is redefined static;
---Purpose: call_togl_bezier_weight
---------------------------
-- Category: Animation mode
---------------------------
BeginAnimation ( me : mutable;
ACView : CView from Graphic3d)
is redefined static;
---Purpose: call_togl_begin_animation
EndAnimation ( me : mutable;
ACView : CView from Graphic3d)
is redefined static;
---Purpose: call_togl_end_animation
----------------------------------
-- Category: Ajout mode methods
----------------------------------
BeginAddMode ( me : mutable;
ACView : CView from Graphic3d)
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_begin_ajout_mode
EndAddMode ( me : mutable)
is redefined static;
---Purpose: call_togl_end_ajout_mode
----------------------------------
-- Category: Immediat mode methods
----------------------------------
BeginImmediatMode ( me : mutable;
ACView : CView from Graphic3d;
ACUnderLayer : CLayer2d from Aspect;
ACOverLayer : CLayer2d from Aspect;
DoubleBuffer : Boolean from Standard;
RetainMode : Boolean from Standard)
returns Boolean from Standard
is redefined static;
---Purpose: call_togl_begin_immediat_mode
BeginPolyline ( me : mutable )
is redefined static;
---Purpose: call_togl_begin_polyline
ClearImmediatMode ( me : mutable; ACView : CView from Graphic3d;
aFlush : Boolean from Standard = Standard_True)
is redefined static;
---Purpose: call_togl_clear_immediat_mode
Draw ( me : mutable;
X : ShortReal from Standard;
Y : ShortReal from Standard;
Z : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_draw
DrawStructure ( me : mutable;
ACStructure : CStructure from Graphic3d )
is redefined static;
---Purpose: call_togl_draw_structure
EndImmediatMode ( me : mutable;
Synchronize : Integer from Standard )
is redefined static;
---Purpose: call_togl_end_immediat_mode
EndPolyline ( me : mutable )
is redefined static;
---Purpose: call_togl_end_polyline
Move ( me : mutable;
X : ShortReal from Standard;
Y : ShortReal from Standard;
Z : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_move
SetLineColor ( me : mutable;
R : ShortReal from Standard;
G : ShortReal from Standard;
B : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_linecolor
SetLineType ( me : mutable;
Type : Integer from Standard )
is redefined static;
---Purpose: call_togl_set_linetype
SetLineWidth ( me : mutable;
Width : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_linewidth
SetMinMax ( me : mutable;
X1 : ShortReal from Standard;
Y1 : ShortReal from Standard;
Z1 : ShortReal from Standard;
X2 : ShortReal from Standard;
Y2 : ShortReal from Standard;
Z2 : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_minmax
Transform ( me : mutable;
AMatrix : Array2OfReal from TColStd;
AType : TypeOfComposition from Graphic3d )
is redefined static;
---Purpose: call_togl_transform
-----------------------------
-- Category: Textures methods
-----------------------------
CreateTexture ( me;
Type : TypeOfTexture from Graphic3d;
Image : AlienImage from AlienImage;
FileName : CString from Standard;
TexUpperBounds : HArray1OfReal from TColStd )
returns Integer from Standard
is redefined static;
---Purpose:
DestroyTexture ( me;
TexId : Integer from Standard )
is redefined static;
---Purpose:
ModifyTexture ( me;
TexId : Integer from Standard;
AValue : CInitTexture from Graphic3d )
is redefined static;
---Purpose:
-------------------------------
-- Category: Layer mode methods
-------------------------------
Layer ( me : mutable;
ACLayer : in out CLayer2d from Aspect )
is redefined static;
---Purpose: call_togl_layer2d
RemoveLayer ( me : mutable;
ACLayer : CLayer2d from Aspect )
is redefined static;
---Purpose: call_togl_removelayer2d
BeginLayer ( me : mutable;
ACLayer : CLayer2d from Aspect )
is redefined static;
---Purpose: call_togl_begin_layer2d
BeginPolygon2d ( me : mutable )
is redefined static;
---Purpose: call_togl_begin_polygon2d
BeginPolyline2d ( me : mutable )
is redefined static;
---Purpose: call_togl_begin_polyline2d
ClearLayer ( me : mutable;
ACLayer : CLayer2d from Aspect )
is redefined static;
---Purpose: call_togl_clear_layer2d
Draw ( me : mutable;
X : ShortReal from Standard;
Y : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_draw2d
Edge ( me : mutable;
X : ShortReal from Standard;
Y : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_edge2d
EndLayer ( me : mutable )
is redefined static;
---Purpose: call_togl_end_layer2d
EndPolygon2d ( me : mutable )
is redefined static;
---Purpose: call_togl_end_polygon2d
EndPolyline2d ( me : mutable )
is redefined static;
---Purpose: call_togl_end_polyline2d
Move ( me : mutable;
X : ShortReal from Standard;
Y : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_move2d
Rectangle ( me : mutable;
X, Y : ShortReal from Standard;
Width, Height : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_rectangle2d
SetColor ( me : mutable;
R : ShortReal from Standard;
G : ShortReal from Standard;
B : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_color
SetTransparency ( me : mutable;
ATransparency : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_transparency
UnsetTransparency ( me : mutable )
is redefined static;
---Purpose: call_togl_unset_transparency
SetLineAttributes ( me : mutable;
Type : Integer from Standard;
Width : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_line_attributes
SetTextAttributes ( me : mutable;
FontName : CString from Standard;
Type : Integer from Standard;
R : ShortReal from Standard;
G : ShortReal from Standard;
B : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_set_text_attributes
Text ( me : mutable;
AText : CString from Standard;
X, Y : ShortReal from Standard;
AHeight : ShortReal from Standard )
is redefined static;
---Purpose: call_togl_text2d
TextSize( me;
AText : CString from Standard;
AHeight : ShortReal from Standard;
AWidth : in out ShortReal from Standard;
AnAscent : in out ShortReal from Standard;
ADescent : in out ShortReal from Standard )
is redefined static;
---Purpose: call_togl_textsize2d
SetBackFacingModel ( me : mutable;
aView : CView from Graphic3d )
is redefined static;
---Purpose: call_togl_backfacing
Print (me;
ACView : CView from Graphic3d;
ACUnderLayer : CLayer2d from Aspect;
ACOverLayer : CLayer2d from Aspect;
hPrnDC : Handle from Aspect;
showBackground : Boolean;
filename : CString;
printAlgorithm : PrintAlgo from Aspect = Aspect_PA_STRETCH;
theScaleFactor : Real from Standard = 1.0 )
returns Boolean from Standard is redefined static;
---Level: Internal
---Purpose: print the contents of all layers of the view to the printer.
-- <hPrnDC> : Pass the PrinterDeviceContext (HDC),
-- <showBackground> : When set to FALSE then print the view without background color
-- (background is white)
-- else set to TRUE for printing with current background color.
-- <filename>: If != NULL, then the view will be printed to a file.
-- <printAlgorithm>: Select print algorithm: stretch, tile.
-- <theScaleFactor>: Scaling coefficient, used internally to scale the
-- printings accordingly to the scale factor selected in the printer
-- properties dialog.
-- Returns Standard_True if the data is passed to the printer, otherwise
-- Standard_False if the print operation failed due to the printer errors,
-- or lack of system memory. This might be related to insufficient memory
-- or some internal errors. All this errors are indicated by the message
-- boxes (on level of OpenGl_GraphicDriver).
-- Warning: This function can reuse FBO assigned to the view
-- Please take it into account if you use it for your purposes;
---Warning: Works only under Windows.
Export( me: mutable;
FileName : CString from Standard;
Format : ExportFormat from Graphic3d;
SortType : SortType from Graphic3d;
W, H : Integer from Standard;
View : CView from Graphic3d;
Under, Over : CLayer2d from Aspect;
Precision : Real from Standard = 0.005;
ProgressBarFunc : Address from Standard = NULL;
ProgressObject : Address from Standard = NULL ) is redefined virtual;
SetDepthTestEnabled( me; view : CView from Graphic3d;
isEnabled : Boolean from Standard )
is redefined static;
---Purpose: call_togl_depthtest()
IsDepthTestEnabled( me; view : CView from Graphic3d )
returns Boolean from Standard is redefined static;
---Purpose: call_togl_isdepthtest()
ReadDepths( me; view : CView from Graphic3d;
x, y : Integer;
width, height : Integer;
buffer : Address )
is redefined static;
---Purpose: Reads depths of shown pixels of the given
-- rectangle (glReadPixels with GL_DEPTH_COMPONENT)
FBOCreate( me : mutable;
view : CView from Graphic3d;
width, height : Integer from Standard )
returns PtrFrameBuffer from Graphic3d
is redefined static;
---Purpose: Generate offscreen FBO (needs OpenGL2+ hardware)
-- If not supported on hardware returns NULL.
FBORelease( me : mutable;
view : CView from Graphic3d;
fboPtr : in out PtrFrameBuffer from Graphic3d )
is redefined static;
---Purpose: Remove offscreen FBO
FBOGetDimensions( me : mutable;
view : CView from Graphic3d;
fboPtr : PtrFrameBuffer from Graphic3d;
width, height : out Integer from Standard;
widthMax, heightMax : out Integer from Standard )
is redefined static;
---Purpose: Read offscreen FBO configuration.
FBOChangeViewport( me : mutable;
view : CView from Graphic3d;
fboPtr : in out PtrFrameBuffer from Graphic3d;
width, height : Integer from Standard )
is redefined static;
---Purpose: Change offscreen FBO viewport.
BufferDump( me : mutable;
view : CView from Graphic3d;
buffer : in out CRawBufferData from Image )
returns Boolean from Standard
is redefined static;
---Purpose: Dump active rendering buffer into specified memory buffer.
SetGLLightEnabled( me; view : CView from Graphic3d;
isEnabled : Boolean from Standard )
is redefined static;
---Purpose: call_togl_gllight()
IsGLLightEnabled( me; view : CView from Graphic3d )
returns Boolean from Standard is redefined static;
---Purpose: call_togl_isgllight()
--ListOfAvalableFontNames( me;
-- lst: out NListOfHAsciiString from Graphic3d )
-- returns Boolean from Standard
-- is redefined;
-- Purpose: Initialize list of names of avalable system fonts
-- returns Standard_False if fails
-- ABD Integration support of system fonts (using FTGL and FreeType)
RemovePrimitiveArray( me : mutable;
theCGroup : CGroup from Graphic3d;
thePArray : PrimitiveArray from Graphic3d )
is redefined static;
---Purpose: Clear visualization data in graphical driver and
-- stop displaying the primitives array of the graphical group
-- <theCGroup>. This method is internal and should be used
-- by Graphic3d_Group only.
end GraphicDriver from OpenGl;
|