Changeset 2651 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Feb 18, 2005, 3:09:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2645 r2651 714 714 715 715 // >>>>>>>>>>> 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); }716 else 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); } 718 718 string opt = "next"; 719 719 if (tokens.size() > 1) opt = tokens[1]; 720 720 if (kw == "disp") mObjMgr->DisplayObj(tokens[0], opt); 721 721 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); 723 724 } 724 725 … … 1638 1639 kw = "imag"; 1639 1640 usage = "Displays an object as an image \n Usage: imag nameobj [graphic_attributes]"; 1640 usage += "\n Related commands: disp surf nt2d nt3d vecplot"; 1641 usage += "\n Related commands: disp imagnav surf nt2d nt3d vecplot"; 1642 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1643 kw = "imagnav"; 1644 usage = "Displays an object as an image with the ImageNavigator viewer \n"; 1645 usage += "Usage: imagnav nameobj [graphic_attributes]"; 1646 usage += "\n Related commands: disp imag surf nt2d nt3d vecplot"; 1641 1647 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1642 1648 kw = "surf";
Note:
See TracChangeset
for help on using the changeset viewer.