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


Ignore:
Timestamp:
Jul 2, 2006, 7:20:56 PM (19 years ago)
Author:
ansari
Message:

1/ Ajout methode Services2NObjMgr::DisplayPoints3DW() et commande plot3dw
2/ Ajout et utilisation methode de verification de nom NamedObjMgr::CheckName()
3/ Changement methode NObjMgrAdapter::GetInfoString() et son utilisation
a travers la methdoe PIACmd::GetVarApp() pour acces de type $objname
4/ Ajout methode NObjMgrAdapter::PerformOperation() , implemente pour
adaptateur TMatrix<T> et TArray<T> pour extraction de ligne/colonne
(des matrices) et plan (slice) des TArray pour Rank()>3 Et mise en place
de la commande objaoper pour appel a PerformOperation()
5/ Petites corrections pour ntline2var vec2var

Reza 2 Juillet 2006

File:
1 edited

Legend:

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

    r2924 r2999  
    509509
    510510/* --Methode-- */
     511void Services2NObjMgr::DisplayPoints3DW(string& nom,  string& expx, string& expy, string& expz,
     512                                        string& expwt, string& expcut, string dopt, string loop)
     513{
     514NObjMgrAdapter* obja=NULL;
     515obja = MyObjMgr()->GetObjAdapter(nom);
     516if (obja == NULL) {
     517  cout << "Services2NObjMgr::DisplayPoints3D() Error , No such object " << nom << endl;
     518  return;
     519  }
     520if (!mImgapp)  return;
     521
     522char* ntn[4] = {"expx","expy","expz","expw"};
     523NTuple* nt = new NTuple(4,ntn);  // Creation NTuple
     524
     525ComputeExpressions(obja, expx, expy, expz, expwt, expcut, loop, nt, NULL, NULL);
     526
     527if (nt->NEntry() < 1) {
     528  cout << "Services2NObjMgr::DisplayPoints3DW() Warning  Zero points satisfy cut !" << endl;
     529  delete nt;
     530  return;
     531  }
     532//DBG nt->Show();
     533//DBG nt->Print(0,10);
     534PINTuple3D* pin = new PINTuple3D(nt, true);
     535pin->SelectXYZ(ntn[0], ntn[1], ntn[2]);
     536pin->SelectWt(ntn[3]);
     537pin->UseColorScale(true);
     538dopt = "defline " + dopt;
     539
     540// Pour plot a partir de DispScDrawer
     541// string nomdisp = "_NT3D_";
     542// mImgapp->DispScDrawer( (PIDrawer*)pin, nomdisp, opt);
     543// Pour plot a partir de Disp3DDrawer
     544string titre =  nom + ":" + expy + "%" + expx + " W=" + expwt;
     545mImgapp->Disp3DDrawer(pin, titre, dopt);
     546
     547return;
     548}
     549
     550/* --Methode-- */
    511551void Services2NObjMgr::ProjectH1(string& nom, string& expx, string& expwt,
    512552                                 string& expcut, string& nomh1, string dopt, string loop)
Note: See TracChangeset for help on using the changeset viewer.