summaryrefslogtreecommitdiff
path: root/src/Graphic2d/Graphic2d_Drawer.cdl
blob: 48df226c4deeb0cc0aa097ad7fe396877cfd6452 (plain)
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

-- File:        Graphic2d_Drawer.cdl
-- Created:     Thu Jul  8 09:27:11 1993
-- Author:      Jean Louis FRENKEL
--              <jlf@stylox>
---
-- Modified : DCB 22-07-98
-- Reason   : Using pointers to drivers instead of handles
--
--            SAV 14/11/01 added MapMarkersFromTo(). operates with arrays.
--            
---Copyright:    Matra Datavision 1993

class Drawer from Graphic2d inherits Transient from Standard

        ---Version:

        ---Purpose: A Drawer groups all conversion methods.
        ---Level: Internal

        ---Keywords:
        ---Warning:
        ---References:

uses
        ShortReal               from Standard,
        File                    from OSD,
        Factor                  from Quantity,
        Driver                  from Aspect,
        DriverPtr               from Aspect,
        WindowDriver            from Aspect,
        WindowDriverPtr         from Aspect,
        PlotterDriver           from PlotMgt,
        PlotterDriverPtr        from PlotMgt,
        TypeOfDeflection        from Aspect,
        TypeOfText              from Aspect,
        Array1OfShortReal       from TShort,
        ExtendedString          from TCollection,
	HArray1OfShortReal      from TShort

raises
        DrawerDefinitionError   from Graphic2d

is
        -------------------------
        -- Category: Constructors
        -------------------------

        Create
        returns mutable Drawer from Graphic2d;
        ---Level: Internal
        ---Purpose: A drawer is :
        --      - a driver
        --      - a "map from" and a "map to"
        --      - attributes
        ---Category: Constructors

        -----------------------------------------
        -- Category: Methods to modify the driver
        -----------------------------------------

        SetDriver (me: mutable; aDriver: Driver from Aspect)
                is static;
        ---Level: Internal
        ---Purpose: Associates the driver <ADriver> to the drawer <me>.
        ---Category: Methods to modify the driver

        Driver (me)
                returns Driver from Aspect
        ---Level: Internal
        ---Purpose: Returns the associated driver.
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        IsWindowDriver (me) 
                returns Boolean from Standard;
        ---Level: Internal
        ---Purpose: Returns TRUE if the driver is a window driver.
        ---Category: Inquiry method.

        WindowDriver (me)
                returns WindowDriver from Aspect
        ---Level: Internal
        ---Purpose: Returns the associated window driver.
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined or is not a WindowDriver.
        raises DrawerDefinitionError from Graphic2d is static;

        IsPlotterDriver (me) 
                returns Boolean from Standard;
        ---Level: Internal
        ---Purpose: Returns TRUE if the driver is a plotter driver.
        ---Category: Inquiry method.

        PlotterDriver (me)
                returns PlotterDriver from PlotMgt
        ---Level: Internal
        ---Purpose: Returns the associated plotter driver.
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined or is not a PlotterDriver
        raises DrawerDefinitionError from Graphic2d is static;

        ----------------------------------------------------
        -- Category: Methods to modify the chordal deviation
        ----------------------------------------------------

        ----------------------------------------------------------
        -- Summary of chordal deviation                         --
        --                                                      --
        -- Specify a chordal deviation that is smaller than the --
        -- workstation pixel size will not improve the display, --
        -- but will slow the drawing.                           --
        --                                                      --
        ----------------------------------------------------------

        SetDrawPrecision (me: mutable; aPrecision: Real from Standard;
                aCoefficient: Real from Standard;
                aType: TypeOfDeflection from Aspect)
                is static;
        ---Level: Internal
        ---Purpose: Sets the chordal deviation.
        --          <aPrecision> is the chordal deviation when the type of
        --          deflection is Aspect_TOD_ABSOLUTE.
        --          <aCoefficient> is used when when the type of
        --          deflection is Aspect_TOD_RELATIVE.
        --      TypeOfDeflection is :
        --              Aspect_TOD_RELATIVE
        --              Aspect_TOD_ABSOLUTE
        --      TypeOfDeflection defines if the maximal chordal deviation
        --      used when drawing an object is absolute or relative to the
        --      size of the object.
        --  Warning: Specify a chordal deviation that is smaller than the
        --          workstation pixel size will not improve the display,
        --          but will slow the drawing.

        DrawPrecision (me; aPrecision: out ShortReal from Standard;
                aCoefficient: out ShortReal from Standard;
                aType: out TypeOfDeflection from Aspect)
                is static;
        ---Level: Internal
        ---Purpose: Returns the chordal deviation.

        SetTextPrecision (me: mutable; aPrecision: ShortReal from Standard)
                is static;
        ---Level: Internal
        ---Purpose: Sets the Text precision in METER
        -- Any text is displayed only if his height is greater than
        --the text precision or replaced by a bounding box in the other case.

        TextPrecision (me) returns ShortReal from Standard
                is static;
        ---Level: Internal
        ---Purpose: Returns the Text precision in METER.

        ---------------------------------------------
        -- Category: Methods to modify the 2D viewing
        ---------------------------------------------

        SetValues (me: mutable; XF, YF, SF, XT, YT, ST, ZF: Real from Standard)
                is static;
        ---Level: Internal
        ---Purpose: Defines the "map from" and the "map to" of the drawer.
        --          The "map from" is defined by the viewmapping.
        --          The "map to" is defined by the device.
        --          example : the X window for a X driver.

        Values (me; XF, YF, SF, XT, YT, ST, ZF: out ShortReal from Standard)
                is static;
        ---Level: Internal
        ---Purpose: Returns the "map from" and the "map to".

        --------------------------------------------
        -- Category: Methods to manage the highlight
        --------------------------------------------

        SetOverride (me: mutable; aValue: Boolean from Standard)
                is static;
        ---Level: Internal
        ---Purpose: Manages the highlight, if the highlight color index
        --          is defined (No default value)
        ---Category: Methods to manage the highlight

        SetOverrideColor (me: mutable; anIndex: Integer from Standard)
                is static;
        ---Level: Internal
        ---Purpose: Sets the highlight color index.
        --  Warning: No default value.
        ---Category: Methods to manage the highlight

        SetOffSet (me: mutable;
                anOffSet: Integer from Standard)
                is static;
        ---Level: Internal
        ---Purpose: Specifies an offset applied to the original color
        --      index when drawing a primitives, those already created
        --      and the future one.
        --  Warning: To reset the real color of the primitives when drawing
        --      then this method is called with <anOffSet> = 0.

        ---------------------------------------------
        -- Category: Methods to manage the attributes
        ---------------------------------------------

        SetLineAttrib (me: mutable;
                ColorIndex: Integer from Standard;
                TypeIndex: Integer from Standard;
                WidthIndex: Integer from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current Line Attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is virtual;

        SetMarkerAttrib (me: mutable;
                ColorIndex: Integer from Standard;
                WidthIndex: Integer from Standard;
                FillMarker: Boolean from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current Marker Attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        SetPolyAttrib (me: mutable;
                ColorIndex: Integer from Standard;
                TileIndex: Integer from Standard;
                DrawEdge: Boolean from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current polygon Attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        SetHidingPolyAttrib (me: mutable;
                HidingColorIndex: Integer from Standard;
                FrameColorIndex: Integer from Standard;
                FrameTypeIndex: Integer from Standard;
                FrameWidthIndex: Integer from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current hiding polygon Attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        SetTextAttrib (me: mutable;
                ColorIndex: Integer from Standard;
                FontIndex: Integer from Standard;
                aSlant: ShortReal from Standard;
                aHScale,aWScale: ShortReal from Standard;
                isUnderlined: Boolean from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current Text Attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
 
        SetHidingTextAttrib (me: mutable;
                ColorIndex: Integer from Standard;
                HidingColorIndex: Integer from Standard;
                FrameColorIndex: Integer from Standard;
                FrameWidthIndex: Integer from Standard;
                FontIndex: Integer from Standard;
                aSlant: ShortReal from Standard;
                aHScale,aWScale: ShortReal from Standard;
                isUnderlined: Boolean from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current Hiding Text Attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
 
        SetFramedTextAttrib (me: mutable;
                ColorIndex: Integer from Standard;
                FrameColorIndex: Integer from Standard;
                FrameWidthIndex: Integer from Standard;
                FontIndex: Integer from Standard;
                aSlant: ShortReal from Standard;
                aHScale,aWScale: ShortReal from Standard;
                isUnderlined: Boolean from Standard)
        ---Level: Internal
        ---Purpose: Methods to define the Current Framed Text Attributes
        --  Category: Methods to manage the attributes
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        -----------------------------------------
        -- Category: Methods to manage the images
        -----------------------------------------

        IsKnownImage (me: mutable; anImageId: Transient from Standard)
        returns Boolean from Standard
        ---Level: Internal
        ---Purpose: Returns Standard_True if the associated driver
        --          have stored the image and Standard_False if not.
        --          For example, returns Standard_True if the associated
        --          driver is a X Driver.
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        ClearImage (me: mutable; anImageId: Transient from Standard)
        ---Level: Internal
        ---Purpose: Clears the image in the associated driver.
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        DrawImage (me: mutable; anImageId: Transient from Standard;
                aX, aY: ShortReal from Standard)
        ---Level: Internal
        ---Purpose: Draws the image in the associated driver.
        --          <aX>, <aY> is the center of the image.
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        ClearImageFile (me: mutable; aName: CString from Standard)
        ---Level: Internal
        ---Purpose: Clears the image file in the associated driver.
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        DrawImageFile (me: mutable; aName: CString from Standard;
                aX, aY: ShortReal from Standard;
                aScale: Factor from Quantity)
        ---Level: Internal
        ---Purpose: Draws the image in the associated driver.
        --          <aX>, <aY> is the center of the image.
        --          <aScale> = (if the image is zoomable)
        --              initial scale factor of the image *
        --              scale factor of the view.
        --          <aScale> = (if the image is not zoomable)
        --              initial scale factor of the image
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        FillAndDrawImage (me: mutable; anImageId: Transient from Standard;
                aX, aY: ShortReal from Standard;
                aWidth, aHeight: Integer from Standard;
                anArrayOfPixels: Address from Standard)
        ---Level: Internal
        ---Purpose: Stores a complete image and draws it in the associated
        --          driver.
        --          <aX>, <aY> is ????
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        FillAndDrawImage (me: mutable; anImageId: Transient from Standard;
                aX, aY: ShortReal from Standard;
                anIndexOfLine, aWidth, aHeight: Integer from Standard;
                anArrayOfPixels: Address from Standard)
        ---Level: Internal
        ---Purpose: Stores a line of an image and draws it in the associated
        --          driver.
        --          <aX>, <aY> is ????
        --  Category: Methods to manage the images
        --  Warning: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;

        ----------------------------
        -- Category: Convert methods
        ----------------------------

        GetMapFrom (me; x1, y1: ShortReal from Standard;
                x2, y2: out ShortReal from Standard)
                is static;
        ---Level: Internal
        ---Purpose: 
        --  Category: Convert methods

        GetMapFromTo (me; x1, y1: ShortReal from Standard;
                x2, y2: out ShortReal from Standard)
                is static;
        ---Level: Internal
        ---Purpose: 
        ---Category: Convert methods

        GetTextSize (me; aText: ExtendedString from TCollection;
                         aWidth,aHeight: out ShortReal from Standard)
                returns Boolean from Standard is virtual;
        ---Level: Internal
        ---Purpose: Get text size in world space with the current text
        --         attributes and returns TRUE if the driver is enabled 
        --         to get the right size (WindowDriver ONLY!). 
        --  Category: Convert methods

        GetTextSize (me; aText: ExtendedString from TCollection;
                         aWidth,aHeight,anXoffset,anYoffset: out ShortReal from Standard)
                returns Boolean from Standard is static;
        ---Level: Internal
        ---Purpose: Get text size and offsets 
        --         in world space with the current text
        --         attributes and returns TRUE if the driver is enabled 
        --         to get the right size (WindowDriver ONLY!). 
        --          NOTE that the text offsets defines the relative position of the
        --         of the text string origin from the lower left corner of the text
        --         boundary limits.
        --  Warning : SetTextAttrib(...) must be call before.
        --  Category: Convert methods

        GetFontSize (me; aHeight,aBheight,aSlant: out ShortReal from Standard)
                returns Boolean from Standard is static;
        ---Level: Internal
        ---Purpose: Get font height,baseline height and slant
        --         in world space with the current text
        --         attributes and returns TRUE if the driver is enabled 
        --       to get the right size (WindowDriver ONLY!). 
        --  Warning : SetTextAttrib(...) must be call before.
        --  Category: Convert methods

        GetImageSize (me; aFileName: CString from Standard;
                         aWidth,aHeight: out ShortReal from Standard)
                returns Boolean from Standard is static;
        ---Level: Internal
        ---Purpose: Get image size in world space 
        --         and returns TRUE if the driver is enabled 
        --         to get the right size (WindowDriver ONLY!). 
        ---Category: Convert methods

        GetImageSize (me; aFileName: CString from Standard;
                         aWidth,aHeight: out Integer from Standard)
                returns Boolean from Standard is static;
        ---Level: Internal
        ---Purpose: Get image size in pixel space 
        --         and returns TRUE if the driver is enabled 
        --         to get the right size (WindowDriver ONLY!). 
        ---Category: Convert methods

        UnMapFromTo (me;
                x1, y1: ShortReal from Standard;
                x2, y2: out ShortReal from Standard)
                is static;
        ---Level: Internal
        ---Purpose: 
        ---Category: Convert methods

        Convert (me; aValue: ShortReal from Standard)
                returns ShortReal from Standard
                is static;
        ---Level: Internal
        ---Purpose: 
        ---Category: Convert methods

        Convert (me; aValue: Integer from Standard)
                returns ShortReal from Standard
                is static;
        ---Level: Internal
        ---Purpose: 
        ---Category: Convert methods

        ConvertMapToFrom (me; x: ShortReal from Standard)
                returns ShortReal from Standard
                is static;
        ---Level: Internal
        ---Purpose: 
        ---Category: Convert methods

        Scale (me)
                returns ShortReal from Standard
                is static;
        ---Level: Internal
        ---Purpose: 
        ---Category: Convert methods

        -------------------------
        -- Category: Draw methods
        -------------------------

        DrawSegment (me : mutable; 
                x1, y1, x2, y2: ShortReal from Standard)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawPolyline (me : mutable;
                aDeltaX, aDeltaY: Real from Standard;
                aListX, aListY: Array1OfShortReal from TShort)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawPolygon (me : mutable;
                aDeltaX, aDeltaY: Real from Standard;
                aListX, aListY: Array1OfShortReal from TShort)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal 
        ---Category: Draw methods

        DrawArc (me : mutable; 
                aDeltaX, aDeltaY: Real from Standard;
                aRadius, angle1, angle2: ShortReal from Standard)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods
 
        DrawPolyArc (me : mutable; 
                aDeltaX, aDeltaY: Real from Standard;
                aRadius, angle1, angle2: ShortReal from Standard)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawInfiniteLine (me : mutable; 
                x, y, dx, dy: ShortReal from Standard)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawMarker (me : mutable;
                anindex: Integer from Standard;
                x, y, awidth, anheight, angle: ShortReal from Standard)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawText (me : mutable; 
                aText: ExtendedString from TCollection;
                x, y, angle : ShortReal from Standard;
                aType: TypeOfText from Aspect)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawPolyText (me : mutable; 
                aText: ExtendedString from TCollection;
                x, y, angle, margin : ShortReal from Standard;
                aType: TypeOfText from Aspect)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        DrawFramedText (me : mutable; 
                aText: ExtendedString from TCollection;
                x, y, angle, margin : ShortReal from Standard;
                aType: TypeOfText from Aspect)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Draw methods

        -------------------------------------------
        -- Category: Convert methods for primitives
        -------------------------------------------

        MapInfiniteLineFromTo (me : mutable;
                 x, y, dx, dy: ShortReal from Standard)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapSegmentFromTo (me : mutable; 
                x1, y1, x2, y2: ShortReal from Standard;
                                aMode: Integer from Standard = 0)
        ---Level: Internal
        ---Purpose:  RRaises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is virtual;
        ---Category: Convert methods for primitives

        MapMarkerFromTo (me : mutable;
                anindex: Integer from Standard;
                x, y, awidth, anheight, angle: ShortReal from Standard;
                                aMode: Integer from Standard = 0)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives
    	
        MapMarkersFromTo (me : mutable;
                    	 index: Integer from Standard;
                         x, y : HArray1OfShortReal from TShort;
                         awidth, anheight, angle: ShortReal from Standard;
                         aMode: Integer from Standard = 0)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives


        MapPolylineFromTo (me : mutable;
                aListX, aListY: Array1OfShortReal from TShort;
                aNumber: Integer from Standard = 0)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapPolylineFromTo (me : mutable; 
                x, y: ShortReal from Standard;
                aMode: Integer from Standard = 0)
        ---Level: Internal
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Category: Convert methods for primitives

        MapPolygonFromTo (me : mutable;
                aListX, aListY: Array1OfShortReal from TShort;
                aNumber: Integer from Standard = 0)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapPolygonFromTo (me : mutable; 
                x, y: ShortReal from Standard;
                aMode: Integer from Standard = 0)
        ---Level: Internal
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Category: Convert methods for primitives

        MapTextFromTo (me : mutable; 
                aText: ExtendedString from TCollection;
                x, y, angle, aDeltax, aDeltay: ShortReal from Standard;
                aType: TypeOfText from Aspect)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is virtual;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapPolyTextFromTo (me : mutable; 
                aText: ExtendedString from TCollection;
                x, y, angle, margin, aDeltax, aDeltay: ShortReal from Standard;
                aType: TypeOfText from Aspect)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapFramedTextFromTo (me : mutable; 
                aText: ExtendedString from TCollection;
                x, y, angle, margin, aDeltax, aDeltay: ShortReal from Standard;
                aType: TypeOfText from Aspect)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapArcFromTo (me : mutable;
                x, y, aRadius, angle1, angle2: ShortReal from Standard;
                                aMode: Integer from Standard = 0)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is virtual;
        ---Level: Internal
        ---Category: Convert methods for primitives

        MapPolyArcFromTo (me : mutable;
                x, y, aRadius, angle1, angle2: ShortReal from Standard;
                                aMode: Integer from Standard = 0)
        ---Purpose: Raises DrawerDefinitionError if the
        --          associated driver is not defined.
        raises DrawerDefinitionError from Graphic2d is static;
        ---Level: Internal
        ---Category: Convert methods for primitives

        -----------------------------
        -- Category: Rejection method
        -----------------------------

        SetRejection (me : mutable; aClipFlag: Boolean from Standard) is static;
        ---Level: Internal
        ---Purpose: Sets the clipping flag with <aClipFlag> value.

        IsIn (me; aMinX, aMaxX, aMinY, aMaxY: ShortReal from Standard)
                returns Boolean from Standard
                is static;
        ---Level: Internal
        ---Purpose: Returns Standard_True if the given min max intersects
        --          with the drawer space.
        --          Called by the method Draw of a primitive.
        --          IsIn permits the rejection of the primitive only
        --          if the Clipping flag is TRUE.
        --          When the Clipping flag is FALSE,this method returns
        --          always TRUE.
        ---Category: Rejection method

fields
        myXF:   ShortReal from Standard;
        myYF:   ShortReal from Standard;
        mySF:   ShortReal from Standard;

        myXT:   ShortReal from Standard;
        myYT:   ShortReal from Standard;
        myST:   ShortReal from Standard;
        myZF:   ShortReal from Standard;

        myDrawPrecision:                ShortReal from Standard is protected;
        myDeflectionCoefficient:        Real from Standard is protected;
        myTypeOfDeflection:             TypeOfDeflection from Aspect is protected;
        myTextPrecision:                ShortReal from Standard;

        myOverrideColor:        Integer from Standard;
        myOverride:             Boolean from Standard;

        myOffSet:               Integer from Standard;

        -- Space of the drawing area;
        mySpaceWidth:           ShortReal from Standard is protected;
        mySpaceHeight:          ShortReal from Standard is protected;

        myDriver:               DriverPtr from Aspect is protected;
        myDriverIsDefined:      Boolean from Standard is protected;
        myWDriver:              WindowDriverPtr from Aspect is protected;
        myPDriver:              PlotterDriverPtr from PlotMgt is protected;
        myMinMaxIsActivated:    Boolean from Standard is protected;
        myMinX,myMinY,myMaxX,myMaxY : ShortReal from Standard is protected;
        myClippingIsActivated:    Boolean from Standard is protected;

end Drawer from Graphic2d;