Changeset 331 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- Jun 28, 1999, 1:56:16 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r295 r331 194 194 mZoom = 0; 195 195 mAxesFlags = kBoxAxes | kExtTicks | kLabels; 196 mXmin = mYmin = -1.; 197 mXmax = mYmax = 1; 196 198 SaveGraphicAtt(); 197 199 … … 367 369 368 370 /* --Methode-- */ 369 int PIStdImgApp::DispImage(P2DArrayAdapter* nouv, string const & name, int opt )371 int PIStdImgApp::DispImage(P2DArrayAdapter* nouv, string const & name, int opt, int oid) 370 372 { 371 373 PIImage* pii; … … 414 416 if ( mCmapid != CMAP_OTHER ) pii->SetColMapId(mCmapid, false); 415 417 pii->ShowCursor(true); 416 pii->SetUserData(NULL, flag);418 pii->SetUserData(NULL, oid); 417 419 pii->SetImage(nouv, true); 418 420 // printf("!!DBG!! PIImage Pos= %d %d Size= %d %d \n", pii->XPos(), pii->YPos(), pii->XSize(), pii->YSize() ); … … 427 429 428 430 /* --Methode-- */ 429 int PIStdImgApp::DispScDrawer(PIDrawer* scd, string const & name, int opt, string title )431 int PIStdImgApp::DispScDrawer(PIDrawer* scd, string const & name, int opt, string title, int oid) 430 432 { 431 433 if (scd == NULL) … … 462 464 else scw = new PIH2DWdg(win, (char *)name.c_str(), sx, sy, px, py); 463 465 scw->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); 464 scw->SetUserData(NULL, flag); 466 scw->SetUserData(NULL, oid); 467 if (mFXYlim) // Forcage limites XY 468 scw->SetLimits(mXmin, mXmax, mYmin, mYmax); 465 469 scw->SetAxesFlags(mAxesFlags); 466 470 … … 480 484 481 485 /* --Methode-- */ 482 int PIStdImgApp::Disp3DDrawer(PIDrawer3D* dr3, string const & name, int opt, string title )486 int PIStdImgApp::Disp3DDrawer(PIDrawer3D* dr3, string const & name, int opt, string title, int oid) 483 487 { 484 488 if (dr3 == NULL) … … 512 516 PIDraw3DWdg* wd3 = new PIDraw3DWdg(win, (char *)name.c_str(), sx, sy, px, py); 513 517 wd3->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); 514 wd3->SetUserData(NULL, flag);518 wd3->SetUserData(NULL, oid); 515 519 wd3->AddDrawer3D(dr3, true); 516 520 // Titre du plot … … 785 789 SetBusy(); 786 790 if (data) { 787 ObjMgr()->ReadFits(pfc->GetFileName()); 788 ObjMgr()->DisplayObj(ObjMgr()->LastObjName(), "win"); 791 string nomobj=""; 792 ObjMgr()->ReadFits(pfc->GetFileName(), nomobj); 793 ObjMgr()->DisplayObj(nomobj, "win"); 789 794 } 790 795 mFCMsg = 0; … … 816 821 case 10111 : 817 822 if (mCurWdg) { 818 string no = mCurWdg->Nom();823 int oid = mCurWdg->UserFlag(); 819 824 DeleteBaseWidget(mCurWdg); 820 mObjMgr->DelObj (no);825 mObjMgr->DelObj_Id(oid); 821 826 } 822 827 break; … … 1193 1198 mAxesFlags = axfl; 1194 1199 } 1200 /* --Methode-- */ 1201 void PIStdImgApp::SetXYLimits(double xmin, double xmax, double ymin, double ymax) 1202 { 1203 mXmin = xmin; mXmax= xmax; 1204 mYmin = ymin; mYmax= ymax; 1205 } 1195 1206 1196 1207 /* --Methode-- */ … … 1207 1218 mSZoom = mZoom; 1208 1219 mSAxesFlags = mAxesFlags; 1220 mSXmin = mXmin; mSXmax = mXmax; 1221 mSYmin = mYmin; mSYmax = mYmax; 1222 mSFXYlim = mFXYlim; 1209 1223 } 1210 1224 … … 1222 1236 mZoom = mSZoom; 1223 1237 mAxesFlags = mSAxesFlags; 1224 } 1238 mXmin = mSXmin; mXmax = mSXmax; 1239 mYmin = mSYmin; mYmax = mSYmax; 1240 mFXYlim = mSFXYlim; 1241 }
Note:
See TracChangeset
for help on using the changeset viewer.