Changeset 2119 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jul 19, 2002, 1:37:30 AM (23 years ago)
Author:
ansari
Message:

Amelioration/debud decodage options ds pieldrw.cc piimage.cc , dbg prise en change de l'option AxeLog lors de UpdateLimit par PIScDrawWdg, MAJ numero de version - Reza 18/7/2002

Location:
trunk/SophyaPI/PI
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piaxes.cc

    r2116 r2119  
    319319{
    320320 if(garde<0. || garde>=1.) garde = 0.025;
    321  cout<<"ReSizeMinMax[log="<<axelog<<",garde="<<garde<<"] vmin="<<vmin<<" vmax="<<vmax<<endl;
     321 // cout<<"ReSizeMinMax[log="<<axelog<<",garde="<<garde<<"] vmin="<<vmin<<" vmax="<<vmax<<endl;
    322322 // Cas d'une echelle lineaire
    323323 if(!axelog || vmax<=0.) {
     
    342342 }
    343343
    344  cout<<"           vmin="<<vmin<<" vmax="<<vmax<<endl;
     344 // cout<<"           vmin="<<vmin<<" vmax="<<vmax<<endl;
    345345}
    346346
  • trunk/SophyaPI/PI/picons.cc

    r1904 r2119  
    930930      mCPBuffer[k] = mText[mLPo[j]+i]; k++;
    931931      }
    932     mCPBuffer[k] = '\n'; k++;
     932    if (j<mCPendL-1) mCPBuffer[k] = '\n'; k++;
    933933    }
    934934  mCPBuffer[l] = '\0';
  • trunk/SophyaPI/PI/pieldrw.cc

    r2088 r2119  
    7777int PIElDrawer::DecodeOptionString(vector<string> & opt, bool rmdecopt)
    7878{
    79   if (opt.size() < 1)  return(0); 
     79  int nopt0 = opt.size();
     80  if (nopt0 < 1)  return(0); 
    8081  int ndec1 = PIDrawer::DecodeOptionString(opt, rmdecopt);
    81   if ((opt.size() - ndec1) < 1) return(ndec1);  // si tout a ete decode
     82  if ((nopt0 - ndec1) < 1) return(ndec1);  // si tout a ete decode
    8283  vector<string> udopt;
    8384  unsigned int k = 0;
     
    8788    if ( (opts == "stdaxes") || (opts == "defaxes") || (opts == "boxaxes") )
    8889      SetAxesFlags(kBoxAxes | kExtTicks | kLabels);
    89     else if (opts == "simpleaxes")
    90       SetAxesFlags(kAxesDflt);
    91     else if (opts == "finesimpleaxes")
    92       SetAxesFlags(kAxesDflt | kMinTicks);
    9390    else if (opts == "boxaxesgrid")
    9491      SetAxesFlags(kBoxAxes | kExtTicks | kLabels | kGridOn);
     
    9794    else if ((opts == "grid") || (opts == "fineaxesgrid"))
    9895      SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks | kGridOn);
    99     else if (opts == "simpleaxesgrid")
    100       SetAxesFlags(kAxesDflt | kGridOn);
    101     else if (opts == "finesimpleaxesgrid")
    102       SetAxesFlags(kAxesDflt | kMinTicks | kGridOn);
     96    else if (opts == "centeredaxes")
     97      SetAxesFlags(kStdAxes | kMajTicks | kLabels);
     98    else if (opts == "finecenteredaxes")
     99      SetAxesFlags(kStdAxes | kMajTicks | kMinTicks | kLabels);
     100    else if (opts == "centeredaxesgrid")
     101      SetAxesFlags(kStdAxes | kMajTicks | kLabels | kGridOn);
     102    else if (opts == "finecenteredaxesgrid")
     103      SetAxesFlags(kStdAxes | kMajTicks | kMinTicks | kLabels | kGridOn);
    103104    else if (opts == "autofontsize")
    104105      SetAxesAutoFontSize(true);
  • trunk/SophyaPI/PI/piimage.cc

    r2092 r2119  
    527527    bool fgcmap = false;
    528528    for(int kcc=0; kcc<PIColorMap::NumberStandardColorMaps(); kcc++) {
    529       if (opts == PIColorMap::GetStandardColorMapName(kcc)) {
     529      string colname = PIColorMap::GetStandardColorMapName(kcc);
     530      for(unsigned int jll=0; jll<colname.length(); jll++)
     531        colname[jll] = tolower(colname[jll]);
     532      if (opts == colname) {
    530533        SetColMapId(PIColorMap::GetStandardColorMapId(kcc), false);
    531534        fgcmap = true;
     
    649652void PIImage::Resize()
    650653{
    651 // printf("PIImage::Resize\n");
     654//printf("PIImage::Resize\n");
    652655// On bascule sur la fenetre transient pour l'affichage des valeurs si fenetre trop petite
    653656if ((XSize() < 300) || (YSize() < 150) ) atrtw = true; 
  • trunk/SophyaPI/PI/piscdrawwdg.cc

    r2114 r2119  
    299299  if (d == NULL)  return(-1);
    300300  if (! LimitsFixed() ) {  //  On met a jour les limites
     301    // Le calcul de limites peut dependre du flag AxeLog Yes/No
     302    // pour le calcul de la marge de garde en particulier. On met
     303    // donc les flags AxeLog a jour avant UpdateLimits() Reza+CMV 07/2002
     304    d->SetLogScale(isDefaultDrawerLogScaleX(), isDefaultDrawerLogScaleY());
    301305    d->UpdateLimits();
    302306    SetLimits(d->XMin(), d->XMax(), d->YMin(), d->YMax(), mDXdir, mDYdir);
  • trunk/SophyaPI/PI/piversion.h

    r2096 r2119  
    22#define PIVERSION_H_SEEN
    33
    4 #define PI_VERSIONNUMBER  3.70
     4#define PI_VERSIONNUMBER  3.75
    55
    66#endif
Note: See TracChangeset for help on using the changeset viewer.