Changeset 2924 in Sophya


Ignore:
Timestamp:
Mar 28, 2006, 11:49:04 AM (19 years ago)
Author:
ansari
Message:

prise en compte option nodisp dans PlotFunc (utilise pour newvec) suite modifs commandes FFT de sopiamodule.cc - Reza 28/3/2006

File:
1 edited

Legend:

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

    r2922 r2924  
    243243    }
    244244  else titre = nom;
    245  
     245
     246  MyObjMgr()->AddObj(vpy, nom);
     247
     248  if ( (dopt == "nodisp") || (dopt == "nodisplay") ) return;
     249
    246250  P1DArrayAdapter* vya = new POVectorAdapter(vpy, false);
    247251  vya->DefineXCoordinate(xmin, (xmax-xmin)/np);
     
    249253  dopt = "thinline " + dopt;
    250254  int rsid = mImgapp->DispScDrawer(dr, titre, dopt);
    251   if (nom.length() > 0) {
    252     MyObjMgr()->AddObj(vpy, nom);
    253     MyObjMgr()->AddWRsId(nom, rsid);
    254     }
    255   }
     255  MyObjMgr()->AddWRsId(nom, rsid);
     256}
    256257return;
    257258}
     
    793794
    794795NTuple* nt = NULL;
    795 if (nomvec.length() < 1) nomvec = "/tmp/expvec";
     796// if (nomvec.length() < 1) nomvec = "/tmp/expvec";
    796797
    797798char* ntn[2]= {"vecval", "vecwt"};
     
    828829  MathArray<r_8> ma;
    829830  ma.MeanSigma(*vec, mean, sigma);
    830   cout << " Mean= " << mean << "  Sigma= " << sigma
     831  cout << "Size= " << vec->Size() << " Mean= " << mean << "  Sigma= " << sigma
    831832       << "  Min= " << min << " Max= " << max << endl;
    832833  delete vec;
Note: See TracChangeset for help on using the changeset viewer.