Changeset 1569 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Jul 6, 2001, 3:44:54 PM (24 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r1548 r1569 748 748 usage += ">> Lines: defline normalline thinline thickline dashedline thindashedline \n"; 749 749 usage += " thickdashedline dottedline thindottedline thickdottedline \n"; 750 usage += ">> Fonts: deffont normalfont boldfont italicfont smallfont smallboldfont \n"; 751 usage += " smallitalicfont bigfont bigboldfont bigitalicfont \n"; 752 usage += " hugefont hugeboldfont hugeitalicfont \n"; 750 usage += ">> Font Att: deffontatt normalfont boldfont italicfont bolditalicfont \n"; 751 usage += " smallfont smallboldfont smallitalicfont smallbolditalicfont \n"; 752 usage += " bigfont bigboldfont bigitalicfont bigbolditalicfont \n"; 753 usage += " hugefont hugeboldfont hugeitalicfont hugebolditalicfont \n"; 754 usage += ">> Font Names: deffont courierfont helveticafont timesfont symbolfont \n"; 753 755 usage += ">> Marker: dotmarker<T> plusmarker<T> crossmarker<T> circlemarker <T> \n"; 754 756 usage += " fcirclemarker<T> boxmarker<T> fboxmarker<T> trianglemarker<T> \n"; -
trunk/SophyaPI/PIext/pistdimgapp.cc
r1513 r1569 200 200 mFCol = mBCol = PI_NotDefColor; 201 201 mLAtt = PI_NotDefLineAtt; 202 mFName = PI_DefaultFont; 202 203 mFSz = PI_NotDefFontSize; 203 204 mFAtt = PI_NotDefFontAtt; … … 523 524 if (mLAtt != PI_NotDefLineAtt) scd->SetLineAtt(mLAtt); 524 525 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) scd->SetFontAtt(mFSz, mFAtt); 526 if ( mFName != PI_DefaultFont ) scd->SetFont(mFName, scd->GetFontSz(), scd->GetFontAtt()); 525 527 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) scd->SetMarkerAtt(mMSz, mMrk); 526 528 if ( mCmapid != CMAP_OTHER ) scd->SetColMapId(mCmapid); … … 569 571 scw->SetLimits(mXmin, mXmax, mYmin, mYmax); 570 572 scw->SetAxesFlags(mAxesFlags); 573 // Fonte de trace d'axe 574 scw->BaseDrawer()->SetFont(mFName, mFSz, mFAtt); 571 575 572 576 if (typeid(*scd) != typeid(PIHisto2D)) scw->AddScDrawer(scd, true); … … 577 581 scw->SetTitles(title, t2); 578 582 } 583 579 584 // scw->Refresh(); ? Pas necessaire Reza 19/08/98, 05/05/99 $CHECK$ 580 585 mCurWin = win; … … 599 604 if (mLAtt != PI_NotDefLineAtt) dr3->SetLineAtt(mLAtt); 600 605 if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) ) dr3->SetFontAtt(mFSz, mFAtt); 606 if ( mFName != PI_DefaultFont ) dr3->SetFont(mFName, dr3->GetFontSz(), dr3->GetFontAtt()); 601 607 if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) ) dr3->SetMarkerAtt(mMSz, mMrk); 602 608 if ( mCmapid != CMAP_OTHER ) dr3->SetColMapId(mCmapid); … … 1407 1413 mLAtt = lat; 1408 1414 } 1415 1416 /* --Methode-- */ 1417 void PIStdImgApp::SetFontName(PIFontName fn) 1418 { 1419 mFName = fn; 1420 } 1421 1409 1422 /* --Methode-- */ 1410 1423 void PIStdImgApp::SetFontAtt(PIFontSize fsz, PIFontAtt fat) … … 1455 1468 mSBCol = mBCol; 1456 1469 mSLAtt = mLAtt; 1470 mSFName = mFName; 1457 1471 mSFSz = mFSz; 1458 1472 mSFAtt = mFAtt; … … 1482 1496 mBCol = mSBCol; 1483 1497 mLAtt = mSLAtt; 1498 mFName = mSFName; 1484 1499 mFSz = mSFSz; 1485 1500 mFAtt = mSFAtt; -
trunk/SophyaPI/PIext/pistdimgapp.h
r1504 r1569 96 96 PIColors bg=PI_NotDefColor); 97 97 void SetLineAtt(PILineAtt lat=PI_NotDefLineAtt); 98 void SetFontName(PIFontName fn=PI_DefaultFont); 98 99 void SetFontAtt(PIFontSize fsz=PI_NotDefFontSize, 99 100 PIFontAtt fat=PI_NotDefFontAtt); … … 171 172 PIColors mFCol, mBCol, mSFCol, mSBCol; 172 173 PILineAtt mLAtt, mSLAtt; 174 PIFontName mFName, mSFName; 173 175 PIFontSize mFSz, mSFSz; 174 176 PIFontAtt mFAtt, mSFAtt; -
trunk/SophyaPI/PIext/servnobjm.cc
r1504 r1569 1365 1365 mImgapp->SetColAtt(); 1366 1366 mImgapp->SetLineAtt(); 1367 mImgapp->SetFontName(); 1367 1368 mImgapp->SetFontAtt(); 1368 1369 mImgapp->SetMarkerAtt(); … … 1446 1447 if (it != GrAfonts.end()) { mImgapp->SetFontAtt((PIFontSize)((*it).second.a2), (PIFontAtt)((*it).second.a1) ); 1447 1448 fgsrgr = true; continue; } 1449 // Si c'est un nom de fontes 1450 it = GrAfontNames.find(grt[k]); 1451 if (it != GrAfontNames.end()) { mImgapp->SetFontName((PIFontName)((*it).second.a1)); 1452 fgsrgr = true; continue; } 1448 1453 // Si c'est un attribut de markers 1449 1454 it = GrAmarkers.find(grt[k]); … … 1534 1539 GrAlines["thickdottedline"] = gi; 1535 1540 1536 // Les fontes 1541 // Noms de fontes 1542 gi.a2 = 0; 1543 gi.a1 = PI_DefaultFont; 1544 GrAfontNames["deffont"] = gi; 1545 gi.a1 = PI_CourierFont; 1546 GrAfontNames["courierfont"] = gi; 1547 gi.a1 = PI_HelveticaFont; 1548 GrAfontNames["helveticafont"] = gi; 1549 gi.a1 = PI_TimesFont; 1550 GrAfontNames["timesfont"] = gi; 1551 gi.a1 = PI_SymbolFont; 1552 GrAfontNames["symbolfont"] = gi; 1553 1554 // Attributs de fontes 1537 1555 gi.a2 = PI_NotDefFontSize; 1538 1556 gi.a1 = PI_NotDefFontAtt; 1539 GrAfonts["deffont"] = gi; 1540 1557 GrAfontNames["deffontatt"] = gi; 1541 1558 gi.a2 = PI_NormalSizeFont; 1542 1559 gi.a1 = PI_RomanFont; … … 1546 1563 gi.a1 = PI_ItalicFont; 1547 1564 GrAfonts["italicfont"] = gi; 1565 gi.a1 = PI_BoldItalicFont; 1566 GrAfonts["bolditalicfont"] = gi; 1548 1567 gi.a2 = PI_SmallSizeFont; 1549 1568 gi.a1 = PI_RomanFont; … … 1553 1572 gi.a1 = PI_ItalicFont; 1554 1573 GrAfonts["smallitalicfont"] = gi; 1574 gi.a1 = PI_BoldItalicFont; 1575 GrAfonts["smallbolditalicfont"] = gi; 1555 1576 gi.a2 = PI_BigSizeFont; 1556 1577 gi.a1 = PI_RomanFont; … … 1560 1581 gi.a1 = PI_ItalicFont; 1561 1582 GrAfonts["bigitalicfont"] = gi; 1583 gi.a1 = PI_BoldItalicFont; 1584 GrAfonts["bigbolditalicfont"] = gi; 1562 1585 gi.a2 = PI_HugeSizeFont; 1563 1586 gi.a1 = PI_RomanFont; … … 1567 1590 gi.a1 = PI_ItalicFont; 1568 1591 GrAfonts["hugeitalicfont"] = gi; 1592 gi.a1 = PI_BoldItalicFont; 1593 GrAfonts["hugebolditalicfont"] = gi; 1569 1594 1570 1595 -
trunk/SophyaPI/PIext/servnobjm.h
r1319 r1569 140 140 GrAttNames GrAmarkers; 141 141 GrAttNames GrAfonts; 142 GrAttNames GrAfontNames; 142 143 GrAttNames GrAcmap; 143 144 GrAttNames GrAzoom;
Note:
See TracChangeset
for help on using the changeset viewer.