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


Ignore:
Timestamp:
Nov 9, 1999, 7:24:44 PM (26 years ago)
Author:
ercodmgr
Message:

Center Image et Cur-LastWdg - Reza 9/9/99

File:
1 edited

Legend:

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

    r553 r558  
    8383  mImgApp->SetInsetLimits(xmin, xmax, ymin, ymax);
    8484  }
     85else if (kw == "setimgcenter") {
     86  if (tokens.size() < 2) { cout << "Usage: setimgcenter xc yc" << endl;  return(0); }
     87  int xc = atoi(tokens[0].c_str());
     88  int yc = atoi(tokens[1].c_str());
     89  mImgApp->SetImageCenterPosition(xc, yc);
     90  }
    8591else if (kw == "addtext") {
    8692  if (tokens.size() < 4) { cout << "Usage: addtext x y colfontatt txt" << endl;  return(0); }
     
    689695usage += ">> ZoomFactors: defzoom zoomx1 zoomx2 zoomx3 zoomx4 zoomx5 \n";
    690696usage += "                               zoom/2 zoom/3 zoom/4 zoom/5 \n";
     697usage += ">> Image centering: centerimg -> Position the image in widget \n";
    691698usage += ">> Axes:  stdaxes=defaxes=boxaxes  simpleaxes boxaxesgrid \n";
    692699usage += "          fineaxes  grid=fineaxesgrid \n";
     
    695702usage += ">> stat/nostat or stats/nostats -> Toggle statistic display flag \n";
    696703usage += ">> DisplayWindow: next same win stack inset \n";
    697 usage += "   Related commands: setxylimits setinsetlimits"; 
     704usage += "   Related commands: setxylimits setinsetlimits setimgcenter"; 
    698705mpiac->RegisterCommand(kw, usage, this, "Graphics");
    699706
    700707kw = "setxylimits";
    701708usage = "Define 2-D plot limits \n Usage: setxylimits xmin xmax ymin ymax";
    702 usage += "\n  Related commands: graphicatt"; 
     709usage += "\n  Related commands: graphicatt /xylimits"; 
    703710mpiac->RegisterCommand(kw, usage, this, "Graphics");
    704711
     
    708715usage += " graphic object size (0. .. 1.) Xmax at right, YMax top. ";
    709716usage += " Usage: setinsetlimits xmin xmax ymin ymax";
    710 usage += "\n  Related commands: graphicatt"; 
     717usage += "\n  Related commands: graphicatt /inset"; 
     718mpiac->RegisterCommand(kw, usage, this, "Graphics");
     719
     720kw = "setimgcenter";
     721usage = "Define image center postion \n Usage: setimgcenter xc yc";
     722usage += "\n  Related commands: graphicatt /centerimg"; 
    711723mpiac->RegisterCommand(kw, usage, this, "Graphics");
    712724
Note: See TracChangeset for help on using the changeset viewer.