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

    r1856 r1905  
    149149if (axesFlags != kAxesNone) DrawAxes(g);
    150150if ( (xK < 0) || (yK < 0) )  return;
    151 if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     151if (GetGraphicAtt().GetLineAtt() == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    152152
    153153//  Pour tracer des markers avec taille fonction de Wt (poids)
     
    156156int msz,sz;
    157157
     158PIMarker mmrk = GetGraphicAtt().GetMarker();
    158159PIMarker mrk;
    159 if (wK >= 0)  mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_CircleMarker;
    160 else   mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_DotMarker;
    161 msz = mMSz;
     160if (wK >= 0)  mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_CircleMarker;
     161else   mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_DotMarker;
     162msz = GetGraphicAtt().GetMarkerSz();;
    162163if (msz < 1) msz = 1;
    163164g->SelMarker(msz, mrk);
     
    179180  nok++;
    180181  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 ...
    183184  if ( xebK >= 0 ) {
    184185    xer = mNT->GetCell(i, xebK);
     
    199200  }
    200201  // Trace du marker
    201   if ((wK >= 0)||(lK < 0)||(mMrk != PI_NotDefMarker))  g->DrawMarker(xp, yp);
     202  if ((wK >= 0)||(lK < 0)||(mmrk != PI_NotDefMarker))  g->DrawMarker(xp, yp);
    202203  // Trace eventuel du label
    203204  if (lK >= 0) g->DrawString(xp, yp, mNT->GetCelltoString(i, lK).c_str());
     
    206207
    207208if (stats) { // Trace de stats
    208   g->SelFontSz((YMax() - YMin())/30, mFAtt); 
     209  g->SelFontSz((YMax() - YMin())/30); 
    209210  // La hauteur de la cellule
    210211  PIGrCoord a,d;
Note: See TracChangeset for help on using the changeset viewer.