Changeset 1905 in Sophya for trunk/SophyaPI/PIGcont/pigncont.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/PIGcont/pigncont.cc

    r1857 r1905  
    546546  bool Invx, Invy, Exy;
    547547  PIColorMap * cmap = NULL;
    548   if(mCmapid !=CMAP_OTHER ){
    549     cmap = new PIColorMap(mCmapid);
     548  CMapId mcmapid = GetGraphicAtt().GetColMapId();
     549  if(mcmapid !=CMAP_OTHER ){
     550    cmap = new PIColorMap(mcmapid);
    550551  }
    551552  int numdr = 0;
     
    568569    // choix de la couleur
    569570   
    570     g->SelForeground(mFCol);
    571     if(mCmapid !=CMAP_OTHER ){
     571    g->SelForeground(GetGraphicAtt().GetFgColor());
     572    if(mcmapid !=CMAP_OTHER ){
    572573      if(_zmax-_zmin!=0){
    573574        int kc = ((lev - _zmin)/(_zmax-_zmin))*cmap->NCol();   
     
    579580    if(IsMarkOn()==true){
    580581     
    581       g->SelMarker(mMSz,mMrk);
     582      g->SelMarker(GetGraphicAtt().GetMarkerSz(), GetGraphicAtt().GetMarker());
    582583      g->DrawMarkers(xx,yy,npts);
    583584    }
     
    585586    if(mLineOn==true){
    586587     
    587       g->SelLine(mLAtt);
     588      g->SelLine(GetGraphicAtt().GetLineAtt());
    588589      g->DrawPolygon(xx,yy,npts,false);
    589590    }
     
    595596      char strg[10];
    596597      sprintf(strg,"%g",lev);
    597       PIFont myfont(mFName);
    598       myfont.SetFontAtt(mFAtt);
    599       myfont.SetFontSz(mFSz);
     598      PIFont myfont(GetGraphicAtt().GetFont());
    600599     
    601600      g->SelFont(myfont);
Note: See TracChangeset for help on using the changeset viewer.