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


Ignore:
Timestamp:
Jun 28, 1999, 1:56:16 PM (26 years ago)
Author:
ercodmgr
Message:

Ajout SetXYLimits et debut d'introduction de repertoire dans la gestion des objets nommes - Reza 28/6/99

File:
1 edited

Legend:

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

    r330 r331  
    6868  mObjMgr->SetGraphicAttributes(tokens[0]);
    6969  }
    70 
     70else if (kw == "setxylimits") {
     71  if (tokens.size() < 4) { cout << "Usage: setxylimits xmin xmax ymin ymax" << endl;  return(0); }
     72  double xmin = atof(tokens[0].c_str());
     73  double xmax = atof(tokens[1].c_str());
     74  double ymin = atof(tokens[2].c_str());
     75  double ymax = atof(tokens[3].c_str());
     76  mImgApp->SetXYLimits(xmin, xmax, ymin, ymax);
     77  }
    7178// >>>>>>>>>>> Link dynamique de fonctions C++
    7279else if (kw == "link" ) {
     
    107114else if (kw == "openfits" ) {
    108115  if (tokens.size() < 1) { cout << "Usage: openfits file " << endl;  return(0); }
    109   else mObjMgr->ReadFits(tokens[0]);
     116  else { string nomobj = "";  mObjMgr->ReadFits(tokens[0], nomobj); }
    110117}
    111118else if (kw == "savefits" ) {
     
    137144  mObjMgr->DelObjects(tokens[0]); 
    138145}
    139 else if (kw == "listobjs")   mObjMgr->ListObjs();
     146else if (kw == "listobjs")   {
     147  if  (tokens.size() < 1)  tokens.push_back("*");
     148  mObjMgr->ListObjs(tokens[0]);
     149}
    140150
    141151// >>>>>>>>>>> Creation d'histos 1D-2D
     
    488498usage += ">> Axes:  stdaxes=defaxes=boxaxes  simpleaxes boxaxesgrid \n";
    489499usage += "          fineaxes  grid=fineaxesgrid \n";
     500usage += ">> XYLimits : xylimits  -> Forces X-Y limits in 2-D plots \n";
    490501usage += ">> DisplayWindow: next same win stack \n";
     502usage += "   Related commands: setxylimits"; 
     503mpiac->RegisterCommand(kw, usage, this, "Graphics");
     504
     505kw = "setxylimits";
     506usage = "Define 2-D plot limits \n Usage: setxylimits xmin xmax ymin ymax";
     507usage += "\n  Related commands: gratt"; 
    491508mpiac->RegisterCommand(kw, usage, this, "Graphics");
    492509
Note: See TracChangeset for help on using the changeset viewer.