Changeset 2545 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Jun 1, 2004, 5:50:42 PM (21 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2536 r2545 17 17 #include "piyfxdrw.h" 18 18 #include "pibargraph.h" 19 #include "pitxtdrw.h" 19 20 20 21 #include "histos.h" … … 751 752 string grname = "BarGraph"; 752 753 mImgApp->DispScDrawer(bgd, grname, tokens[0]); 754 } 755 else if (kw == "textdrawer") { 756 if (tokens.size() < 2) { 757 cout << "Usage: textdrawer gr_opt line1 [line2 ...]" << endl; 758 return(0); 759 } 760 PITextDrawer* txd = new PITextDrawer; 761 for(int k=1; k<tokens.size(); k++) 762 txd->AddLine(tokens[k]); 763 string grname = "TextDrawer"; 764 tokens[0] += " inset"; 765 mImgApp->DispScDrawer(txd, grname, tokens[0]); 753 766 } 754 767 … … 1617 1630 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1618 1631 kw = "bargraph"; 1619 usage = "Bar-Graph view of a sequence of values ";1632 usage = "Bar-Graph view of a sequence of values (test)"; 1620 1633 usage += "\n Usage : bargraph graphic_attributes v1 [v2 v3 ...] "; 1621 1634 usage += "\n Related commands: disp nt2d vecplot"; 1635 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1636 kw = "textdrawer"; 1637 usage = "Multi line text darwer (test)"; 1638 usage += "\n Usage : textdrawer graphic_attributes line1 [line2 line3 ...] "; 1639 usage += "\n Related commands: disp "; 1622 1640 mpiac->RegisterCommand(kw, usage, this, "Obj. Display"); 1623 1641 … … 1907 1925 usage += "o <Alt>O : Shows the PIImageTools (image display parameter controls) \n"; 1908 1926 usage += "o <Alt>G : Show the PIDrawerTools (Graphic attributes of overlayed graphics (Drawers)) \n"; 1927 usage += "o <Alt>D : Shows the drawer manipulation pop-up menu \n"; 1909 1928 usage += "o <Alt>V : Copy/Paste / Text paste at the current cursor position \n"; 1910 1929 usage += "o <Alt>C : Copy/Paste / Copies the selected regions content as text in the copy/paste buffer \n"; … … 1926 1945 usage += "o <Alt>R : Refresh display \n"; 1927 1946 usage += "o <Alt>O : Displays a specific control window (default: PIDrawerTools) \n"; 1928 usage += " Specific controls for 2-D histograms\n";1947 usage += " (2-D histograms, contour plot ...) \n"; 1929 1948 usage += "o <Alt>G : Show the PIDrawerTools (Graphic attributes of displayed Drawers) \n"; 1930 1949 usage += " Drawer 0 manages the axes, as well as the added text \n"; 1950 usage += "o <Alt>D : Shows the drawer manipulation pop-up menu \n"; 1931 1951 usage += "o <Alt>V : Copy/Paste / Text paste at the current position \n"; 1932 1952 usage += "o <Alt>Z : Removes added graphic elements (handled by BaseDrawer - 0) \n"; … … 1948 1968 usage += ">>>> Keyboard controls : \n"; 1949 1969 usage += "o <Alt>R : Resets the 3-D view and refreshes the display \n"; 1970 usage += "o <Alt>O : Displays a specific control window (default: PIDrawerTools) \n"; 1971 usage += " (2-D histograms, contour plot ...) \n"; 1950 1972 usage += "o <Alt>G : Show the PIDrawerTools (Graphic attributes of displayed Drawers) \n"; 1951 usage += "o <Alt>O : = <Alt>G \n"; 1973 usage += " Drawer 0 manages the axes, as well as the added text \n"; 1974 usage += "o <Alt>D : Shows the drawer manipulation pop-up menu \n"; 1952 1975 usage += "o <Alt>V : Copy/Paste / Text paste at the current position (Drawer 0)\n"; 1953 1976 usage += "o <Alt>Z : Removes added graphic elements (handled by BaseDrawer - 0) \n"; -
trunk/SophyaPI/PIext/pintup3d.cc
r2524 r2545 48 48 mNT = nt; 49 49 mAdDO = ad; 50 mAutoScaleXY = mAutoScaleZ= true;50 aScxy = aScz = true; 51 51 UseSizeScale(true, 5); 52 52 UseColorScale(true); … … 142 142 143 143 ComputeScaleFactor(xmin, xmax, ymin, ymax, zmin, zmax, 144 mAutoScaleXY, mAutoScaleZ, mScy, mScz);144 aScxy, aScz, mScy, mScz); 145 145 146 146 // cout << " DEBUG - NTup3D X:" << XMin3() << "-" << XMax3() " s=" << mScx … … 313 313 UseSizeScale(true, nbn); 314 314 } 315 else if (opts == "rescalexy") mAutoScaleXY= true;316 else if (opts == "norescalexy") mAutoScaleXY= false;317 else if (opts == "rescalez") mAutoScaleZ= true;318 else if (opts == "norescalez") mAutoScaleZ= false;315 else if (opts == "rescalexy") aScxy = true; 316 else if (opts == "norescalexy") aScxy = false; 317 else if (opts == "rescalez") aScz = true; 318 else if (opts == "norescalez") aScz = false; 319 319 else { 320 320 // Si option non decode … … 346 346 } else opt.push_back("nosizescale"); 347 347 348 if( mAutoScaleXY) opt.push_back("rescalexy");348 if(aScxy) opt.push_back("rescalexy"); 349 349 else opt.push_back("norescalexy"); 350 350 351 if( mAutoScaleZ) opt.push_back("rescalez");351 if(aScz) opt.push_back("rescalez"); 352 352 else opt.push_back("norescalez"); 353 353 -
trunk/SophyaPI/PIext/pintup3d.h
r2524 r2545 38 38 NTupleInterface* mNT; 39 39 bool mAdDO; 40 bool mAutoScaleXY, mAutoScaleZ;41 40 int xK, yK, zK; // Index du nom de variable en X/Y/Z ds le ntuple 42 41 int xebK, yebK, zebK; // Index du nom de variable en ErrBarX/Y/Z ds le ntuple
Note:
See TracChangeset
for help on using the changeset viewer.