1 | // Module PI : Peida Interactive PIGraphicPS |
---|
2 | // Trace graphiques en PostScript R. Ansari 97 |
---|
3 | // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA |
---|
4 | |
---|
5 | #include <stdio.h> |
---|
6 | |
---|
7 | #include "sopnamsp.h" |
---|
8 | #include "pigraphps.h" |
---|
9 | |
---|
10 | //++ |
---|
11 | // Class PIGraphicPS |
---|
12 | // Lib PI |
---|
13 | // include pigraphps.h |
---|
14 | // |
---|
15 | // Classe les services de tracé graphique avec sortie PostScript |
---|
16 | // Toutes les méthodes de tracé de "PIGraphic" sont redéfinies pour |
---|
17 | // produire du PostScript |
---|
18 | //-- |
---|
19 | //++ |
---|
20 | // Links Parent |
---|
21 | // PIGraphic |
---|
22 | //-- |
---|
23 | //++ |
---|
24 | // Links Voir aussi |
---|
25 | // PSFile |
---|
26 | //-- |
---|
27 | |
---|
28 | //++ |
---|
29 | // Titre Constructeurs, méthodes |
---|
30 | //-- |
---|
31 | //++ |
---|
32 | // PIGraphicPS(PSFile * psf, double x0, double y0, double dx, double dy) |
---|
33 | // Création d'un objet "PIGraphicPS" à partir d'un objet "PSFIle* psf". |
---|
34 | // "(x0, y0)" détermine l'origine du nouveau bloc rectangulaire sur |
---|
35 | // la page et "dx, dy" l'extension du bloc. |
---|
36 | // PIGraphicPS(PSFile * psf, PIWdg* wdg, double ofx, double ofy, double scale_x, double scale_y) |
---|
37 | // Création d'un objet "PIGraphicPS" à partir d'un objet "PSFIle* psf" |
---|
38 | //| x0 = wdg->XPos()+ofx y0 = wdg->YPos()+ofy |
---|
39 | //| Extension du bloc dans la page: |
---|
40 | //| Tx = wdg->XSize()*scale_x Ty = wdg->YSize()*scale_y |
---|
41 | // |
---|
42 | // int kind() |
---|
43 | // Renvoie le type ("= PI_PSFileGraphics") |
---|
44 | //-- |
---|
45 | |
---|
46 | /* --Methode-- */ |
---|
47 | PIGraphicPS::PIGraphicPS(PSFile * psf, PIWdg* wdg, double ofx, double ofy, |
---|
48 | double scale_x, double scale_y) |
---|
49 | : PIGraphicGen() |
---|
50 | { |
---|
51 | BuildFromPSFile(psf, (double)wdg->XPos()+ofx, (double)wdg->YPos()+ofy, |
---|
52 | (double)wdg->XSize()*scale_x, (double)wdg->YSize()*scale_y, |
---|
53 | (double)wdg->XSize(), (double)wdg->YSize()); |
---|
54 | } |
---|
55 | |
---|
56 | /* --Methode-- */ |
---|
57 | PIGraphicPS::PIGraphicPS(PSFile * psf, double x0, double y0, double dx, double dy) |
---|
58 | : PIGraphicGen() |
---|
59 | { |
---|
60 | BuildFromPSFile(psf, x0, y0, dx, dy, dx, dy); |
---|
61 | } |
---|
62 | |
---|
63 | /* --Methode-- */ |
---|
64 | PIGraphicPS::~PIGraphicPS() |
---|
65 | { |
---|
66 | mPSOut->EndBloc(); |
---|
67 | } |
---|
68 | |
---|
69 | /* --Methode-- */ |
---|
70 | int PIGraphicPS::kind() |
---|
71 | { |
---|
72 | return PI_PSFileGraphics; |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | /* --Methode-- */ |
---|
77 | void PIGraphicPS::BuildFromPSFile(PSFile * psf, double x0, double y0, double tx, double ty, |
---|
78 | double dx, double dy) |
---|
79 | { |
---|
80 | mPSOut = psf; |
---|
81 | |
---|
82 | mGOm = PI_GOCopy; |
---|
83 | |
---|
84 | mFCol = mBCol = PI_Grey; |
---|
85 | SelForeground(PI_Black); |
---|
86 | SelBackground(PI_White); |
---|
87 | mLAtt = PI_ThinLine; |
---|
88 | SelLine(PI_NormalLine); |
---|
89 | // mFAtt = PI_BoldFont; mFSize = 0; $CHECK$ Plus besoin |
---|
90 | SelFont(); |
---|
91 | SelMarker(1, PI_DotMarker); |
---|
92 | |
---|
93 | if (psf) psf->NewBloc(x0, y0, tx, ty, dx, dy); |
---|
94 | mXmin = mYmin = 0.; |
---|
95 | mXmax = dx; mYmax = dy; |
---|
96 | mFCfMap.red = mFCfMap.blue = mFCfMap.blue = 0; |
---|
97 | mBCfMap = mFCfMap; |
---|
98 | } |
---|
99 | |
---|
100 | /* --Methode-- */ |
---|
101 | void PIGraphicPS::GetGrSpace(PIGrCoord& xmin, PIGrCoord& xmax, PIGrCoord& ymin, PIGrCoord& ymax) |
---|
102 | { |
---|
103 | xmin = ymin = 0; |
---|
104 | xmax = mXmax; ymax = mYmax; |
---|
105 | } |
---|
106 | |
---|
107 | /* --Methode-- */ |
---|
108 | void PIGraphicPS::Erase(PIGrCoord, PIGrCoord, PIGrCoord, PIGrCoord) |
---|
109 | { |
---|
110 | // A Faire ??? $CHECK$ |
---|
111 | return; |
---|
112 | } |
---|
113 | |
---|
114 | /* --Methode-- */ |
---|
115 | void PIGraphicPS::DrawString(PIGrCoord x, PIGrCoord y, const char* s, unsigned long pos) |
---|
116 | { |
---|
117 | if(mPSOut) { |
---|
118 | unsigned long txtdir = pos&PI_TextDirection; |
---|
119 | unsigned long posh = pos & PI_HorizontalPosition; |
---|
120 | unsigned long posv = pos & PI_VerticalPosition; |
---|
121 | int dx,dy; |
---|
122 | double xd = x; |
---|
123 | double yd = y; |
---|
124 | bool fgcsps = CalcStringPositionShift(s, posv, dx, dy); |
---|
125 | if (txtdir == PI_TextDirectionHorizontal) { |
---|
126 | if (fgcsps) yd -= dy; |
---|
127 | } |
---|
128 | else { |
---|
129 | if (txtdir == PI_TextDirectionVerticalDown) xd += dy; |
---|
130 | else xd -= dy; |
---|
131 | } |
---|
132 | mPSOut->DrawString(xd, yd, s, mFCol, myFont.GetFontName(), myFont.GetFontAtt(), |
---|
133 | myFont.GetFontSize(), posh|txtdir); |
---|
134 | } |
---|
135 | return; |
---|
136 | } |
---|
137 | |
---|
138 | /* --Methode-- */ |
---|
139 | void PIGraphicPS::DrawOpaqueString(PIGrCoord x, PIGrCoord y, const char* s, unsigned long pos) |
---|
140 | { |
---|
141 | if(mPSOut) { |
---|
142 | unsigned long txtdir = pos&PI_TextDirection; |
---|
143 | unsigned long posh = pos & PI_HorizontalPosition; |
---|
144 | unsigned long posv = pos & PI_VerticalPosition; |
---|
145 | int dx,dy; |
---|
146 | double xd = x; |
---|
147 | double yd = y; |
---|
148 | bool fgcsps = CalcStringPositionShift(s, posv, dx, dy); |
---|
149 | if (txtdir == PI_TextDirectionHorizontal) { |
---|
150 | if (fgcsps) yd -= dy; |
---|
151 | } |
---|
152 | else { |
---|
153 | if (txtdir == PI_TextDirectionVerticalDown) xd += dy; |
---|
154 | else xd -= dy; |
---|
155 | } |
---|
156 | mPSOut->DrawString(xd, yd, s, mFCol, myFont.GetFontName(), myFont.GetFontAtt(), |
---|
157 | myFont.GetFontSize(), posh|txtdir); |
---|
158 | } |
---|
159 | return; |
---|
160 | } |
---|
161 | |
---|
162 | |
---|
163 | /* --Methode-- */ |
---|
164 | void PIGraphicPS::DrawLine(PIGrCoord x1, PIGrCoord y1, PIGrCoord x2, PIGrCoord y2) |
---|
165 | { |
---|
166 | if(mPSOut) |
---|
167 | mPSOut->DrawLine((double)x1,(double)y1,(double)x2,(double)y2,mFCol,mLAtt); |
---|
168 | return; |
---|
169 | } |
---|
170 | |
---|
171 | |
---|
172 | /* --Methode-- */ |
---|
173 | void PIGraphicPS::DrawBox(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy) |
---|
174 | { |
---|
175 | if(mPSOut) |
---|
176 | mPSOut->DrawBox((double)x0,(double)y0,(double)dx,(double)dy,mFCol,mLAtt); |
---|
177 | return; |
---|
178 | } |
---|
179 | |
---|
180 | /* --Methode-- */ |
---|
181 | void PIGraphicPS::DrawFBox(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy) |
---|
182 | { |
---|
183 | if(mPSOut) |
---|
184 | mPSOut->DrawFBox((double)x0,(double)y0,(double)dx,(double)dy, mFCol, mFCol, mLAtt); |
---|
185 | return; |
---|
186 | } |
---|
187 | |
---|
188 | /* --Methode-- */ |
---|
189 | void PIGraphicPS::DrawCircle(PIGrCoord x0, PIGrCoord y0, PIGrCoord r) |
---|
190 | { |
---|
191 | if(mPSOut) |
---|
192 | mPSOut->DrawCircle((double)x0,(double)y0,(double)r,mFCol,mLAtt); |
---|
193 | return; |
---|
194 | } |
---|
195 | |
---|
196 | /* --Methode-- */ |
---|
197 | void PIGraphicPS::DrawFCircle(PIGrCoord x0, PIGrCoord y0, PIGrCoord r) |
---|
198 | { |
---|
199 | if(mPSOut) |
---|
200 | mPSOut->DrawFCircle((double)x0,(double)y0,(double)r,mFCol,mFCol); |
---|
201 | return; |
---|
202 | } |
---|
203 | |
---|
204 | /* --Methode-- */ |
---|
205 | void PIGraphicPS::DrawOval(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy) |
---|
206 | { |
---|
207 | if(mPSOut) |
---|
208 | mPSOut->DrawArc((double)x0,(double)y0,(double)dx,(double)dy,0.,360.,mFCol,mLAtt); |
---|
209 | return; |
---|
210 | } |
---|
211 | |
---|
212 | /* --Methode-- */ |
---|
213 | void PIGraphicPS::DrawFOval(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy) |
---|
214 | { |
---|
215 | if(mPSOut) |
---|
216 | mPSOut->DrawFArc((double)x0,(double)y0,(double)dx,(double)dy,0.,360.,mFCol,mFCol); |
---|
217 | return; |
---|
218 | |
---|
219 | } |
---|
220 | |
---|
221 | /* --Methode-- */ |
---|
222 | void PIGraphicPS::DrawPolygon(PIGrCoord *x, PIGrCoord *y, int n, bool cinc) |
---|
223 | { |
---|
224 | int i; |
---|
225 | double *xtmp; |
---|
226 | double *ytmp; |
---|
227 | |
---|
228 | if(! mPSOut) return; |
---|
229 | |
---|
230 | xtmp = new double[n]; |
---|
231 | ytmp = new double[n]; |
---|
232 | for(i = 0 ; i < n ; i++) {xtmp[i] = (double)x[i] ; ytmp[i] = (double)y[i] ; } |
---|
233 | //double xoff,yoff; |
---|
234 | //if (cinc) { xoff=yoff=0.; } // Coord en mode incremental |
---|
235 | //else { xoff = (double)x[0]; yoff = (double)y[0]; } // Coord en mode absolu |
---|
236 | //xtmp[0] = (double)x[0]; |
---|
237 | //ytmp[0] = (double)y[0]; |
---|
238 | //for(i=1;i<n;i++) { |
---|
239 | // xtmp[i] = (double)x[i]-xoff; |
---|
240 | // ytmp[i] = (double)y[i]-yoff; |
---|
241 | //} |
---|
242 | mPSOut->DrawPolygon(xtmp,ytmp,n,mFCol,mLAtt,cinc); |
---|
243 | delete[] xtmp; |
---|
244 | delete[] ytmp; |
---|
245 | |
---|
246 | return; |
---|
247 | } |
---|
248 | |
---|
249 | |
---|
250 | /* --Methode-- */ |
---|
251 | void PIGraphicPS::DrawFPolygon(PIGrCoord *x, PIGrCoord *y, int n, bool cinc) |
---|
252 | { |
---|
253 | int i; |
---|
254 | double *xtmp; |
---|
255 | double *ytmp; |
---|
256 | |
---|
257 | if(! mPSOut) return; |
---|
258 | |
---|
259 | xtmp = new double[n]; |
---|
260 | ytmp = new double[n]; |
---|
261 | for(i = 0 ; i < n ; i++) {xtmp[i] = (double)x[i] ; ytmp[i] = (double)y[i] ; } |
---|
262 | //double xoff,yoff; |
---|
263 | //if (cinc) { xoff=yoff=0.; } // Coord en mode incremental |
---|
264 | //else { xoff = (double)x[0]; yoff = (double)y[0]; } // Coord en mode absolu |
---|
265 | //xtmp[0] = (double)x[0]; |
---|
266 | //ytmp[0] = (double)y[0]; |
---|
267 | //for(i=1;i<n;i++) { |
---|
268 | // xtmp[i] = (double)x[i]-xoff; |
---|
269 | // ytmp[i] = (double)y[i]-yoff; |
---|
270 | //} |
---|
271 | mPSOut->DrawFPolygon(xtmp,ytmp,n,mFCol,mFCol,mLAtt,cinc); |
---|
272 | delete[] xtmp; |
---|
273 | delete[] ytmp; |
---|
274 | |
---|
275 | return; |
---|
276 | } |
---|
277 | |
---|
278 | /* --Methode-- */ |
---|
279 | void PIGraphicPS::DrawArc(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy,double degdeb, double deltadeg) |
---|
280 | { |
---|
281 | if(mPSOut) |
---|
282 | mPSOut->DrawArc((double)x0,(double)y0,(double)dx,(double)dy,degdeb,deltadeg,mFCol,mLAtt); |
---|
283 | return; |
---|
284 | } |
---|
285 | |
---|
286 | /* --Methode-- */ |
---|
287 | void PIGraphicPS::DrawFArc(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy,double degdeb, double deltadeg) |
---|
288 | { |
---|
289 | if(mPSOut) |
---|
290 | mPSOut->DrawFArc((double)x0,(double)y0,(double)dx,(double)dy,degdeb,deltadeg,mFCol,mFCol); |
---|
291 | return; |
---|
292 | } |
---|
293 | |
---|
294 | /* --Methode-- */ |
---|
295 | void PIGraphicPS::DrawMarker(PIGrCoord x0, PIGrCoord y0) |
---|
296 | { |
---|
297 | if(mPSOut) |
---|
298 | mPSOut->DrawMarker((double)x0,(double)y0,mMrk,mFCol,mMrkSz); |
---|
299 | return; |
---|
300 | } |
---|
301 | |
---|
302 | /* --Methode-- */ |
---|
303 | void PIGraphicPS::DrawMarkers(PIGrCoord *x, PIGrCoord *y, int n) |
---|
304 | { |
---|
305 | int i; |
---|
306 | double *xtmp; |
---|
307 | double *ytmp; |
---|
308 | |
---|
309 | if( !mPSOut) return; |
---|
310 | |
---|
311 | xtmp = new double[n]; |
---|
312 | ytmp = new double[n]; |
---|
313 | for(i=0;i<n;i++){ |
---|
314 | xtmp[i] = (double)x[i]; |
---|
315 | ytmp[i] = (double)y[i]; |
---|
316 | } |
---|
317 | mPSOut->DrawMarkers(xtmp,ytmp,n,mMrk,mFCol, mMrkSz); |
---|
318 | delete[] xtmp; |
---|
319 | delete[] ytmp; |
---|
320 | |
---|
321 | return; |
---|
322 | } |
---|
323 | |
---|
324 | |
---|
325 | /* --Methode-- */ |
---|
326 | void PIGraphicPS::DrawPixmap(PIGrCoord x, PIGrCoord y, PIPixColIdx & pixc, PIColorMap* cmap) |
---|
327 | { |
---|
328 | int sx = pixc.XSize(); |
---|
329 | int sy = pixc.YSize(); |
---|
330 | if ( (sx < 1) || (sy < 1) ) return; |
---|
331 | if (cmap == NULL) return; |
---|
332 | if(mPSOut) { |
---|
333 | if (pixc.BytePointer()) |
---|
334 | mPSOut->Image((double)x, (double)y, (double)sx, (double)sy, sx, sy, pixc.BytePointer(), cmap); |
---|
335 | else if (pixc.ShortPointer()) |
---|
336 | mPSOut->Image((double)x, (double)y, (double)sx, (double)sy, sx, sy, pixc.ShortPointer(), cmap); |
---|
337 | } |
---|
338 | return; |
---|
339 | } |
---|
340 | |
---|
341 | /* --Methode-- */ |
---|
342 | void PIGraphicPS::SelForeground(PIColors col) |
---|
343 | { |
---|
344 | mFCol = col; |
---|
345 | return; |
---|
346 | } |
---|
347 | |
---|
348 | /* --Methode-- */ |
---|
349 | void PIGraphicPS::SelBackground(PIColors col) |
---|
350 | { |
---|
351 | mBCol = col; |
---|
352 | return; |
---|
353 | } |
---|
354 | |
---|
355 | /* --Methode-- */ |
---|
356 | void PIGraphicPS::SelForeground(PIColorMap& cmap, int cid) |
---|
357 | { |
---|
358 | // A Faire Voir Nicolas |
---|
359 | mFCfMap = cmap.GetColor(cid); |
---|
360 | mFCol = PI_ColorFromMap; |
---|
361 | mPSOut->SelForeground(cmap, cid) ; |
---|
362 | return; |
---|
363 | } |
---|
364 | |
---|
365 | /* --Methode-- */ |
---|
366 | void PIGraphicPS::SelBackground(PIColorMap& cmap, int cid) |
---|
367 | { |
---|
368 | // A Faire Voir Nicolas |
---|
369 | mBCfMap = cmap.GetColor(cid); |
---|
370 | mBCol = PI_ColorFromMap; |
---|
371 | return; |
---|
372 | } |
---|
373 | |
---|
374 | /* --Methode-- */ |
---|
375 | void PIGraphicPS::SelGOMode(PIGOMode mod) |
---|
376 | { |
---|
377 | mGOm = mod; |
---|
378 | return; |
---|
379 | } |
---|
380 | /* --Methode-- */ |
---|
381 | void PIGraphicPS::SelFont(PIFont & fnt) |
---|
382 | { |
---|
383 | // $CHECK$ - Reza 13/06/99 |
---|
384 | if (myFont == fnt) return; |
---|
385 | myFont = fnt; |
---|
386 | // C'est peu-etre mieux |
---|
387 | // SelFontSzPt(fnt.GetFontSize(), fnt.GetFontAtt()); |
---|
388 | } |
---|
389 | |
---|
390 | |
---|
391 | //static int fntsz[5] = {8,10,12,14,16}; |
---|
392 | |
---|
393 | /* --Methode-- */ |
---|
394 | void PIGraphicPS::SelFont(PIFontSize sz, PIFontAtt att) |
---|
395 | { |
---|
396 | // $CHECK$ - Reza 13/06/99 |
---|
397 | PIFont fnt(myFont.GetFontName()); |
---|
398 | fnt.SetFontAtt(att); |
---|
399 | fnt.SetFontSz(sz); |
---|
400 | SelFont(fnt); |
---|
401 | return; |
---|
402 | } |
---|
403 | |
---|
404 | /* --Methode-- */ |
---|
405 | void PIGraphicPS::SelFontSzPt(int npt, PIFontAtt att) |
---|
406 | { |
---|
407 | // $CHECK$ - Reza 13/06/99 |
---|
408 | PIFont fnt(npt, myFont.GetFontName(), att); |
---|
409 | SelFont(fnt); |
---|
410 | } |
---|
411 | |
---|
412 | |
---|
413 | |
---|
414 | /* --Methode-- */ |
---|
415 | void PIGraphicPS::SelLine(PILineAtt const& att) |
---|
416 | { |
---|
417 | mLAtt = att; |
---|
418 | return; |
---|
419 | } |
---|
420 | |
---|
421 | |
---|
422 | /* --Methode-- */ |
---|
423 | void PIGraphicPS::SelMarker(int msz, PIMarker mrk) |
---|
424 | { |
---|
425 | if (msz > 1) { mMrk = mrk; mMrkSz = msz; } |
---|
426 | else { mMrk = PI_DotMarker; mMrkSz = 1; } |
---|
427 | return; |
---|
428 | } |
---|
429 | |
---|
430 | |
---|
431 | /* --Methode-- */ |
---|
432 | void PIGraphicPS::SetClipRectangle(PIGrCoord x0, PIGrCoord y0, PIGrCoord dx, PIGrCoord dy) |
---|
433 | { |
---|
434 | mPSOut->SetClipRectangle((double)x0, (double)y0, (double)dx, (double)dy); |
---|
435 | } |
---|
436 | |
---|
437 | /* --Methode-- */ |
---|
438 | void PIGraphicPS::ClearClipRectangle() |
---|
439 | { |
---|
440 | mPSOut->ClearClipRectangle(); |
---|
441 | } |
---|
442 | |
---|
443 | /* --Methode-- */ |
---|
444 | PIColors PIGraphicPS::GetForeground() |
---|
445 | { |
---|
446 | return (mFCol); |
---|
447 | } |
---|
448 | |
---|
449 | /* --Methode-- */ |
---|
450 | PIColors PIGraphicPS::GetBackground() |
---|
451 | { |
---|
452 | return (mBCol); |
---|
453 | } |
---|
454 | |
---|
455 | |
---|
456 | /* --Methode-- */ |
---|
457 | PIGOMode PIGraphicPS::GetGOMode() |
---|
458 | { |
---|
459 | return (mGOm); |
---|
460 | } |
---|
461 | |
---|
462 | |
---|
463 | /* --Methode-- */ |
---|
464 | PILineAtt PIGraphicPS::GetLineAtt() |
---|
465 | { |
---|
466 | return (mLAtt); |
---|
467 | } |
---|
468 | |
---|
469 | /* --Methode-- */ |
---|
470 | PIMarker PIGraphicPS::GetMarker() |
---|
471 | { |
---|
472 | return (mMrk); |
---|
473 | } |
---|
474 | |
---|
475 | /* --Methode-- */ |
---|
476 | int PIGraphicPS::GetMarkerSize() |
---|
477 | { |
---|
478 | return (mMrkSz); |
---|
479 | } |
---|
480 | |
---|
481 | /* --Methode-- |
---|
482 | int PIGraphicPS::GetFontHeight(int& asc, int& desc) |
---|
483 | { |
---|
484 | $CHECK$ A refaire , voir Nicolas |
---|
485 | asc = mFSize; desc = 0; |
---|
486 | return(asc+desc); |
---|
487 | } |
---|
488 | */ |
---|
489 | |
---|
490 | |
---|
491 | /* --Methode-- |
---|
492 | PIGrCoord PIGraphicPS::CalcStringWidth(char const* s) |
---|
493 | { |
---|
494 | return((double)(mFSize*strlen(s)*0.5)); |
---|
495 | // facteur 0.5 ad hoc $CHECK$ Voir Nicolas |
---|
496 | } |
---|
497 | */ |
---|
498 | |
---|
499 | |
---|
500 | /* --Methode-- */ |
---|
501 | void PIGraphicPS::SaveGraphicAtt() |
---|
502 | { |
---|
503 | // Pour optimier l'implementation de PIBaseWdgGen |
---|
504 | sFCol = mFCol; sBCol = mBCol; |
---|
505 | sGOm = mGOm; |
---|
506 | sFont = myFont; |
---|
507 | sMrk = mMrk; sMrkSz = mMrkSz; |
---|
508 | return; |
---|
509 | } |
---|
510 | |
---|
511 | |
---|
512 | /* --Methode-- */ |
---|
513 | void PIGraphicPS::RestoreGraphicAtt() |
---|
514 | { |
---|
515 | if (sFCol != PI_ColorFromMap) SelForeground(sFCol); |
---|
516 | // else A faire Nicolas |
---|
517 | if (sBCol != PI_ColorFromMap) SelBackground(sBCol); |
---|
518 | // else A faire Nicolas |
---|
519 | SelGOMode(sGOm); |
---|
520 | SelFont(sFont); |
---|
521 | SelLine(sLAtt); |
---|
522 | SelMarker(sMrkSz, sMrk); |
---|
523 | return; |
---|
524 | } |
---|
525 | |
---|
526 | |
---|
527 | |
---|
528 | |
---|
529 | |
---|