Changeset 1525 in Sophya for trunk/SophyaPI/PIext/basexecut.cc


Ignore:
Timestamp:
Jun 13, 2001, 5:05:38 PM (24 years ago)
Author:
ansari
Message:

Ajout methode NamedObjMgr::DisplayVector() et commande vecplot , Reza 13/6/2001

File:
1 edited

Legend:

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

    r1504 r1525  
    410410                     tokens[6], tokens[7], tokens[8], tokens[9], true);
    411411  }
     412else if (kw == "vecplot") {
     413  if (tokens.size() < 2) {
     414    cout << "Usage: vecplot nameVecX nameVecY [opt]" << endl;
     415  }
     416  while (tokens.size() < 3) tokens.push_back("");
     417  mObjMgr->DisplayVector(tokens[0], tokens[1], tokens[2]);
     418}
    412419
    413420// Obsolete : ne pas virer SVP, cmv 26/7/99
     
    915922kw = "disp";
    916923usage = "Displays an object \n Usage: disp nameobj [graphic_attributes]";
    917 usage += "\n  Related commands: surf nt2d nt3d "; 
     924usage += "\n  Related commands: surf nt2d nt3d vecplot"; 
    918925mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    919926kw = "imag";
    920927usage = "Displays an object as an image \n Usage: imag nameobj [graphic_attributes]";
    921 usage += "\n  Related commands: disp surf nt2d nt3d "; 
     928usage += "\n  Related commands: disp surf nt2d nt3d vecplot"; 
    922929mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    923930kw = "surf";
    924931usage = "Displays an object as a 3D surface \n Usage: surf nameobj [graphic_attributes]";
    925 usage += "\n  Related commands: disp nt2d nt3d "; 
     932usage += "\n  Related commands: disp nt2d nt3d vecplot"; 
    926933mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    927934kw = "nt2d";
    928935usage = "Displays Points (X-Y) [with error-bar / Weight / Label ] from an NTuple ";
    929936usage += "\n Usage : nt2d nameobj varx vary [errx erry wt label graphic_attributes]";
    930 usage += "\n  Related commands: disp  surf  nt3d  gfd2d "; 
     937usage += "\n  Related commands: disp  surf  nt3d  gfd2d vecplot"; 
    931938mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    932939kw = "nt3d";
     
    934941usage += "\n Usage : nt3d nameobj varx vary varz [errx erry errz wt label graphic_attributes]";
    935942usage += "\n  Related commands: disp  surf  nt2d gfd3d "; 
     943mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
     944kw = "vecplot";
     945usage = "Displays Points (X-Y) with coordinates defined by two vectors ";
     946usage += "\n Usage : vecplot nameVecX nameVecY [graphic_attributes]";
     947usage += "\n  Related commands: disp nt2d "; 
    936948mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    937949
Note: See TracChangeset for help on using the changeset viewer.