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