Changeset 130 in Sophya for trunk/SophyaPI
- Timestamp:
- Aug 7, 1998, 7:14:31 PM (27 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/picmapview.cc
r128 r130 13 13 14 14 { 15 cmap = NULL; 15 cmap = NULL; 16 vmin = 1.; vmax = -1.; 16 17 } 17 18 … … 25 26 26 27 /* --Methode-- */ 27 void PICMapView::SetColMap(PIColorMap* cmp, bool refr)28 void PICMapView::SetColMap(PIColorMap* cmp, float min, float max, bool refr) 28 29 { 29 30 if (cmp == NULL) { 30 31 if (cmap) delete cmap; 31 32 cmap = NULL; 33 vmin = 1.; vmax = -1.; 34 if (refr) Refresh(); 32 35 return; 33 36 } 34 if ( cmap && (cmp->Type() == cmap->Type()) && (cmp->Type() != CMAP_OTHER) ) return; 37 if ( cmap && (cmp->Type() == cmap->Type()) && (cmp->Type() != CMAP_OTHER) 38 && ((vmin-min) < 1.e-19) && ((vmin-min) > -1.e-19) && 39 ((vmax-max) < 1.e-19) && ((vmax-max) > -1.e-19) ) return; 35 40 if (cmap) delete cmap; 36 41 cmap = new PIColorMap(*cmp); 42 vmin = min; vmax = max; 37 43 if (refr) Refresh(); 38 44 return; … … 40 46 41 47 /* --Methode-- */ 42 void PICMapView::SetColMapId(CMapId cmapid, bool refr)48 void PICMapView::SetColMapId(CMapId cmapid, float min, float max, bool refr) 43 49 { 44 if (cmap && (cmap->Type() == cmapid) && (cmapid != CMAP_OTHER) ) return; 50 if ( cmap && (cmapid == cmap->Type()) && (cmapid != CMAP_OTHER) 51 && ((vmin-min) < 1.e-19) && ((vmin-min) > -1.e-19) && 52 ((vmax-max) < 1.e-19) && ((vmax-max) > -1.e-19) ) return; 45 53 if (cmap) delete cmap; 46 54 cmap = new PIColorMap(cmapid); 55 vmin = min; vmax = max; 47 56 if (refr) Refresh(); 48 57 return; … … 85 94 } 86 95 96 if (vmin > vmax) return; 97 if ( (cmap->Type() == CMAP_GREY32) || (cmap->Type() == CMAP_GREYINV32) || 98 (cmap->Type() == CMAP_GREY128) || (cmap->Type() == CMAP_GREYINV128) ) g->SelForeground(PI_Red); 99 else if ( (cmap->Type() == CMAP_COLRJ32) || (cmap->Type() == CMAP_COLRJ128) ) g->SelForeground(PI_Magenta); 100 else g->SelForeground(PI_White); 101 102 if (sx > sy) { // horizontal 103 int fsz = (sy < 20) ? sy-8 : 12; 104 g->SelFontSzPt(fsz); 105 char buff[32]; 106 sprintf(buff, "%.2f", vmin); 107 g->DrawString(4, sy-4, buff); 108 sprintf(buff, "%.2f", vmax); 109 g->DrawString(sx-4-(int)g->CalcStringWidth(buff), sy-4, buff); 110 } 111 else { // vertical 112 int fsz = (sx < 40) ? sx/4 : 12; 113 g->SelFontSzPt(fsz); 114 char buff[32]; 115 sprintf(buff, "%.2f", vmin); 116 g->DrawString(4, sy-4, buff); 117 sprintf(buff, "%.2f", vmax); 118 int fa, fd; 119 g->DrawString(4, g->GetFontHeight(fa,fd)+4, buff); 120 } 121 87 122 return; 88 123 } -
trunk/SophyaPI/PI/picmapview.h
r127 r130 23 23 virtual long kind() {return ClassId; } 24 24 25 void SetColMap(PIColorMap* cmp=NULL, bool refr=true);26 void SetColMapId(CMapId cmapid, bool refr=true);25 void SetColMap(PIColorMap* cmp=NULL, float min=1., float max=-1., bool refr=true); 26 void SetColMapId(CMapId cmapid, float min=1., float max=-1., bool refr=true); 27 27 28 28 // Traitement des evenements … … 33 33 protected: 34 34 PIColorMap* cmap; 35 float vmin, vmax; 35 36 }; 36 37 -
trunk/SophyaPI/PI/pigraphps.cc
r113 r130 65 65 void PIGraphicPS::Erase(PIGrCoord, PIGrCoord, PIGrCoord, PIGrCoord) 66 66 { 67 // A Faire ??? $CHECK$ 67 68 return; 68 69 } … … 137 138 xtmp = new float[n]; 138 139 ytmp = new float[n]; 139 140 float xoff,yoff; 141 if (cinc) { xoff=yoff=0.; } // Coord en mode incremental 142 else { xoff = (float)x[0]; yoff = (float)y[0]; } // Coord en mode absolu 143 for(i=0;i<n;i++) { 144 xtmp[i] = (float)x[i]-xoff; 145 ytmp[i] = (float)y[i]-yoff; 146 } 147 mPSOut->DrawPolygon(xtmp,ytmp,n,mFCol,mLAtt); 140 for(int i = 0 ; i < n ; i++) {xtmp[i] = (float)x[i] ; ytmp[i] = (float)y[i] ; } 141 //float xoff,yoff; 142 //if (cinc) { xoff=yoff=0.; } // Coord en mode incremental 143 //else { xoff = (float)x[0]; yoff = (float)y[0]; } // Coord en mode absolu 144 //xtmp[0] = (float)x[0]; 145 //ytmp[0] = (float)y[0]; 146 //for(i=1;i<n;i++) { 147 // xtmp[i] = (float)x[i]-xoff; 148 // ytmp[i] = (float)y[i]-yoff; 149 //} 150 mPSOut->DrawPolygon(xtmp,ytmp,n,mFCol,mLAtt,cinc); 148 151 delete[] xtmp; 149 152 delete[] ytmp; … … 164 167 xtmp = new float[n]; 165 168 ytmp = new float[n]; 166 167 float xoff,yoff; 168 if (cinc) { xoff=yoff=0.; } // Coord en mode incremental 169 else { xoff = (float)x[0]; yoff = (float)y[0]; } // Coord en mode absolu 170 for(i=0;i<n;i++) { 171 xtmp[i] = (float)x[i]-xoff; 172 ytmp[i] = (float)y[i]-yoff; 173 } 174 mPSOut->DrawFPolygon(xtmp,ytmp,n,mFCol,mFCol,mLAtt); 169 for(int i = 0 ; i < n ; i++) {xtmp[i] = (float)x[i] ; ytmp[i] = (float)y[i] ; } 170 //float xoff,yoff; 171 //if (cinc) { xoff=yoff=0.; } // Coord en mode incremental 172 //else { xoff = (float)x[0]; yoff = (float)y[0]; } // Coord en mode absolu 173 //xtmp[0] = (float)x[0]; 174 //ytmp[0] = (float)y[0]; 175 //for(i=1;i<n;i++) { 176 // xtmp[i] = (float)x[i]-xoff; 177 // ytmp[i] = (float)y[i]-yoff; 178 //} 179 mPSOut->DrawFPolygon(xtmp,ytmp,n,mFCol,mFCol,mLAtt,cinc); 175 180 delete[] xtmp; 176 181 delete[] ytmp; … … 215 220 { 216 221 if ( (sx < 1) || (sy < 1) ) return; 217 if ((pix == NULL) || (cmap == NULL)) return; 222 if ((pix == NULL) || (cmap == NULL)) return; 218 223 if(mPSOut) 219 224 mPSOut->Image((float)x, (float)y, (float)sx, (float)sy, sx, sy, pix, cmap); … … 238 243 void PIGraphicPS::SelForeground(PIColorMap& cmap, int cid) 239 244 { 245 // A Faire Voir Nicolas 240 246 mFCfMap = cmap.GetColor(cid); 241 247 mFCol = PI_ColorFromMap; 248 mPSOut->SelForeground(cmap, cid) ; 242 249 return; 243 250 } … … 246 253 void PIGraphicPS::SelBackground(PIColorMap& cmap, int cid) 247 254 { 255 // A Faire Voir Nicolas 248 256 mBCfMap = cmap.GetColor(cid); 249 257 mBCol = PI_ColorFromMap; … … 385 393 PIGrCoord PIGraphicPS::CalcStringWidth(char const* s) 386 394 { 387 return((float)(mFSize*strlen(s) )); /*$CHECK$ Voir Nicolas ! */395 return((float)(mFSize*strlen(s)*0.5)); /* facteur 0.5 ad'hoc $CHECK$ Voir Nicolas ! */ 388 396 } 389 397 -
trunk/SophyaPI/PI/piimage.cc
r128 r130 114 114 gvw->SetUserData(NULL, 0); 115 115 } 116 if (cmvw) cmvw->SetColMap(NULL, true);116 if (cmvw) cmvw->SetColMap(NULL, 1., -1., true); 117 117 if (lut) delete lut; 118 118 delete mdrw; … … 201 201 { 202 202 cmvw = cw; 203 if (cmvw && refr) cmvw->SetColMap(cmap, true);203 if (cmvw && refr) cmvw->SetColMap(cmap, Lut()->Min(), Lut()->Max(), true); 204 204 } 205 205 … … 352 352 if (zow) zow->SetColMap(cmp, refr); 353 353 if (gvw) gvw->SetColMap(cmp, refr); 354 if (cmvw) cmvw->SetColMap(cm p, refr);354 if (cmvw) cmvw->SetColMap(cmap, Lut()->Min(), Lut()->Max(), refr); 355 355 return; 356 356 } … … 365 365 if (zow) zow->SetColMapId(cmapid, refr); 366 366 if (gvw) gvw->SetColMapId(cmapid, refr); 367 if (cmvw) cmvw->SetColMapId(cmapid, refr);367 if (cmvw) cmvw->SetColMapId(cmapid, Lut()->Min(), Lut()->Max(), refr); 368 368 return; 369 369 } … … 392 392 if (gvw != NULL) 393 393 if ( (gvw->UserData() != this) || (mw) ) SetGloVPixmap(); 394 if (cmvw) cmvw->SetColMap(cmap, true);394 if (cmvw) cmvw->SetColMap(cmap, Lut()->Min(), Lut()->Max(), true); 395 395 396 396 return; … … 849 849 850 850 g->SelGOMode(PI_GOCopy); 851 if ( (GetColMapId() == CMAP_GREY32) || (GetColMapId() == CMAP_GREYINV32) ) g->SelForeground(PI_Red); 851 if ( (GetColMapId() == CMAP_GREY32) || (GetColMapId() == CMAP_GREYINV32) || 852 (GetColMapId() == CMAP_GREY128) || (GetColMapId() == CMAP_GREYINV128) ) g->SelForeground(PI_Red); 852 853 else g->SelForeground(PI_White); 853 854 … … 855 856 else g->SelLine(PI_ThickLine); 856 857 857 if ((xcurs>=0) && (ycurs>=0) ) {858 if ((xcurs>=0) && (ycurs>=0) && (g->kind() != PI_PSFileGraphics ) ) { 858 859 PIPixmap::Draw(g, xcurs-3, ycurs-CURSHSIZE, 6, CURSHSIZE*2); 859 860 PIPixmap::Draw(g, xcurs-CURSHSIZE, ycurs-3, CURSHSIZE*2, 6); … … 893 894 int a,d,h; 894 895 h = g->GetFontHeight(a, d); 895 PIPixmap::Draw(g, 0, YSize()-10-h, XSize(), h+10);896 if (g->kind() != PI_PSFileGraphics ) PIPixmap::Draw(g, 0, YSize()-10-h, XSize(), h+10); 896 897 } 897 898 return; -
trunk/SophyaPI/PI/pipodrw.cc
r128 r130 1 // Adaptateurs et Drawers divers pour Outils PEIDA++ 2 // R. Ansari 06-08/98 3 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA 4 1 5 #include "pipodrw.h" 2 6 #include "generalfit.h" … … 83 87 } 84 88 89 // ---------------------------------------------------------- 85 90 // Adaptateur de vecteurs Peida++ a P1DArrayAdapter 91 // ---------------------------------------------------------- 92 86 93 /* --Methode-- */ 87 94 POVectorAdapter::POVectorAdapter(Vector* v, bool ad) … … 103 110 } 104 111 112 // ---------------------------------------------------------- 105 113 // Adaptateur d'Histo-2D Peida++ a P2DArrayAdapter 114 // ---------------------------------------------------------- 115 106 116 /* --Methode-- */ 107 117 POH2DAdapter::POH2DAdapter(Histo2D* h2d, bool ad) … … 123 133 return((*mH2d)(ix, iy)); 124 134 } 135 136 // ---------------------------------------------------------- 137 // Adaptateur de matrice Peida++ a P2DArrayAdapter 138 // Attention Y: Lignes (rows) X: Colonnes 139 // ---------------------------------------------------------- 140 141 /* --Methode-- */ 142 POMatrixAdapter::POMatrixAdapter(Matrix* mtx, bool ad) 143 : P2DArrayAdapter(mtx->NCol(), mtx->NRows()) 144 { 145 aDel = ad; mMtx = mtx; 146 } 147 148 /* --Methode-- */ 149 POMatrixAdapter::~POMatrixAdapter() 150 { 151 if (aDel) delete mMtx; 152 } 153 154 /* --Methode-- */ 155 float POMatrixAdapter::Value(int ix, int iy) 156 { 157 // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col) 158 return((*mMtx)(iy, ix)); 159 } 160 161 -
trunk/SophyaPI/PI/pipodrw.h
r128 r130 10 10 #include "parradapter.h" 11 11 #include "cvector.h" 12 #include "matrix.h" 12 13 #include "histos2.h" 13 14 … … 63 64 }; 64 65 66 // Adaptateur de matrice Peida++ a P2DArrayAdapter 67 // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col) 68 class POMatrixAdapter : public P2DArrayAdapter { 69 public : 70 POMatrixAdapter(Matrix* mtx, bool ad=false); 71 virtual ~POMatrixAdapter(); 72 73 virtual float Value(int ix, int iy); 74 75 protected: 76 bool aDel; 77 Matrix* mMtx; 78 }; 79 80 65 81 #endif -
trunk/SophyaPI/PI/piscdrawwdg.cc
r120 r130 241 241 242 242 243 // ---------------------------------------------------------- 243 244 // Classe de trace de points/fonctions Y=f(X) 245 // Trace Y=ay->Value() = f(X= ax->Value()) si ax et ay != NULL 246 // Trace Y=ax->Value() = f(X= ax->X()) si ay == NULL 247 // ---------------------------------------------------------- 244 248 245 249 /* --Methode-- */ … … 250 254 mAx = ax; 251 255 mAy = ay; 252 if ((mAx == NULL) || (mAy == NULL)) mSz = 0; 253 else mSz = (mAx->Size() < mAy->Size()) ? mAx->Size() : mAy->Size(); 256 if ((mAx == NULL)) mSz = 0; 257 else { 258 if (!mAy) mSz = mAx->Size(); 259 else mSz = (mAx->Size() < mAy->Size()) ? mAx->Size() : mAy->Size(); 260 } 254 261 } 255 262 … … 270 277 ymin = ymax = mAy->Value(i); 271 278 float cv; 272 for(i=0; i<mSz; i++) {279 if (mAy) for(i=0; i<mSz; i++) { 273 280 cv = mAx->Value(i); 274 281 if (cv < xmin) xmin = cv; … … 277 284 if (cv < ymin) ymin = cv; 278 285 if (cv > ymax) ymax = cv; 279 } 286 } 287 else for(i=0; i<mSz; i++) { 288 cv = mAx->X(i); 289 if (cv < xmin) xmin = cv; 290 if (cv > xmax) xmax = cv; 291 cv = mAx->Value(i); 292 if (cv < ymin) ymin = cv; 293 if (cv > ymax) ymax = cv; 294 } 295 280 296 float dx, dy; 281 297 dx = 0.02*(xmax-xmin); … … 298 314 if ( (mMrk != PI_NotDefMarker) || (mLAtt == PI_NotDefLineAtt) ) { 299 315 for(i=0; i<mSz; i++) { 300 xp = mAx->Value(i);301 yp = mAy->Value(i);316 if (mAy) { xp = mAx->Value(i); yp = mAy->Value(i); } 317 else { xp = mAx->X(i); yp = mAx->Value(i); } 302 318 if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) ) continue; 303 319 g->DrawMarker(xp, yp); … … 309 325 // Trace des lignes 310 326 float xp2, yp2; 311 xp = mAx->Value(0);312 yp = mAy->Value(0);327 if (mAy) { xp = mAx->Value(0); yp = mAy->Value(0); } 328 else { xp = mAx->X(0); yp = mAx->Value(0); } 313 329 for(i=1; i<mSz; i++) { 314 xp2 = mAx->Value(i);315 yp2 = mAy->Value(i);330 if (mAy) { xp2 = mAx->Value(i); yp2 = mAy->Value(i); } 331 else { xp2 = mAx->X(i); yp2 = mAx->Value(i); } 316 332 if ( ((xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax)) && 317 333 ((xp2 < xmin) || (xp2 > xmax) || (yp2 < ymin) || (yp2 > ymax)) ) continue; -
trunk/SophyaPI/PI/piscdrawwdg.h
r127 r130 1 // Module PI : Peida Interactive PIScDrawWdg 1 // This may look like C code, but it is really -*- C++ -*- 2 // Module PI : Peida Interactive PIScDrawWdg PIYfXDrawer 2 3 // Gestionnaire Drawer-2D E.Aubourg, R. Ansari 96-98 3 4 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA … … 81 82 82 83 84 // ---------------------------------------------------------- 83 85 // Classe de traceur de points/fonction Y=F(x) 84 86 // Trace Y=ay->Value() = f(X= ax->Value()) si ax et ay != NULL 87 // Trace Y=ax->Value() = f(X= ax->X()) si ay == NULL 88 85 89 class P1DArrayAdapter; 86 90 class PIYfXDrawer : public PIDrawer { -
trunk/SophyaPI/PI/psfile.cc
r98 r130 29 29 PI_Landscape, PI_Portrait,\ 30 30 \ 31 PI_ Black, PI_White, PI_Grey, PI_Red, PI_Blue,\31 PI_ColorFromMap, PI_Black, PI_White, PI_Grey, PI_Red, PI_Blue,\ 32 32 PI_Green, PI_Yellow, PI_Magenta, PI_NotDefColor,\ 33 33 \ … … 41 41 $PIDict begin $PIDict /mtrx matrix put /Landscape %d def /Portrait %d def\n\ 42 42 %% Couleurs et fontes courantes\n\ 43 /C%-2d {ur ug ub setrgbcolor} bind def %% PI_ColorFromMap\n\ 43 44 /C%-2d {0.0 0.0 0.0 setrgbcolor} bind def %% PI_Black\n\ 44 45 /C%-2d {0.996 0.996 0.996 setrgbcolor} bind def %% PI_White\n\ … … 50 51 /C%-2d {0.996 0.0 0.996 setrgbcolor} bind def %% PI_Magenta\n\ 51 52 /C%-2d {} bind def %% PI_NotDefColor\n\ 52 /F%-2d {/ Times-Romanfindfont} bind def %% PI_RomanFont\n\53 /F%-2d {/ Times-Bold findfont} bind def %% PI_BoldFont\n\54 /F%-2d {/ Times-Italic findfont} bind def %% PI_ItalicFont\n\53 /F%-2d {/Courier findfont} bind def %% PI_RomanFont\n\ 54 /F%-2d {/Courier-Bold findfont} bind def %% PI_BoldFont\n\ 55 /F%-2d {/Courier-Italic findfont} bind def %% PI_ItalicFont\n\ 55 56 /F%-2d {}\ 56 57 bind def %% PI_NotDefFontAtt\n\ … … 616 617 } 617 618 619 void PSFile::SelForeground(PIColorMap& cmap, int cid) 620 { 621 mDrawColor = PI_ColorFromMap ; 622 PIColor tmp = cmap.GetColor(cid) ; 623 fprintf(mPSFile, "/ur %.3f def /ug %.3f def /ub %.3f def \n", 624 (float)(tmp.red)/65535., 625 (float)(tmp.green)/65535., 626 (float)(tmp.blue)/65535.) ; 627 } 628 629 630 void PSFile::SelBackground(PIColorMap& cmap, int cid) 631 { 632 mDrawColor = PI_ColorFromMap ; 633 } 634 618 635 619 636 void PSFile::DrawString (float x, float y, char *s, … … 646 663 PILineAtt LineAtt) { 647 664 665 int lw = 0 ; 666 667 switch(LineAtt) { 668 case PI_NotDefLineAtt: 669 break ; 670 case PI_NormalLine: 671 lw = 2. ; 672 break ; 673 case PI_ThinLine: 674 lw = 1 ; 675 break ; 676 case PI_ThickLine: 677 lw = 4 ; 678 break ; 679 } 680 648 681 /* Line Att */ 649 682 if ( (LineAtt != PI_NotDefLineAtt) || (LineAtt != mLineAtt) ) { 650 683 mLineAtt = LineAtt; 651 fprintf(mPSFile, "%d slw ", mLineAtt) ;684 fprintf(mPSFile, "%d slw ", lw) ; 652 685 } 653 686 … … 767 800 768 801 802 // Les coordonnees sont supposees etre en mode incremental . 769 803 void PSFile::DrawPolygon (float *x, float *y, int n, 770 804 PIColors DrawColor, 771 PILineAtt LineAtt ) {805 PILineAtt LineAtt, bool cinc) { 772 806 773 807 /* Line Att */ … … 785 819 /* On dessine ; ici*/ 786 820 fprintf(mPSFile, "%.2f Ux %.2f Uy m\n", x[0], y[0]); 787 for(int i = 0; i<n; i++) 788 fprintf(mPSFile, "%.2f Ux %.2f Uy %.2f Ux %.2f Uy l\n", 789 x[i+1], y[i+1], x[i], y[i]); 821 822 char* cmd ; 823 if(cinc == true) cmd = "%.2f Ux %.2f Uy rl\n" ; 824 else cmd = "%.2f Ux %.2f Uy l\n" ; 825 826 for(int i = 1; i<n; i++) 827 fprintf(mPSFile, cmd, x[i], y[i]); 790 828 fprintf(mPSFile, "c s\n"); 791 829 } … … 795 833 PIColors DrawColor, 796 834 PIColors FillColor, 797 PILineAtt LineAtt ) {835 PILineAtt LineAtt, bool cinc) { 798 836 799 837 /* Line Att */ … … 802 840 fprintf(mPSFile, "%d slw ", mLineAtt) ; 803 841 } 842 843 char* cmd ; 844 if(cinc == true) cmd = "%.2f Ux %.2f Uy rl\n" ; 845 else cmd = "%.2f Ux %.2f Uy l\n" ; 804 846 805 847 /* Dessin du fond... */ … … 809 851 fprintf(mPSFile, "%.2f Ux %.2f Uy m\n", x[0], y[0]); 810 852 int i; 811 for(i = 0; i<n; i++) 812 fprintf(mPSFile, "%.2f Ux %.2f Uy %.2f Ux %.2f Uy l\n", 813 x[i+1], y[i+1], x[i], y[i]); 853 for(i = 1; i<n; i++) 854 fprintf(mPSFile, cmd, x[i], y[i]); 814 855 fprintf(mPSFile, "c f\n"); 815 856 … … 819 860 fprintf(mPSFile, "C%d ", mDrawColor) ; 820 861 fprintf(mPSFile, "%.2f Ux %.2f Uy m\n", x[0], y[0]); 821 for(i = 0; i<n; i++) 822 fprintf(mPSFile, "%.2f Ux %.2f Uy %.2f Ux %.2f Uy l\n", 823 x[i+1], y[i+1], x[i], y[i]); 862 for(i = 1; i<n; i++) 863 fprintf(mPSFile, cmd, x[i], y[i]); 824 864 fprintf(mPSFile, "c s\n"); 825 865 } … … 899 939 } 900 940 /* Emplacement de l'image */ 901 fprintf(mPSFile, "gs %.2f %.2ftr %.2f Ux %.2f Uy sc\n", x0, y0, Tx, Ty);941 fprintf(mPSFile, "gs %.2f Ux %.2f Uy tr %.2f Ux %.2f Uy sc\n", x0, y0, Tx, Ty); 902 942 /* Nbr pix-X, Nbr pix-Y bits/pixels */ 903 943 fprintf(mPSFile, "%d %d 8\n", Nx, Ny); -
trunk/SophyaPI/PI/psfile.h
r71 r130 99 99 virtual void EndBloc(); 100 100 101 virtual void SelForeground(PIColorMap& cmap, int cid) ; 102 virtual void SelBackground(PIColorMap& cmap, int cid) ; 103 101 104 /* Trace */ 102 105 virtual void DrawString (float x, float y, char *s, … … 123 126 virtual void DrawPolygon (float *x, float *y, int n, 124 127 PIColors DrawColor = PI_NotDefColor, 125 PILineAtt LineAtt = PI_NotDefLineAtt); 128 PILineAtt LineAtt = PI_NotDefLineAtt, 129 bool cinc = true); 126 130 virtual void DrawFPolygon(float *x, float *y, int n, 127 131 PIColors DrawColor = PI_NotDefColor, 128 132 PIColors FillColor = PI_NotDefColor, 129 PILineAtt LineAtt = PI_NotDefLineAtt); 133 PILineAtt LineAtt = PI_NotDefLineAtt, 134 bool cinc = true); 130 135 virtual void DrawMarker (float x0, float y0, 131 136 PIMarker MrkType = PI_NotDefMarker,
Note:
See TracChangeset
for help on using the changeset viewer.