Changeset 1971 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc
- Timestamp:
- Apr 30, 2002, 2:34:41 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r1905 r1971 1135 1135 1136 1136 int wrsid = 0; 1137 bool fgsr = true;1138 int opt = servnobjm->DecodeDispOption(dopt, fgsr);1139 1137 1140 1138 string n1,r1; … … 1143 1141 if (dr) { 1144 1142 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 } 1146 else if (arr) wrsid = myImgApp->DispImage(arr, n1, dopt); 1149 1147 1150 1148 if(wrsid != 0) { … … 1153 1151 (*it).second.wrsid.push_back(wrsid); 1154 1152 } 1155 if (fgsr) myImgApp->RestoreGraphicAtt(); 1153 1156 1154 return; 1157 1155 } … … 1184 1182 1185 1183 int wrsid = 0; 1186 bool fgsr = true; 1187 int opt = servnobjm->DecodeDispOption(dopt, fgsr); 1188 wrsid = myImgApp->DispImage(arr, n1, opt); 1184 wrsid = myImgApp->DispImage(arr, n1, dopt); 1189 1185 1190 1186 if(wrsid != 0) { … … 1193 1189 (*it).second.wrsid.push_back(wrsid); 1194 1190 } 1195 if (fgsr) myImgApp->RestoreGraphicAtt();1196 1191 return; 1197 1192 } … … 1230 1225 1231 1226 int wrsid = 0; 1232 bool fgsr = true;1233 int opt = servnobjm->DecodeDispOption(dopt, fgsr);1234 1227 PISurfaceDrawer* sdr = new PISurfaceDrawer(arr, true, true, true); 1235 wrsid = myImgApp->Disp3DDrawer(sdr, n1, opt);1228 wrsid = myImgApp->Disp3DDrawer(sdr, n1, dopt); 1236 1229 if(wrsid >= 0) { 1237 1230 NObjList::iterator it = myObjs->find(nom); … … 1240 1233 } 1241 1234 1242 if (fgsr) myImgApp->RestoreGraphicAtt();1243 1235 return; 1244 1236 } … … 1265 1257 1266 1258 int wrsid = 0; 1267 bool fgsr = true; 1268 dopt = "defline," + dopt; 1269 int opt = servnobjm->DecodeDispOption(dopt, fgsr); 1259 dopt = "defline " + dopt; 1270 1260 1271 1261 string n1,r1; … … 1279 1269 pin->SelectErrBar(erx.c_str(), ery.c_str(), erz.c_str()); 1280 1270 string titre = nmz + "%" + nmy + "%" + nmz; 1281 wrsid = myImgApp->Disp3DDrawer(pin, n1, opt, titre);1271 wrsid = myImgApp->Disp3DDrawer(pin, n1, dopt, titre); 1282 1272 } 1283 1273 else { 1284 1274 PINTuple* pin = new PINTuple(nt, false); 1285 pin->SetStats(Services2NObjMgr::GetStatsOption(dopt));1286 1275 pin->SelectXY(nmx.c_str(), nmy.c_str()); 1287 1276 pin->SelectWt(wt.c_str()); … … 1289 1278 pin->SelectErrBar(erx.c_str(), ery.c_str()); 1290 1279 string titre = nmy + "%" + nmx; 1291 wrsid = myImgApp->DispScDrawer( (PIDrawer*)pin, n1, opt, titre);1280 wrsid = myImgApp->DispScDrawer( (PIDrawer*)pin, n1, dopt, titre); 1292 1281 } 1293 1282 … … 1298 1287 } 1299 1288 1300 if (fgsr) myImgApp->RestoreGraphicAtt();1301 1289 return; 1302 1290 } … … 1326 1314 return;} 1327 1315 1328 // Decodage des options classiques1329 bool fgsr = true;1330 int opt = servnobjm->DecodeDispOption(dopt, fgsr);1331 1316 // Decodage des erreurs a representer 1332 1317 bool errx=false, erry=false, errz=false; … … 1350 1335 pigfd->SelectXY(numvx,numvy); 1351 1336 pigfd->SelectErrBar(errx,erry,errz); 1352 wrsid = myImgApp->Disp3DDrawer(pigfd,n1, opt);1337 wrsid = myImgApp->Disp3DDrawer(pigfd,n1,dopt); 1353 1338 } else { // display 2D 1354 1339 PIGenFitDat* pigfd = new PIGenFitDat(((GeneralFitData*)obj),false); 1355 1340 pigfd->SelectX(numvx); 1356 1341 pigfd->SelectErrBar(errx,erry); 1357 wrsid = myImgApp->DispScDrawer((PIDrawer*)pigfd,n1, opt);1342 wrsid = myImgApp->DispScDrawer((PIDrawer*)pigfd,n1,dopt); 1358 1343 } 1359 1344 … … 1363 1348 (*it).second.wrsid.push_back(wrsid); 1364 1349 } 1365 if (fgsr) myImgApp->RestoreGraphicAtt(); 1350 1366 1351 return; 1367 1352 } … … 1424 1409 PIYfXDrawer * vxydrw = new PIYfXDrawer(avx, avy, true); 1425 1410 1426 // Decodage des options classiques1427 bool fgsr = true;1428 int opt = servnobjm->DecodeDispOption(dopt, fgsr);1429 1411 string nx,rx; 1430 1412 ParseObjectName(nomvx, rx, nx); … … 1434 1416 string title = ny + " (Y) vs. " + nx + " (X)"; 1435 1417 // display 2D 1436 int wrsid = myImgApp->DispScDrawer(vxydrw, title, opt); 1437 1438 if (fgsr) myImgApp->RestoreGraphicAtt(); 1418 int wrsid = myImgApp->DispScDrawer(vxydrw, title, dopt); 1419 1439 1420 return; 1440 1421 … … 1452 1433 1453 1434 1454 /* --Methode-- */1435 /* --Methode-- 1455 1436 void NamedObjMgr::SetGraphicAttributes(string gratt) 1456 1437 { … … 1460 1441 } 1461 1442 1462 /* --Methode-- */1463 1443 void NamedObjMgr::SetGraphicWinZone(int nzx, int nzy, bool fcr) 1464 1444 { … … 1467 1447 else myImgApp->SetZone(nzx, nzy); 1468 1448 } 1449 */ 1469 1450 1470 1451 /* --Methode-- */
Note:
See TracChangeset
for help on using the changeset viewer.