Changeset 506 in Sophya


Ignore:
Timestamp:
Oct 25, 1999, 10:35:36 AM (26 years ago)
Author:
ercodmgr
Message:

Modifs pour echelle Log - Reza 25/10/99

Location:
trunk/SophyaPI/PIext
Files:
5 edited

Legend:

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

    r496 r506  
    684684usage += ">> Axes:  stdaxes=defaxes=boxaxes  simpleaxes boxaxesgrid \n";
    685685usage += "          fineaxes  grid=fineaxesgrid \n";
     686usage += ">> LogScale : linx liny logx logy -> Lin/Log Scales for 2D plots \n";
    686687usage += ">> XYLimits : xylimits  -> Forces X-Y limits in 2-D plots \n";
    687688usage += ">> DisplayWindow: next same win stack \n";
  • trunk/SophyaPI/PIext/nomimagadapter.cc

    r495 r506  
    170170#pragma define_template NTupInt_Image<r_4>
    171171#endif
    172 #if defined(__ANSI_TEMPLATES__) || defined(__GNU_TEMPLATES__)
     172#if defined(ANSI_TEMPLATES) || defined(__ANSI_TEMPLATES__) || defined(__GNU_TEMPLATES__)
    173173template class NOMAdapter_Image<uint_2>;
    174174template class NOMAdapter_Image<int_2>;
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r495 r506  
    203203mXmin = mYmin = -1.;
    204204mXmax = mYmax = 1;
     205maXlog = maYlog = false;
    205206SaveGraphicAtt();
    206207
     
    483484scw->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
    484485scw->SetUserData(NULL, oid);
     486if (maXlog || maYlog)  scw->SetLogScale(maXlog, maYlog);  // Echelle log
    485487if (mFXYlim)  // Forcage limites XY
    486488  scw->SetLimits(mXmin, mXmax, mYmin, mYmax);
     
    13071309  mSYmin = mYmin;  mSYmax = mYmax;
    13081310  mSFXYlim = mFXYlim;
     1311  mSaXlog = maXlog;
     1312  mSaYlog = maYlog;
    13091313}
    13101314
     
    13251329  mYmin = mSYmin;  mYmax = mSYmax;
    13261330  mFXYlim = mSFXYlim;
    1327 }
     1331  maXlog = mSaXlog;
     1332  maYlog = mSaYlog;
     1333}
  • trunk/SophyaPI/PIext/pistdimgapp.h

    r440 r506  
    102102     void  SetXYLimits(double xmin=-1., double xmax=1., double ymin=-1., double ymax=1.);
    103103     inline void  UseXYLimits(bool fg=false) {  mFXYlim=fg; }
     104     inline void  SetXLogScale(bool logx=false) { maXlog = logx; }
     105     inline void  SetYLogScale(bool logy=false) { maYlog = logy; }
     106
    104107// Pour sauvegarder-restauration de  l'etat des attributs graphiques
    105108     void  SaveGraphicAtt();   
     
    169172    double       mSXmin, mSXmax, mSYmin, mSYmax;
    170173    bool         mFXYlim, mSFXYlim;
     174    bool         maXlog, mSaXlog;
     175    bool         maYlog, mSaYlog;
    171176
    172177    PIMessage mFCMsg;  // Message for processing FileOpen
  • trunk/SophyaPI/PIext/servnobjm.cc

    r500 r506  
    12261226  mImgapp->SetXYLimits();
    12271227  mImgapp->UseXYLimits();
     1228  mImgapp->SetXLogScale();
     1229  mImgapp->SetYLogScale();
    12281230  return(ropt);
    12291231  }
     
    12651267
    12661268  // Utilisation limites X-Y
    1267   if ( grt[k] == "xylimits" ) { mImgapp->UseXYLimits(true);  fgsrgr = true;  continue; }
     1269  if ( grt[k] == "xylimits" ) { mImgapp->UseXYLimits(true);  fgsrgr = true;  continue; }
     1270  // Echelle logarithmique d'axe
     1271  if ( grt[k] == "logx" )  { mImgapp->SetXLogScale(true); fgsrgr = true;  continue; }
     1272  if ( grt[k] == "linx" )  { mImgapp->SetXLogScale(false); fgsrgr = true;  continue; }
     1273  if ( grt[k] == "logy" )  { mImgapp->SetYLogScale(true); fgsrgr = true;  continue; }
     1274  if ( grt[k] == "liny" )  { mImgapp->SetYLogScale(false); fgsrgr = true;  continue; }
     1275
    12681276  // Si c'est une couleur
    12691277  it = GrAcolors.find(grt[k]);
Note: See TracChangeset for help on using the changeset viewer.