Changeset 1971 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc


Ignore:
Timestamp:
Apr 30, 2002, 2:34:41 PM (23 years ago)
Author:
ansari
Message:

1/ Basculement de decodage des options de display aux methodes
PIDrawer/PIWdg::DecodeOptionString()
2/ Possibilite de Show/Hide de la partie Zoom/ColorMap/Stat du MainWindow

Reza 30/4/2002

File:
1 edited

Legend:

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

    r1905 r1971  
    11351135
    11361136int wrsid = 0;
    1137 bool fgsr = true;
    1138 int opt = servnobjm->DecodeDispOption(dopt, fgsr);
    11391137
    11401138string n1,r1;
     
    11431141if (dr) {
    11441142  PIDrawer3D * dr3 = dynamic_cast<PIDrawer3D *>(dr);
    1145   if(dr3)  wrsid = myImgApp->Disp3DDrawer(dr3, n1, opt);
    1146   else wrsid = myImgApp->DispScDrawer( dr, n1, opt);
    1147   }
    1148 else if (arr) wrsid = myImgApp->DispImage(arr, n1, opt);
     1143  if(dr3)  wrsid = myImgApp->Disp3DDrawer(dr3, n1, dopt);
     1144  else wrsid = myImgApp->DispScDrawer( dr, n1, dopt);
     1145  }
     1146else if (arr) wrsid = myImgApp->DispImage(arr, n1, dopt);
    11491147
    11501148if(wrsid != 0) {
     
    11531151  (*it).second.wrsid.push_back(wrsid);
    11541152  }
    1155 if (fgsr) myImgApp->RestoreGraphicAtt();
     1153
    11561154return;
    11571155}
     
    11841182
    11851183int wrsid = 0;
    1186 bool fgsr = true;
    1187 int opt = servnobjm->DecodeDispOption(dopt, fgsr);
    1188 wrsid = myImgApp->DispImage(arr, n1, opt);
     1184wrsid = myImgApp->DispImage(arr, n1, dopt);
    11891185
    11901186if(wrsid != 0) {
     
    11931189  (*it).second.wrsid.push_back(wrsid);
    11941190  }
    1195 if (fgsr) myImgApp->RestoreGraphicAtt();
    11961191return;
    11971192}
     
    12301225
    12311226int wrsid = 0;
    1232 bool fgsr = true;
    1233 int opt = servnobjm->DecodeDispOption(dopt, fgsr);
    12341227PISurfaceDrawer* sdr = new PISurfaceDrawer(arr, true, true, true);
    1235 wrsid = myImgApp->Disp3DDrawer(sdr, n1, opt);
     1228wrsid = myImgApp->Disp3DDrawer(sdr, n1, dopt);
    12361229if(wrsid >= 0) {
    12371230  NObjList::iterator it = myObjs->find(nom);
     
    12401233  }
    12411234
    1242 if (fgsr) myImgApp->RestoreGraphicAtt(); 
    12431235return;
    12441236}
     
    12651257
    12661258int wrsid = 0;
    1267 bool fgsr = true;
    1268 dopt = "defline," + dopt;
    1269 int opt = servnobjm->DecodeDispOption(dopt, fgsr);
     1259dopt = "defline " + dopt;
    12701260
    12711261string n1,r1;
     
    12791269  pin->SelectErrBar(erx.c_str(), ery.c_str(), erz.c_str());
    12801270  string titre = nmz + "%" + nmy + "%" + nmz;
    1281   wrsid = myImgApp->Disp3DDrawer(pin, n1, opt, titre); 
     1271  wrsid = myImgApp->Disp3DDrawer(pin, n1, dopt, titre); 
    12821272}
    12831273else {
    12841274  PINTuple* pin = new PINTuple(nt, false);
    1285   pin->SetStats(Services2NObjMgr::GetStatsOption(dopt));
    12861275  pin->SelectXY(nmx.c_str(), nmy.c_str());
    12871276  pin->SelectWt(wt.c_str());
     
    12891278  pin->SelectErrBar(erx.c_str(), ery.c_str());
    12901279  string titre = nmy + "%" + nmx;
    1291   wrsid = myImgApp->DispScDrawer( (PIDrawer*)pin, n1, opt, titre);
     1280  wrsid = myImgApp->DispScDrawer( (PIDrawer*)pin, n1, dopt, titre);
    12921281  }
    12931282
     
    12981287  }
    12991288
    1300 if (fgsr) myImgApp->RestoreGraphicAtt();
    13011289return;
    13021290}
     
    13261314   return;}
    13271315
    1328 // Decodage des options classiques
    1329 bool fgsr = true;
    1330 int opt = servnobjm->DecodeDispOption(dopt, fgsr);
    13311316// Decodage des erreurs a representer
    13321317bool errx=false, erry=false, errz=false;
     
    13501335  pigfd->SelectXY(numvx,numvy);
    13511336  pigfd->SelectErrBar(errx,erry,errz);
    1352   wrsid = myImgApp->Disp3DDrawer(pigfd,n1,opt); 
     1337  wrsid = myImgApp->Disp3DDrawer(pigfd,n1,dopt); 
    13531338} else {                   // display 2D
    13541339  PIGenFitDat* pigfd = new PIGenFitDat(((GeneralFitData*)obj),false);
    13551340  pigfd->SelectX(numvx);
    13561341  pigfd->SelectErrBar(errx,erry);
    1357   wrsid = myImgApp->DispScDrawer((PIDrawer*)pigfd,n1,opt);
     1342  wrsid = myImgApp->DispScDrawer((PIDrawer*)pigfd,n1,dopt);
    13581343}
    13591344
     
    13631348  (*it).second.wrsid.push_back(wrsid);
    13641349}
    1365 if (fgsr) myImgApp->RestoreGraphicAtt();
     1350
    13661351return;
    13671352}
     
    14241409PIYfXDrawer * vxydrw = new PIYfXDrawer(avx, avy, true);
    14251410
    1426 // Decodage des options classiques
    1427 bool fgsr = true;
    1428 int opt = servnobjm->DecodeDispOption(dopt, fgsr);
    14291411string nx,rx;
    14301412ParseObjectName(nomvx, rx, nx);
     
    14341416string title = ny + " (Y) vs. " + nx + " (X)";
    14351417// display 2D
    1436 int wrsid = myImgApp->DispScDrawer(vxydrw, title, opt);
    1437 
    1438 if (fgsr) myImgApp->RestoreGraphicAtt();
     1418int wrsid = myImgApp->DispScDrawer(vxydrw, title, dopt);
     1419
    14391420return;
    14401421
     
    14521433
    14531434
    1454 /* --Methode-- */
     1435/* --Methode--
    14551436void NamedObjMgr::SetGraphicAttributes(string gratt)
    14561437{
     
    14601441}
    14611442
    1462 /* --Methode-- */
    14631443void NamedObjMgr::SetGraphicWinZone(int nzx, int nzy, bool fcr)
    14641444{
     
    14671447else myImgApp->SetZone(nzx, nzy);
    14681448}
     1449*/
    14691450
    14701451/* --Methode-- */
Note: See TracChangeset for help on using the changeset viewer.