Changeset 1905 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- Feb 18, 2002, 11:41:28 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note:
See TracChangeset
for help on using the changeset viewer.