Changeset 3279 in Sophya
- Timestamp:
- Jul 6, 2007, 6:22:05 PM (18 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r3123 r3279 622 622 } 623 623 624 else if ( kw == "plot2dw") { // Plot2d avec poids624 else if ((kw == "plot2dw")||(kw == "plot2dc")) { // Plot2d avec poids 625 625 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; 627 627 return(0); 628 628 } 629 629 if (tokens.size() < 5) tokens.push_back("1"); 630 630 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]); 632 635 } 633 636 else if (kw == "plot3d" ) { … … 1183 1186 usage = "Plots (2D) Y=g(Object) vs. X=f(Object) with Weight W=h(Object) "; 1184 1187 usage += "\n Usage: plot2dw nameobj f_X() g_Y() h_Wt() [Cut() graphic_attributes loop_param]"; 1188 usage += "\n Related commands: plot2d plot2dc plot3d ObjectExpressions ..."; 1189 mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting"); 1190 kw = "plot2dc"; 1191 usage = "Plots (2D) Y=g(Object) vs. X=f(Object) with Color ColIndex=h(Object) "; 1192 usage += "\n Usage: plot2dc nameobj f_X() g_Y() h_Col() [Cut() graphic_attributes loop_param]"; 1185 1193 usage += "\n Related commands: plot2d plot2dw plot3d ObjectExpressions ..."; 1186 1194 mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting"); -
trunk/SophyaPI/PIext/graphexecut.cc
r3269 r3279 287 287 tokens[5], tokens[6], ph, false, tokens[7], false); 288 288 } 289 else if ( kw == "nt2dcn") {289 else if ((kw == "nt2dcn")||(kw == "nt2dci")) { 290 290 if (tokens.size() < 4) { 291 291 cout << "Usage: nt2dcn nameobj color varx vary [errx erry wt label opt]" << endl; … … 294 294 while (tokens.size() < 9) tokens.push_back(""); 295 295 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); 308 300 } 309 301 else if (kw == "nt3d") { … … 313 305 } 314 306 while (tokens.size() < 10) tokens.push_back(""); 307 string ph = ""; 315 308 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); 317 310 } 318 311 else if (kw == "vecplot") { -
trunk/SophyaPI/PIext/piaversion.h
r3125 r3279 2 2 #define PIAPPVERSION_H_SEEN 3 3 4 #define PIAPP_VERSIONNUMBER 4.1 4 #define PIAPP_VERSIONNUMBER 4.15 5 5 6 6 #endif -
trunk/SophyaPI/PIext/servnobjm.cc
r2999 r3279 477 477 /* --Methode-- */ 478 478 void Services2NObjMgr::DisplayPoints2DW(string& nom, string& expx, string& expy, 479 string& expwt, string& expcut, string dopt, string loop)479 string& expwt, string& expcut, bool fgcolidx, string dopt, string loop) 480 480 { 481 481 NObjMgrAdapter* obja=NULL; … … 501 501 PINTuple* pin = new PINTuple(nt, true); 502 502 pin->SelectXY(ntn[0], ntn[1]); 503 pin->SelectWt(ntn[2]); 503 if (fgcolidx) pin->SelectColorByIndex(ntn[2]); // Use the weight expression as a color index 504 else pin->SelectWt(ntn[2]); 504 505 505 506 string titre = nom + ":" + expwt + "_" + expy + "%" + expx ; -
trunk/SophyaPI/PIext/servnobjm.h
r2999 r3279 79 79 string& expcut, string dopt="", string loop=""); 80 80 virtual void DisplayPoints2DW(string & nom, string& expx, string& expy, 81 string& expwt, string& expcut, string dopt="", string loop=""); 81 string& expwt, string& expcut, 82 bool fgcolidx=false, string dopt="", string loop=""); 82 83 virtual void DisplayPoints3DW(string & nom, string& expx, string& expy, string& expz, 83 84 string& expwt, string& expcut, string dopt="", string loop="");
Note:
See TracChangeset
for help on using the changeset viewer.