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


Ignore:
Timestamp:
Feb 18, 2005, 3:09:47 PM (21 years ago)
Author:
ansari
Message:

Modifications pour l'utilisation viewer PIImageNavigator (ajout commande imagnav) - Reza 18 Fev 2005

File:
1 edited

Legend:

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

    r2645 r2651  
    714714
    715715// >>>>>>>>>>>  Affichage des objets
    716 else if ( (kw == "disp") || (kw == "surf") || (kw == "imag") ) {
    717   if (tokens.size() < 1) { cout << "Usage: disp/surf/imag nameobj [opt]" << endl; return(0); }
     716else if ( (kw == "disp") || (kw == "surf") || (kw == "imag") || (kw == "imagnav") ) {
     717  if (tokens.size() < 1) { cout << "Usage: disp/surf/imag/imagnav nameobj [opt]" << endl; return(0); }
    718718  string opt = "next";
    719719  if (tokens.size() > 1)  opt = tokens[1];
    720720  if (kw == "disp") mObjMgr->DisplayObj(tokens[0], opt);
    721721  else if (kw == "surf")  mObjMgr->DisplaySurf3D(tokens[0], opt);
    722   else if (kw == "imag")  mObjMgr->DisplayImage(tokens[0], opt);
     722  else if (kw == "imag")  mObjMgr->DisplayImage(tokens[0], opt, false);
     723  else if (kw == "imagnav")  mObjMgr->DisplayImage(tokens[0], opt, true);
    723724  }
    724725
     
    16381639kw = "imag";
    16391640usage = "Displays an object as an image \n Usage: imag nameobj [graphic_attributes]";
    1640 usage += "\n  Related commands: disp surf nt2d nt3d vecplot"; 
     1641usage += "\n  Related commands: disp imagnav surf nt2d nt3d vecplot"; 
     1642mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
     1643kw = "imagnav";
     1644usage = "Displays an object as an image with the ImageNavigator viewer \n";
     1645usage += "Usage: imagnav nameobj [graphic_attributes]";
     1646usage += "\n  Related commands: disp imag surf nt2d nt3d vecplot"; 
    16411647mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    16421648kw = "surf";
Note: See TracChangeset for help on using the changeset viewer.