Changeset 1905 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Feb 18, 2002, 11:41:28 PM (24 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/Makefile
r1858 r1905 58 58 $(INC)parradapter.h \ 59 59 $(INC)lut.h \ 60 $(INC)pidrawer.h \ 60 $(INC)pieldrw.h \ 61 $(INC)pidrawer.h \ 62 $(INC)pigratt.h \ 61 63 $(INC)pipixmapx.h \ 62 64 $(INC)pipixmapgen.h \ … … 143 145 $(INC)parradapter.h \ 144 146 $(INC)lut.h \ 145 $(INC)pidrawer.h \ 147 $(INC)pieldrw.h \ 148 $(INC)pidrawer.h \ 149 $(INC)pigratt.h \ 146 150 $(INC)pipixmapx.h \ 147 151 $(INC)pipixmapgen.h \ … … 165 169 $(INC)gp_dynarray.h \ 166 170 $(INC)gp_graph3d.h \ 167 $(INC)gp_alloc.h \ 168 nomgadapter.h \ 171 $(INC)gp_alloc.h nomgadapter.h \ 169 172 $(INC)generalfit.h \ 170 173 $(INC)tvector.h \ … … 209 212 $(INC)pievthandler.h \ 210 213 $(INC)psfile.h \ 214 $(INC)pigratt.h \ 211 215 $(INC)parradapter.h \ 212 216 $(INC)lut.h \ … … 245 249 $(INC)pifilechogen.h \ 246 250 $(INC)piimage.h \ 251 $(INC)pieldrw.h \ 247 252 $(INC)pipixmapx.h \ 248 253 $(INC)pipixmapgen.h \ … … 303 308 $(INC)parradapter.h \ 304 309 $(INC)lut.h \ 305 $(INC)pidrawer.h \ 310 $(INC)pieldrw.h \ 311 $(INC)pidrawer.h \ 312 $(INC)pigratt.h \ 306 313 $(INC)pipixmapx.h \ 307 314 $(INC)pipixmapgen.h \ … … 342 349 $(INC)pievthandler.h \ 343 350 $(INC)psfile.h \ 351 $(INC)pigratt.h \ 344 352 $(INC)parradapter.h \ 345 353 $(INC)lut.h \ … … 378 386 $(INC)pifilechogen.h \ 379 387 $(INC)piimage.h \ 388 $(INC)pieldrw.h \ 380 389 $(INC)pipixmapx.h \ 381 390 $(INC)pipixmapgen.h \ … … 410 419 $(INC)fitslocalmap.h \ 411 420 $(INC)localmap.h pitvmaad.h \ 412 $(INC)pi scdrawwdg.h \421 $(INC)piyfxdrw.h \ 413 422 $(INC)pisurfdr.h pipodrw.h \ 414 423 $(INC)histos2.h \ … … 438 447 $(INC)pievthandler.h \ 439 448 $(INC)psfile.h \ 449 $(INC)pigratt.h \ 440 450 $(INC)parradapter.h \ 441 451 $(INC)lut.h \ … … 480 490 $(INC)pievthandler.h \ 481 491 $(INC)psfile.h \ 492 $(INC)pigratt.h \ 482 493 $(INC)parradapter.h \ 483 494 $(INC)lut.h \ … … 528 539 $(INC)pievthandler.h \ 529 540 $(INC)psfile.h \ 541 $(INC)pigratt.h \ 530 542 $(INC)parradapter.h \ 531 543 $(INC)lut.h \ … … 566 578 $(INC)piwindowgen.h \ 567 579 $(INC)picontainerx.h \ 568 $(INC)picontainergen.h pipodrw.h servnobjm.h \ 580 $(INC)picontainergen.h \ 581 $(INC)pieldrw.h pipodrw.h servnobjm.h \ 569 582 $(INC)pdlmgr.h dlftypes.h \ 570 583 $(INC)objfitter.h \ … … 600 613 $(INC)pievthandler.h \ 601 614 $(INC)psfile.h \ 615 $(INC)pigratt.h \ 602 616 $(INC)parradapter.h \ 603 617 $(INC)lut.h \ … … 653 667 $(INC)pievthandler.h \ 654 668 $(INC)psfile.h \ 669 $(INC)pigratt.h \ 655 670 $(INC)parradapter.h \ 656 671 $(INC)lut.h \ … … 717 732 $(INC)pievthandler.h \ 718 733 $(INC)psfile.h \ 734 $(INC)pigratt.h \ 719 735 $(INC)parradapter.h \ 720 736 $(INC)lut.h \ … … 763 779 $(INC)pievthandler.h \ 764 780 $(INC)psfile.h \ 781 $(INC)pigratt.h \ 765 782 $(INC)parradapter.h \ 766 783 $(INC)lut.h \ … … 782 799 $(INC)perrors.h \ 783 800 $(INC)fmath.h pitvmaad.h \ 784 $(INC)piscdrawwdg.h \ 785 $(INC)pibwdgx.h \ 786 $(INC)pigraphps.h \ 787 $(INC)pistdwdgx.h \ 788 $(INC)pistdwdggen.h \ 789 $(INC)piwindowx.h \ 790 $(INC)piwindowgen.h \ 791 $(INC)picontainerx.h \ 792 $(INC)picontainergen.h \ 801 $(INC)piyfxdrw.h \ 793 802 $(INC)fioarr.h \ 794 803 $(INC)fitstarray.h \ … … 843 852 $(INC)pievthandler.h \ 844 853 $(INC)psfile.h \ 845 $(INC)parradapter.h \ 846 $(INC)lut.h \ 847 $(INC)piscdrawwdg.h \ 848 $(INC)pibwdgx.h \ 849 $(INC)pigraphps.h \ 850 $(INC)pistdwdgx.h \ 851 $(INC)pistdwdggen.h \ 852 $(INC)piwindowx.h \ 853 $(INC)piwindowgen.h \ 854 $(INC)picontainerx.h \ 855 $(INC)picontainergen.h pitvmaad.h \ 854 $(INC)pigratt.h \ 855 $(INC)parradapter.h \ 856 $(INC)lut.h \ 857 $(INC)piyfxdrw.h pitvmaad.h \ 856 858 $(INC)fitstarray.h \ 857 859 $(INC)fitsfile.h \ … … 900 902 $(INC)pievthandler.h \ 901 903 $(INC)psfile.h \ 904 $(INC)pigratt.h \ 902 905 $(INC)parradapter.h \ 903 906 $(INC)lut.h \ … … 925 928 $(INC)pifilechogen.h \ 926 929 $(INC)piimage.h \ 930 $(INC)pieldrw.h \ 927 931 $(INC)pipixmapx.h \ 928 932 $(INC)pipixmapgen.h \ … … 976 980 $(INC)parradapter.h \ 977 981 $(INC)lut.h \ 978 $(INC)pidrawer.h \ 982 $(INC)pieldrw.h \ 983 $(INC)pidrawer.h \ 984 $(INC)pigratt.h \ 979 985 $(INC)pipixmapx.h \ 980 986 $(INC)pipixmapgen.h \ … … 1059 1065 $(INC)pievthandler.h \ 1060 1066 $(INC)psfile.h \ 1067 $(INC)pigratt.h \ 1061 1068 $(INC)parradapter.h \ 1062 1069 $(INC)lut.h \ … … 1082 1089 $(INC)pifilechogen.h \ 1083 1090 $(INC)piimage.h \ 1091 $(INC)pieldrw.h \ 1084 1092 $(INC)pipixmapx.h \ 1085 1093 $(INC)pipixmapgen.h \ … … 1132 1140 $(INC)pigraphuc.h \ 1133 1141 $(INC)pievthandler.h \ 1134 $(INC)psfile.h 1142 $(INC)psfile.h \ 1143 $(INC)pigratt.h 1135 1144 $(OBJ)pigfd2.o: pigfd2.cc pigfd2.h \ 1136 1145 $(INC)generaldata.h \ … … 1173 1182 $(INC)pievthandler.h \ 1174 1183 $(INC)psfile.h \ 1184 $(INC)pigratt.h \ 1185 $(INC)pieldrw.h \ 1175 1186 $(INC)pigraph3d.h \ 1176 1187 $(INC)pibwdgx.h \ … … 1213 1224 $(INC)pievthandler.h \ 1214 1225 $(INC)psfile.h \ 1226 $(INC)pigratt.h \ 1215 1227 $(INC)hisprof.h 1216 $(OBJ)pihisto2d.o: pihisto2d.cc $(INC)piapplgen.h \ 1217 $(INC)pimsghandler.h \ 1218 $(INC)machdefs.h \ 1219 $(INC)pisysdep.h \ 1228 $(OBJ)pihisto2d.o: pihisto2d.cc $(INC)piapplx.h \ 1229 $(INC)piapplgen.h \ 1230 $(INC)pimsghandler.h \ 1220 1231 $(INC)picontainerx.h \ 1221 1232 $(INC)picontainergen.h \ … … 1268 1279 $(INC)piwindowgen.h \ 1269 1280 $(INC)pidrawer.h \ 1281 $(INC)pigratt.h \ 1282 $(INC)pieldrw.h \ 1270 1283 $(INC)nbrandom.h \ 1271 1284 $(INC)srandgen.h … … 1314 1327 $(INC)parradapter.h \ 1315 1328 $(INC)lut.h \ 1316 $(INC)pidrawer.h \ 1329 $(INC)pieldrw.h \ 1330 $(INC)pidrawer.h \ 1331 $(INC)pigratt.h \ 1317 1332 $(INC)pipixmapx.h \ 1318 1333 $(INC)pipixmapgen.h \ … … 1392 1407 $(INC)pievthandler.h \ 1393 1408 $(INC)psfile.h \ 1409 $(INC)pigratt.h \ 1410 $(INC)pieldrw.h \ 1394 1411 $(INC)pigraph3d.h \ 1395 1412 $(INC)pibwdgx.h \ … … 1414 1431 $(INC)pigraphuc.h \ 1415 1432 $(INC)pievthandler.h \ 1416 $(INC)psfile.h 1433 $(INC)psfile.h \ 1434 $(INC)pigratt.h 1417 1435 $(OBJ)pipodrw.o: pipodrw.cc pipodrw.h \ 1418 1436 $(INC)machdefs.h \ … … 1434 1452 $(INC)pievthandler.h \ 1435 1453 $(INC)psfile.h \ 1454 $(INC)pigratt.h \ 1436 1455 $(INC)parradapter.h \ 1437 1456 $(INC)lut.h \ … … 1503 1522 $(INC)parradapter.h \ 1504 1523 $(INC)lut.h \ 1505 $(INC)pidrawer.h \ 1524 $(INC)pieldrw.h \ 1525 $(INC)pidrawer.h \ 1526 $(INC)pigratt.h \ 1506 1527 $(INC)pipixmapx.h \ 1507 1528 $(INC)pipixmapgen.h \ … … 1581 1602 $(INC)parradapter.h \ 1582 1603 $(INC)lut.h \ 1583 $(INC)pidrawer.h \ 1604 $(INC)pieldrw.h \ 1605 $(INC)pidrawer.h \ 1606 $(INC)pigratt.h \ 1584 1607 $(INC)pipixmapx.h \ 1585 1608 $(INC)pipixmapgen.h \ … … 1592 1615 $(INC)pistzwin.h \ 1593 1616 $(INC)piperiodx.h \ 1594 $(INC)periodic.h pihisto2d.h \ 1595 $(INC)histos2.h \ 1596 $(INC)peida.h \ 1597 $(INC)utils.h \ 1598 $(INC)fmath.h \ 1599 $(INC)histos.h \ 1600 $(INC)piscdrawwdg.h \ 1617 $(INC)periodic.h \ 1601 1618 $(INC)piimgtools.h \ 1602 1619 $(INC)pidrwtools.h \ 1603 $(INC)piaxestools.h piinit.h \ 1620 $(INC)piaxestools.h \ 1621 $(INC)piscdrawwdg.h piinit.h \ 1604 1622 $(INC)sambainit.h \ 1605 1623 $(INC)skymapinit.h \ … … 1652 1670 $(INC)pievthandler.h \ 1653 1671 $(INC)psfile.h \ 1672 $(INC)pigratt.h \ 1654 1673 $(INC)parradapter.h \ 1655 1674 $(INC)lut.h \ … … 1688 1707 $(INC)pifilechogen.h \ 1689 1708 $(INC)piimage.h \ 1709 $(INC)pieldrw.h \ 1690 1710 $(INC)pipixmapx.h \ 1691 1711 $(INC)pipixmapgen.h \ … … 1706 1726 $(INC)histos2.h \ 1707 1727 $(INC)hisprof.h \ 1708 $(INC)pi scdrawwdg.h \1728 $(INC)piyfxdrw.h \ 1709 1729 $(INC)pisurfdr.h pintuple.h pintup3d.h \ 1710 1730 pipodrw.h -
trunk/SophyaPI/PIext/nobjmgr.cc
r1547 r1905 26 26 #include "tvector.h" 27 27 #include "pitvmaad.h" 28 #include "pi scdrawwdg.h"28 #include "piyfxdrw.h" 29 29 #endif 30 30 -
trunk/SophyaPI/PIext/nommatvecadapter.cc
r1315 r1905 6 6 7 7 #include "nommatvecadapter.h" 8 #include "pi scdrawwdg.h"8 #include "piyfxdrw.h" 9 9 #include "pipodrw.h" 10 10 -
trunk/SophyaPI/PIext/nomtarradapter.cc
r1321 r1905 11 11 #include "tvector.h" 12 12 #include "pitvmaad.h" 13 #include "pi scdrawwdg.h"13 #include "piyfxdrw.h" 14 14 15 15 #include "fioarr.h" -
trunk/SophyaPI/PIext/nomtmatvecadapter.cc
r1321 r1905 11 11 #include "objfitter.h" 12 12 #include "nomtmatvecadapter.h" 13 #include "pi scdrawwdg.h"13 #include "piyfxdrw.h" 14 14 #include "pitvmaad.h" 15 15 -
trunk/SophyaPI/PIext/pigfd1.cc
r339 r1905 60 60 if(VarX<0) return; 61 61 // On plotte les barre d'erreurs ligne demandee explicitement 62 if( mLAtt!=PI_NotDefLineAtt) SelectErrBar(true,true);62 if(GetGraphicAtt().GetLineAtt()!=PI_NotDefLineAtt) SelectErrBar(true,true); 63 63 double xp,yp,er; 64 64 for (int i=0; i<mGFD->NData(); i++) { -
trunk/SophyaPI/PIext/pigfd2.cc
r440 r1905 73 73 74 74 // On plotte les barre d'erreurs ligne demandee explicitement 75 if( mLAtt!=PI_NotDefLineAtt) SelectErrBar(true,true,true);75 if(GetGraphicAtt().GetLineAtt()!=PI_NotDefLineAtt) SelectErrBar(true,true,true); 76 76 77 77 #if defined(CC_HAS_RTTI_SUPPORT) … … 81 81 #endif 82 82 83 if ( mLAtt== PI_NotDefLineAtt) g3->SelLine(PI_ThinLine);83 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g3->SelLine(PI_ThinLine); 84 84 85 85 double xp,yp,zp,er; -
trunk/SophyaPI/PIext/pihisto.cc
r1856 r1905 77 77 if (!mHisto) return; 78 78 79 if(mMrk != PI_NotDefMarker || (typeid(*mHisto) == typeid(HProf)) ) { 79 if((GetGraphicAtt().GetMarker() != PI_NotDefMarker) || 80 (typeid(*mHisto) == typeid(HProf)) ) { 80 81 // Marqeurs definis OU HProf => marqueurs+Erreurs si il y en a 81 82 mHisto->UpdateHisto(); // pour le cas ou c'est un HProf 82 if( mLAtt== PI_NotDefLineAtt) g->SelLine(PI_ThinLine);83 if(GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 83 84 double x1,y1, x2,y2; 84 85 double bw = mHisto->BinWidth(); … … 102 103 oktrace = true; 103 104 } 104 if( mLAtt!= PI_NotDefLineAtt) {105 if(GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) { 105 106 double x1,y1, x2, y2; 106 107 x1 = mHisto->BinLowEdge(0); … … 138 139 // if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 139 140 g->SelLine(PI_ThinLine); 140 g->SelFontSz((YMax() - YMin())/30 , mFAtt);141 g->SelFontSz((YMax() - YMin())/30); 141 142 142 143 // La hauteur de la cellule -
trunk/SophyaPI/PIext/pihisto2d.cc
r1884 r1905 253 253 254 254 // gestion epaisseur de ligne 255 if ( mLAtt== PI_NotDefLineAtt) g->SelLine(PI_ThinLine);255 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 256 256 257 257 // gestion Markers ou plot avec des points. … … 389 389 { 390 390 if (!mHisto) return; 391 if ( mLAtt== PI_NotDefLineAtt) g->SelLine(PI_ThinLine);392 g->SelFontSz((YMax() - YMin())/30 , mFAtt);391 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 392 g->SelFontSz((YMax() - YMin())/30); 393 393 394 394 // La hauteur de la cellule -
trunk/SophyaPI/PIext/pintup3d.cc
r1856 r1905 179 179 #endif 180 180 181 if ( mLAtt== PI_NotDefLineAtt) g3->SelLine(PI_ThinLine);181 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g3->SelLine(PI_ThinLine); 182 182 183 183 // Pour tracer des markers avec taille fonction de Wt (poids) … … 186 186 int msz,sz; 187 187 188 PIMarker mmrk = GetGraphicAtt().GetMarker(); 188 189 PIMarker mrk; 189 if (wK >= 0) mrk = (m Mrk != PI_NotDefMarker) ? mMrk : PI_CircleMarker;190 else mrk = (m Mrk != PI_NotDefMarker) ? mMrk : PI_DotMarker;191 msz = mMSz;190 if (wK >= 0) mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_CircleMarker; 191 else mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_DotMarker; 192 msz = GetGraphicAtt().GetMarkerSz(); 192 193 if (msz < 1) msz = 1; 193 194 g->SelMarker(msz, mrk); … … 200 201 yp = mNT->GetCell(i, yK); 201 202 zp = mNT->GetCell(i, zK); 202 if ( (i > 0) && (mLAtt != PI_NotDefLineAtt) ) // On relie les points ... 203 if ( (i > 0) && 204 (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) ) // On relie les points ... 203 205 g3->DrawLine3D(xl, yl, zl, xp, yp, zp); 204 206 nok++; … … 225 227 } 226 228 // Trace du marker 227 if ((wK >= 0)||(lK < 0)||(m Mrk != PI_NotDefMarker)) g3->DrawMarker3D(xp, yp, zp);229 if ((wK >= 0)||(lK < 0)||(mmrk != PI_NotDefMarker)) g3->DrawMarker3D(xp, yp, zp); 228 230 // Trace eventuel du label 229 231 if (lK >= 0) g3->DrawString3D(xp, yp, zp, mNT->GetCelltoString(i, lK).c_str()); -
trunk/SophyaPI/PIext/pintuple.cc
r1856 r1905 149 149 if (axesFlags != kAxesNone) DrawAxes(g); 150 150 if ( (xK < 0) || (yK < 0) ) return; 151 if ( mLAtt== PI_NotDefLineAtt) g->SelLine(PI_ThinLine);151 if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt) g->SelLine(PI_ThinLine); 152 152 153 153 // Pour tracer des markers avec taille fonction de Wt (poids) … … 156 156 int msz,sz; 157 157 158 PIMarker mmrk = GetGraphicAtt().GetMarker(); 158 159 PIMarker mrk; 159 if (wK >= 0) mrk = (m Mrk != PI_NotDefMarker) ? mMrk : PI_CircleMarker;160 else mrk = (m Mrk != PI_NotDefMarker) ? mMrk : PI_DotMarker;161 msz = mMSz;160 if (wK >= 0) mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_CircleMarker; 161 else mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_DotMarker; 162 msz = GetGraphicAtt().GetMarkerSz();; 162 163 if (msz < 1) msz = 1; 163 164 g->SelMarker(msz, mrk); … … 179 180 nok++; 180 181 if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) ) continue; 181 if ( (i > 0) && ( mLAtt != PI_NotDefLineAtt) ) // On relie les points ...182 g->DrawLine(xl, yl, xp, yp); 182 if ( (i > 0) && (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) ) 183 g->DrawLine(xl, yl, xp, yp); // On relie les points ... 183 184 if ( xebK >= 0 ) { 184 185 xer = mNT->GetCell(i, xebK); … … 199 200 } 200 201 // Trace du marker 201 if ((wK >= 0)||(lK < 0)||(m Mrk != PI_NotDefMarker)) g->DrawMarker(xp, yp);202 if ((wK >= 0)||(lK < 0)||(mmrk != PI_NotDefMarker)) g->DrawMarker(xp, yp); 202 203 // Trace eventuel du label 203 204 if (lK >= 0) g->DrawString(xp, yp, mNT->GetCelltoString(i, lK).c_str()); … … 206 207 207 208 if (stats) { // Trace de stats 208 g->SelFontSz((YMax() - YMin())/30 , mFAtt);209 g->SelFontSz((YMax() - YMin())/30); 209 210 // La hauteur de la cellule 210 211 PIGrCoord a,d; -
trunk/SophyaPI/PIext/pistdimgapp.cc
r1856 r1905 523 523 524 524 // Changement d'attributs graphiques courants du drawer 525 if (mFCol != PI_NotDefColor) scd->SetColAtt(mFCol, mBCol); 526 if (mLAtt != PI_NotDefLineAtt) scd->SetLineAtt(mLAtt); 527 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) scd->SetFontAtt(mFSz, mFAtt); 528 if ( mFName != PI_DefaultFont ) scd->SetFont(mFName, scd->GetFontSz(), scd->GetFontAtt()); 529 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) scd->SetMarkerAtt(mMSz, mMrk); 530 if ( mCmapid != CMAP_OTHER ) scd->SetColMapId(mCmapid); 525 if (mFCol != PI_NotDefColor) scd->GetGraphicAtt().SetColAtt(mFCol, mBCol); 526 if (mLAtt != PI_NotDefLineAtt) scd->GetGraphicAtt().SetLineAtt(mLAtt); 527 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) 528 scd->GetGraphicAtt().SetFontAtt(mFSz, mFAtt); 529 if ( mFName != PI_DefaultFont ) 530 scd->GetGraphicAtt().SetFontAtt(mFName, scd->GetGraphicAtt().GetFontSz(), 531 scd->GetGraphicAtt().GetFontAtt()); 532 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) 533 scd->GetGraphicAtt().SetMarkerAtt(mMSz, mMrk); 534 if ( mCmapid != CMAP_OTHER ) scd->GetGraphicAtt().SetColMapId(mCmapid); 531 535 532 536 … … 576 580 scw->SetAxesFlags(mAxesFlags); 577 581 // Fonte de trace d'axe 578 scw->BaseDrawer()-> SetFont(mFName, mFSz, mFAtt);582 scw->BaseDrawer()->GetGraphicAtt().SetFontAtt(mFName, mFSz, mFAtt); 579 583 /* 580 584 if (typeid(*scd) != typeid(PIHisto2D)) … … 607 611 608 612 // Changement d'attributs graphiques courants du drawer 609 if (mFCol != PI_NotDefColor) dr3->SetColAtt(mFCol, mBCol); 610 if (mLAtt != PI_NotDefLineAtt) dr3->SetLineAtt(mLAtt); 611 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) dr3->SetFontAtt(mFSz, mFAtt); 612 if ( mFName != PI_DefaultFont ) dr3->SetFont(mFName, dr3->GetFontSz(), dr3->GetFontAtt()); 613 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) dr3->SetMarkerAtt(mMSz, mMrk); 614 if ( mCmapid != CMAP_OTHER ) dr3->SetColMapId(mCmapid); 613 if (mFCol != PI_NotDefColor) dr3->GetGraphicAtt().SetColAtt(mFCol, mBCol); 614 if (mLAtt != PI_NotDefLineAtt) dr3->GetGraphicAtt().SetLineAtt(mLAtt); 615 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) 616 dr3->GetGraphicAtt().SetFontAtt(mFSz, mFAtt); 617 if ( mFName != PI_DefaultFont ) 618 dr3->GetGraphicAtt().SetFontAtt(mFName, dr3->GetGraphicAtt().GetFontSz(), 619 dr3->GetGraphicAtt().GetFontAtt()); 620 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) 621 dr3->GetGraphicAtt().SetMarkerAtt(mMSz, mMrk); 622 if ( mCmapid != CMAP_OTHER ) dr3->GetGraphicAtt().SetColMapId(mCmapid); 615 623 616 624 if ( (!mLastWdg) && ( (opt == Disp_Same) || (opt == Disp_Inset) ) ) opt = Disp_Next; … … 669 677 670 678 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) 671 eld-> SetFontAtt(mFSz, mFAtt);679 eld->GetGraphicAtt().SetFontAtt(mFSz, mFAtt); 672 680 if ( mFName != PI_DefaultFont ) 673 eld->SetFont(mFName, eld->GetFontSz(), eld->GetFontAtt()); 681 eld->GetGraphicAtt().SetFontAtt(mFName, eld->GetGraphicAtt().GetFontSz(), 682 eld->GetGraphicAtt().GetFontAtt()); 674 683 eld->ElAddText(xp,yp,txt.c_str(),mFCol); 675 684 eld->Refresh(); … … 729 738 730 739 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) 731 eld-> SetFontAtt(mFSz, mFAtt);740 eld->GetGraphicAtt().SetFontAtt(mFSz, mFAtt); 732 741 if ( mFName != PI_DefaultFont ) 733 eld->SetFont(mFName, eld->GetFontSz(), eld->GetFontAtt()); 742 eld->GetGraphicAtt().SetFontAtt(mFName, eld->GetGraphicAtt().GetFontSz(), 743 eld->GetGraphicAtt().GetFontAtt()); 734 744 eld->SetTitles(titletop, titlebottom); 735 745 eld->Refresh(); -
trunk/SophyaPI/PIext/servnobjm.cc
r1888 r1905 36 36 #include "hisprof.h" 37 37 38 #include "pi scdrawwdg.h"38 #include "piyfxdrw.h" 39 39 #include "pisurfdr.h" 40 40 … … 1591 1591 gi.a1 = PI_BoldItalicFont; 1592 1592 GrAfonts["smallbolditalicfont"] = gi; 1593 gi.a2 = PI_ BigSizeFont;1593 gi.a2 = PI_LargeSizeFont; 1594 1594 gi.a1 = PI_RomanFont; 1595 1595 GrAfonts["bigfont"] = gi; 1596 GrAfonts["largefont"] = gi; 1596 1597 gi.a1 = PI_BoldFont; 1597 1598 GrAfonts["bigboldfont"] = gi; 1598 1599 gi.a1 = PI_ItalicFont; 1599 1600 GrAfonts["bigitalicfont"] = gi; 1601 GrAfonts["largeitalicfont"] = gi; 1600 1602 gi.a1 = PI_BoldItalicFont; 1601 1603 GrAfonts["bigbolditalicfont"] = gi; 1604 GrAfonts["largebolditalicfont"] = gi; 1602 1605 gi.a2 = PI_HugeSizeFont; 1603 1606 gi.a1 = PI_RomanFont;
Note:
See TracChangeset
for help on using the changeset viewer.