Changeset 2781 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc


Ignore:
Timestamp:
May 30, 2005, 10:00:17 AM (20 years ago)
Author:
ansari
Message:

1/ Separation de basexecut.cc en deux : commandes graphiques mises ds graphexecut.cc .h
2/ Finalisation commandes bargraph et textdrawer ds graphexecut.cc
3/ Adaptation piacmd.cc , suppression limite a 250 ds func2d et MAJ MAkefile et objlist.list

Reza 30 Mai 2005

File:
1 edited

Legend:

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

    r2762 r2781  
    261261if (!mImgapp)  return;
    262262
    263 if (npx < 3) npx = 3;
    264 if (npy < 3) npy = 3;
    265 if (npx > 250) npx = 250;
    266 if (npy > 250) npy = 250;
     263if (npx < 2) npx = 2;
     264if (npy < 2) npy = 2;
     265//if (npx > 250) npx = 250;
     266//if (npy > 250) npy = 250;
    267267if (xmax <= xmin) xmax = xmin+1.;
    268268if (ymax <= ymin) ymax = ymin+1.;
     
    310310    }
    311311  else titre = nom;
     312  int rsid = 0;
    312313  P2DArrayAdapter* arr = new POMatrixAdapter(mtx, false);
    313314  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
    316321  if (nom.length() > 0)  {
    317322    MyObjMgr()->AddObj(mtx, nom);
Note: See TracChangeset for help on using the changeset viewer.