Changeset 3279 in Sophya for trunk/SophyaPI/PIext/graphexecut.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/graphexecut.cc

    r3269 r3279  
    287287                     tokens[5], tokens[6], ph, false, tokens[7], false);
    288288  }
    289 else if (kw == "nt2dcn") {
     289else if ((kw == "nt2dcn")||(kw == "nt2dci")) {
    290290  if (tokens.size() < 4) {
    291291    cout << "Usage: nt2dcn nameobj color varx vary [errx erry wt label opt]" << endl;
     
    294294  while (tokens.size() < 9) tokens.push_back("");
    295295  string ph = "";
    296   mObjMgr->DisplayNT(tokens[1], tokens[2], tokens[3], ph, tokens[4], tokens[5], ph,
    297                      tokens[6], tokens[7], tokens[0], false, tokens[8], false);
    298   }
    299 else if (kw == "nt2dci") {
    300   if (tokens.size() < 4) {
    301     cout << "Usage: nt2dci nameobj color varx vary [errx erry wt label opt]" << endl;
    302     return(0);
    303   }
    304   while (tokens.size() < 9) tokens.push_back("");
    305   string ph = "";
    306   mObjMgr->DisplayNT(tokens[1], tokens[2], tokens[3], ph, tokens[4], tokens[5], ph,
    307                      tokens[6], tokens[7], tokens[0], true, tokens[8], false);
     296  bool colidx = false;
     297  if (kw == "nt2dci")  colidx = true;
     298  mObjMgr->DisplayNT(tokens[0], tokens[2], tokens[3], ph, tokens[4], tokens[5], ph,
     299                     tokens[6], tokens[7], tokens[1], colidx, tokens[8], false);
    308300  }
    309301else if (kw == "nt3d") {
     
    313305  }
    314306  while (tokens.size() < 10) tokens.push_back("");
     307  string ph = "";
    315308  mObjMgr->DisplayNT(tokens[0], tokens[1], tokens[2], tokens[3], tokens[4], tokens[5],
    316                      tokens[6], tokens[7], tokens[8], tokens[9], true);
     309                     tokens[6], tokens[7], tokens[8], ph, false, tokens[9], true);
    317310  }
    318311else if (kw == "vecplot") {
Note: See TracChangeset for help on using the changeset viewer.