Changeset 2357 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Apr 1, 2003, 11:09:36 AM (22 years ago)
Author:
ansari
Message:

Ajout decodage options config axes + options trace d'axes ds PIImage - Reza 01/04/2003

Location:
trunk/SophyaPI/PI
Files:
2 edited

Legend:

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

    r2322 r2357  
    141141
    142142mdrw = new PIElDrawer(false);
     143 mdrw->SetAxesFlags(kAxesNone);
    143144gvdrw = new PIElDrawer();
    144145AddDrawer(mdrw, true, false, false);
     
    517518  int ndec = opt.size();
    518519  bool fgcmapid=false, revcmapid=false; CMapId cmapid=CMAP_COLRJ32;
     520  bool invx = false;
     521  bool invy = false;
     522  bool exchxy = false;
     523  bool confaxes = false;
     524
    519525  for( k=0; k<opt.size(); k++ ) {
    520526    string opts = opt[k];
     
    554560      sscanf(opts.substr(12).c_str(),"%d,%d",&xc, &yc);
    555561      SetPave(xc, yc, false, true);
     562      continue;
     563    }
     564    // Configuration axes
     565    if (opts == "invx") {
     566      invx = true;
     567      confaxes = true;
     568      continue;
     569    }
     570    if (opts == "invy") {
     571      invy = true;
     572      confaxes = true;
     573      continue;
     574    }
     575    if (opts == "exchxy") {
     576      exchxy = true;
     577      confaxes = true;
    556578      continue;
    557579    }
     
    572594    }
    573595    ndec--;
    574     if (rmdecopt)  udopt.push_back(opts);
     596    udopt.push_back(opts);
    575597  }
    576598  // Set color map if requested
    577599  if(fgcmapid || revcmapid) SetColMapId(cmapid,revcmapid,false);
     600  // Configure axes if requested
     601  if (confaxes) ChangeAxesConfiguration(invx, invy, exchxy, false);
     602
     603  // Is there any more options to decode ?
     604  if (udopt.size() > 0)
     605    ndec += mdrw->DecodeOptionString(udopt, rmdecopt);
     606
    578607
    579608  if (rmdecopt)  opt = udopt;
  • trunk/SophyaPI/PI/piversion.h

    r2349 r2357  
    22#define PIVERSION_H_SEEN
    33
    4 #define PI_VERSIONNUMBER  3.93
     4#define PI_VERSIONNUMBER  3.94
    55
    66#endif
Note: See TracChangeset for help on using the changeset viewer.