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


Ignore:
Timestamp:
Jul 6, 2007, 6:22:05 PM (18 years ago)
Author:
ansari
Message:

correction commandes nt2dcn nt2dci et ajout commande plot2dc - Reza 05/07/2007

File:
1 edited

Legend:

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

    r3123 r3279  
    622622  }
    623623
    624 else if (kw == "plot2dw" ) {   // Plot2d avec poids
     624else if ((kw == "plot2dw")||(kw == "plot2dc")) {   // Plot2d avec poids
    625625  if (tokens.size() < 4) {
    626     cout << "Usage: plot2dw nomobj expx expy expwt [expcut opt loop_par]" << endl;
     626    cout << "Usage: plot2dw/c nomobj expx expy expwt/expcolidx [expcut opt loop_par]" << endl;
    627627    return(0);
    628628    }
    629629  if (tokens.size() < 5) tokens.push_back("1");
    630630  while (tokens.size() < 7) tokens.push_back("");
    631   srvo->DisplayPoints2DW(tokens[0],tokens[1],tokens[2],tokens[3], tokens[4], tokens[5], tokens[6]);
     631  bool fgcolidx = false;
     632  if (kw == "plot2dc") fgcolidx = true;
     633  srvo->DisplayPoints2DW(tokens[0],tokens[1],tokens[2],tokens[3], tokens[4],
     634                         fgcolidx, tokens[5], tokens[6]);
    632635  }
    633636else if (kw == "plot3d" ) { 
     
    11831186usage = "Plots (2D) Y=g(Object) vs. X=f(Object) with Weight W=h(Object) ";
    11841187usage += "\n Usage: plot2dw nameobj f_X() g_Y() h_Wt() [Cut() graphic_attributes loop_param]";
     1188usage += "\n  Related commands: plot2d plot2dc plot3d ObjectExpressions ...";
     1189mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
     1190kw = "plot2dc";
     1191usage = "Plots (2D) Y=g(Object) vs. X=f(Object) with Color ColIndex=h(Object) ";
     1192usage += "\n Usage: plot2dc nameobj f_X() g_Y() h_Col() [Cut() graphic_attributes loop_param]";
    11851193usage += "\n  Related commands: plot2d plot2dw plot3d ObjectExpressions ...";
    11861194mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
Note: See TracChangeset for help on using the changeset viewer.