Changeset 1905 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
Feb 18, 2002, 11:41:28 PM (24 years ago)
Author:
ansari
Message:

Adaptation a l'introduction de la classe PIGraphicAtt - Reza 18/02/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r1856 r1905  
    523523
    524524// 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);
     525if (mFCol != PI_NotDefColor) scd->GetGraphicAtt().SetColAtt(mFCol, mBCol);
     526if (mLAtt != PI_NotDefLineAtt) scd->GetGraphicAtt().SetLineAtt(mLAtt);
     527if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
     528  scd->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
     529if ( mFName != PI_DefaultFont )
     530  scd->GetGraphicAtt().SetFontAtt(mFName, scd->GetGraphicAtt().GetFontSz(),
     531                               scd->GetGraphicAtt().GetFontAtt());
     532if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) )
     533  scd->GetGraphicAtt().SetMarkerAtt(mMSz, mMrk);
     534if ( mCmapid != CMAP_OTHER ) scd->GetGraphicAtt().SetColMapId(mCmapid);
    531535
    532536
     
    576580scw->SetAxesFlags(mAxesFlags);
    577581// Fonte de trace d'axe
    578 scw->BaseDrawer()->SetFont(mFName, mFSz, mFAtt);
     582scw->BaseDrawer()->GetGraphicAtt().SetFontAtt(mFName, mFSz, mFAtt);
    579583/*
    580584if (typeid(*scd) != typeid(PIHisto2D))
     
    607611
    608612// 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);
     613if (mFCol != PI_NotDefColor) dr3->GetGraphicAtt().SetColAtt(mFCol, mBCol);
     614if (mLAtt != PI_NotDefLineAtt) dr3->GetGraphicAtt().SetLineAtt(mLAtt);
     615if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
     616  dr3->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
     617if ( mFName != PI_DefaultFont )
     618  dr3->GetGraphicAtt().SetFontAtt(mFName, dr3->GetGraphicAtt().GetFontSz(),
     619                                  dr3->GetGraphicAtt().GetFontAtt());
     620if ( (mMrk != PI_NotDefMarker) && (mMSz >= 0) )
     621  dr3->GetGraphicAtt().SetMarkerAtt(mMSz, mMrk);
     622if ( mCmapid != CMAP_OTHER ) dr3->GetGraphicAtt().SetColMapId(mCmapid);
    615623
    616624if ( (!mLastWdg) && ( (opt == Disp_Same) || (opt == Disp_Inset) ) )  opt = Disp_Next;
     
    669677
    670678if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
    671   eld->SetFontAtt(mFSz, mFAtt);
     679  eld->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
    672680if ( mFName != PI_DefaultFont )
    673   eld->SetFont(mFName, eld->GetFontSz(), eld->GetFontAtt());
     681  eld->GetGraphicAtt().SetFontAtt(mFName, eld->GetGraphicAtt().GetFontSz(),
     682                                  eld->GetGraphicAtt().GetFontAtt());
    674683eld->ElAddText(xp,yp,txt.c_str(),mFCol);
    675684eld->Refresh();
     
    729738
    730739if ( (mFSz != PI_NotDefFontSize) && (mFAtt != PI_NotDefFontAtt) )
    731   eld->SetFontAtt(mFSz, mFAtt);
     740  eld->GetGraphicAtt().SetFontAtt(mFSz, mFAtt);
    732741if ( mFName != PI_DefaultFont )
    733   eld->SetFont(mFName, eld->GetFontSz(), eld->GetFontAtt());
     742  eld->GetGraphicAtt().SetFontAtt(mFName, eld->GetGraphicAtt().GetFontSz(),
     743                                  eld->GetGraphicAtt().GetFontAtt());
    734744eld->SetTitles(titletop, titlebottom);
    735745eld->Refresh();
Note: See TracChangeset for help on using the changeset viewer.