Changeset 2999 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Jul 2, 2006, 7:20:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2975 r2999 444 444 } 445 445 446 m ObjMgr->SetVar(tokens[1], v2str);446 mpiac->SetVar(tokens[1], v2str); 447 447 } 448 448 // Une ligne du NTuple/NTupleInterface -> variable interpreteur … … 509 509 } 510 510 } 511 m ObjMgr->SetVar(tokens[2], v2str);511 mpiac->SetVar(tokens[2], v2str); 512 512 if (adel) delete nti; 513 } 514 // Operation sur objets a travers l'adaptateur NObjMgrAdapter::PerformOperation() 515 else if (kw == "objaoper") { 516 if (tokens.size() < 2) { 517 cout << "Usage: objaoper objname operation [args ...]" << endl; 518 return(0); 519 } 520 NObjMgrAdapter* oa = mObjMgr->GetObjAdapter(tokens[0]); 521 if(oa == NULL) { 522 cerr << "objaoper Error , No such object " << tokens[0] << endl; 523 return(0); 524 } 525 tokens.erase(tokens.begin()); 526 return oa->PerformOperation(tokens); 513 527 } 514 528 … … 626 640 srvo->DisplayPoints3D(tokens[0],tokens[1],tokens[2],tokens[3], tokens[4], tokens[5], tokens[6]); 627 641 } 642 else if (kw == "plot3dw" ) { 643 if (tokens.size() < 5) { 644 cout << "Usage: plot3dw nomobj expx expy expz expwt [expcut opt loop_par]" << endl; 645 return(0); 646 } 647 if (tokens.size() < 6) tokens.push_back("1"); 648 while (tokens.size() < 8) tokens.push_back(""); 649 srvo->DisplayPoints3DW(tokens[0],tokens[1],tokens[2],tokens[3], tokens[4], tokens[5], 650 tokens[6], tokens[7]); 651 } 628 652 629 653 else if (kw == "projh1d" ) { … … 1086 1110 usage += " Related commands: vec2var ntline2var"; 1087 1111 mpiac->RegisterCommand(kw, usage, this, "Objects"); 1112 kw = "objaoper"; 1113 usage = "Perform an operation through the object adapter NObjMgrAdapter::PerformOperation()\n"; 1114 usage += " Usage: objaoper objname operation [arg1 ...] \n"; 1115 usage += " Examples of defined operations : \n"; 1116 usage += " Matrices: row indx_row , col indx_col \n"; 1117 usage += " Arrays: slicexy indx_Z , slicexz indx_Y, sliceyz indxX \n"; 1118 mpiac->RegisterCommand(kw, usage, this, "Objects"); 1088 1119 1089 1120 //------- Commandes trace de fonctions … … 1132 1163 usage += "\nLoop parameters can be specified as I1[:I2[:DI]] for(int i=I1; i<I2; i+=DI)"; 1133 1164 usage += "\nThe default Cut() expression in true (=1) for all"; 1134 usage += "\n\n Related commands: plot2d plot2de plot2dw plot3d";1135 usage += "\n projh1d projh2d projprof fillvec fillmtx ";1136 usage += "\n fillnt fillgd1 fillgd2 ntloop exptovec ... ";1165 usage += "\n\n Related commands: plot2d plot2de plot2dw plot3d plot3dw"; 1166 usage += "\n projh1d projh2d projprof fillvec fillmtx "; 1167 usage += "\n fillnt fillgd1 fillgd2 ntloop exptovec ... "; 1137 1168 grp = "Expr. Plotting"; 1138 1169 mpiac->RegisterHelp(kw, usage, grp); … … 1140 1171 usage = "Plots (2D) Y=g(Object) vs. X=f(Object) --- Object Variable names (double) :"; 1141 1172 usage += "\n Usage: plot2d nameobj f_X() g_Y() [f_Cut() graphic_attributes loop_param]"; 1142 usage += "\n Related commands: plot2de plot2dw plot3d ObjectExpressions ...";1173 usage += "\n Related commands: plot2de plot2dw plot3d plot3dw ObjectExpressions ..."; 1143 1174 mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting"); 1144 1175 kw = "plot2de"; … … 1153 1184 mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting"); 1154 1185 kw = "plot3d"; 1155 usage = "Plots (3D) Z=h(Object) vs. Y=g(Object) vs. X=f(Object) vs";1186 usage = "Plots (3D) Z=h(Object) vs. Y=g(Object) vs. X=f(Object)"; 1156 1187 usage += "\n Usage: plot3d nameobj f_X() g_Y() h_Z() [Cut() graphic_attributes loop_param]"; 1157 usage += "\n Related commands: plot2d plot2dw plot2de plot3d ObjectExpressions ..."; 1188 usage += "\n Related commands: plot2d plot2de plot3dw ObjectExpressions ..."; 1189 mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting"); 1190 kw = "plot3dw"; 1191 usage = "Plots (3D) Z=h(Object) vs. Y=g(Object) vs. X=f(Object) with Weight W=k(Object) "; 1192 usage += "\n Usage: plot3d nameobj f_X() g_Y() h_Z() k_Wt() [Cut() graphic_attributes loop_param]"; 1193 usage += "\n Related commands: plot2d plot2dw plot3d ObjectExpressions ..."; 1158 1194 mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting"); 1159 1195
Note:
See TracChangeset
for help on using the changeset viewer.