Changeset 2536 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- May 13, 2004, 1:54:02 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2521 r2536 16 16 #include "nomgadapter.h" 17 17 #include "piyfxdrw.h" 18 #include "pibargraph.h" 18 19 19 20 #include "histos.h" … … 739 740 while (tokens.size() < 3) tokens.push_back(""); 740 741 mObjMgr->DisplayVector(tokens[0], tokens[1], tokens[2]); 742 } 743 else if (kw == "bargraph") { 744 if (tokens.size() < 2) { 745 cout << "Usage: bargraph gr_opt v1 [v2 ...]" << endl; 746 return(0); 747 } 748 PIBarGraph* bgd = new PIBarGraph; 749 for(int k=1; k<tokens.size(); k++) 750 bgd->AddBar(atof(tokens[k].c_str())); 751 string grname = "BarGraph"; 752 mImgApp->DispScDrawer(bgd, grname, tokens[0]); 741 753 } 742 754 … … 1604 1616 usage += "\n Related commands: disp nt2d "; 1605 1617 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1618 kw = "bargraph"; 1619 usage = "Bar-Graph view of a sequence of values "; 1620 usage += "\n Usage : bargraph graphic_attributes v1 [v2 v3 ...] "; 1621 usage += "\n Related commands: disp nt2d vecplot"; 1622 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1606 1623 1607 1624 // Ceci est maintenant obsolete, on garde pour info.
Note:
See TracChangeset
for help on using the changeset viewer.