0022627: Change OCCT memory management defaults
[occt.git] / src / CGM / CGM_Driver.cdl
... / ...
CommitLineData
1-- File: CGM_Driver.cdl
2-- Created: Fri Sep 13 12:04:31 1996
3-- Author: DCB
4-- Copyright: Matra Datavision 1998
5
6class Driver from CGM inherits PlotterDriver from PlotMgt
7 ---Purpose: This class defines a CGM (Computer Graphic Metafile) plotter Driver.
8 --- All necessary information about methods (purpose, level, category, etc.)
9 --- can be found in CDL files from the inheritance tree (PlotMgt_PlotterDriver,
10 --- Aspect_Driver).
11
12uses
13 Plotter from PlotMgt,
14 ExtendedString from TCollection,
15 ColorMap from Aspect,
16 TypeMap from Aspect,
17 WidthMap from Aspect,
18 TypeOfText from Aspect,
19 TypeOfColorSpace from Aspect,
20 PlaneAngle from Quantity,
21 Length from Quantity,
22 Factor from Quantity,
23 Ratio from Quantity,
24 Array1OfShortReal from TShort
25
26
27is
28 Create(aPlotter : Plotter from PlotMgt;
29 aName : CString from Standard;
30 aDX,aDY : Length from Quantity;
31 aTypeOfColorSpace : TypeOfColorSpace from Aspect = Aspect_TOCS_RGB)
32 returns mutable Driver from CGM;
33
34
35 Create(aName : CString from Standard;
36 aDX,aDY : Length from Quantity;
37 aTypeOfColorSpace : TypeOfColorSpace from Aspect = Aspect_TOCS_RGB)
38 returns mutable Driver from CGM;
39
40
41 BeginFile(me: mutable;
42 aPlotter : Plotter from PlotMgt;
43 aDX,aDY : Length from Quantity;
44 aTypeOfColorSpace : TypeOfColorSpace from Aspect)
45 is private;
46
47 Close(me: mutable)
48 is redefined protected;
49 ---C++: alias ~
50
51
52 BeginDraw (me: mutable)
53 is redefined;
54
55
56 EndDraw (me: mutable; dontFlush: Boolean = Standard_False)
57 is redefined;
58
59
60 ---------------------------------------------
61 -- Category: Methods to define the attributes
62 ---------------------------------------------
63 InitializeColorMap(me: mutable; aColorMap: ColorMap from Aspect)
64 is redefined protected;
65
66
67 InitializeTypeMap(me: mutable; aTypeMap: TypeMap from Aspect)
68 is redefined protected;
69
70
71 InitializeWidthMap(me: mutable; aWidthMap: WidthMap from Aspect)
72 is virtual protected;
73
74
75 -----------------------------------------
76 -- Category: Methods to manage the images
77 -----------------------------------------
78 SizeOfImageFile (me; anImageFile: CString from Standard;
79 aWidth,aHeight: out Integer from Standard)
80 returns Boolean from Standard is redefined;
81
82
83 --------------------------------
84 -- Actual set graphic attributes
85 --------------------------------
86 PlotLineAttrib (me: mutable;
87 ColorIndex: Integer from Standard;
88 TypeIndex: Integer from Standard;
89 WidthIndex: Integer from Standard)
90 is redefined protected;
91
92
93 PlotPolyAttrib (me: mutable;
94 ColorIndex: Integer from Standard;
95 TileIndex: Integer from Standard;
96 DrawEdge: Boolean from Standard)
97 is redefined protected;
98
99
100 -----------------------------------------------
101 -- Category: Private methods to draw primitives
102 -----------------------------------------------
103 PlotPoint (me : mutable; X, Y: ShortReal from Standard)
104 returns Boolean from Standard
105 is redefined protected;
106
107
108 PlotSegment (me : mutable;
109 X1, Y1: ShortReal from Standard;
110 X2, Y2: ShortReal from Standard)
111 returns Boolean from Standard
112 is redefined protected;
113
114
115 PlotPolyline (me : mutable;
116 xArray : Address from Standard;
117 yArray : Address from Standard;
118 nPts : Address from Standard;
119 nParts : Integer from Standard)
120 returns Boolean from Standard
121 is redefined protected;
122
123
124 PlotPolygon (me : mutable;
125 xArray : Address from Standard;
126 yArray : Address from Standard;
127 nPts : Address from Standard;
128 nParts : Integer from Standard)
129 returns Boolean from Standard
130 is redefined protected;
131
132
133 PlotArc (me : mutable; X,Y : ShortReal from Standard;
134 anXradius,anYradius : ShortReal from Standard;
135 sAngle: ShortReal from Standard;
136 oAngle: ShortReal from Standard)
137 returns Boolean from Standard
138 is redefined protected;
139
140
141 PlotPolyArc (me : mutable; X,Y : ShortReal from Standard;
142 anXradius,anYradius : ShortReal from Standard;
143 sAngle: ShortReal from Standard;
144 oAngle: ShortReal from Standard)
145 returns Boolean from Standard
146 is redefined protected;
147
148
149 PlotImage (me: mutable;
150 aX, aY, aWidth: ShortReal from Standard;
151 aHeight, aScale: ShortReal from Standard;
152 anImageFile: CString from Standard;
153 anArrayOfPixels: Address from Standard;
154 aLineIndex: Integer from Standard = -1)
155 returns Boolean from Standard
156 is redefined protected;
157
158
159 InitializeDriver (me: mutable; aName: CString from Standard)
160 is private;
161
162
163 WriteData (me: mutable;
164 aCode: Integer from Standard;
165 pLongData: Address from Standard;
166 pFloatData: Address from Standard;
167 pCharData: Address from Standard)
168 is private;
169
170
171fields
172 myBKIndex: Integer from Standard;
173 myCurrentPage: Integer from Standard;
174 myFileIsOpened: Boolean from Standard;
175 myFillIndex: Integer from Standard;
176 myEdgeColor: Integer from Standard;
177 myEdgeType: Integer from Standard;
178 myEdgeWidth: Integer from Standard;
179 myInteriorStyle: Integer from Standard;
180 myEdgeVisibility: Integer from Standard;
181
182end Driver from CGM;