Changeset 2781 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc
- Timestamp:
- May 30, 2005, 10:00:17 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/servnobjm.cc
r2762 r2781 261 261 if (!mImgapp) return; 262 262 263 if (npx < 3) npx = 3;264 if (npy < 3) npy = 3;265 if (npx > 250) npx = 250;266 if (npy > 250) npy = 250;263 if (npx < 2) npx = 2; 264 if (npy < 2) npy = 2; 265 //if (npx > 250) npx = 250; 266 //if (npy > 250) npy = 250; 267 267 if (xmax <= xmin) xmax = xmin+1.; 268 268 if (ymax <= ymin) ymax = ymin+1.; … … 310 310 } 311 311 else titre = nom; 312 int rsid = 0; 312 313 P2DArrayAdapter* arr = new POMatrixAdapter(mtx, false); 313 314 arr->DefineXYCoordinates(xmin, ymin, dx, dy); 314 PISurfaceDrawer* sdr = new PISurfaceDrawer(arr, true, true, true); 315 int rsid = mImgapp->Disp3DDrawer(sdr, titre, dopt); 315 if ( (npx <= 200) && (npy <= 200) ) { 316 PISurfaceDrawer* sdr = new PISurfaceDrawer(arr, true, true, true); 317 rsid = mImgapp->Disp3DDrawer(sdr, titre, dopt); 318 } 319 else rsid = mImgapp->DispImage(arr, titre, dopt); 320 316 321 if (nom.length() > 0) { 317 322 MyObjMgr()->AddObj(mtx, nom);
Note:
See TracChangeset
for help on using the changeset viewer.