Changeset 1916 in Sophya for trunk/SophyaPI/PI/pieldrw.cc
- Timestamp:
- Mar 6, 2002, 1:57:46 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pieldrw.cc
r1914 r1916 76 76 int PIElDrawer::DecodeOptionString(vector<string> & opt, bool rmdecopt) 77 77 { 78 // AFAIRE Reza 01/03/2002 79 return(0); 78 if (opt.size() == 0) return(0); 79 int ndec1 = PIDrawer::DecodeOptionString(opt, rmdecopt); 80 vector<string> udopt; 81 unsigned int k = 0; 82 int ndec = opt.size(); 83 for( k=0; k<opt.size(); k++ ) { 84 string opts = opt[k]; 85 if ( (opts == "stdaxes") || (opts == "defaxes") || (opts == "boxaxes") ) { 86 SetAxesFlags(kBoxAxes | kExtTicks | kLabels); 87 continue; 88 } 89 if (opts == "simpleaxes") { 90 SetAxesFlags(kAxesDflt); 91 continue; 92 } 93 if (opts == "boxaxesgrid") { 94 SetAxesFlags(kBoxAxes | kExtTicks | kLabels | kGridOn); 95 continue; 96 } 97 if (opts == "fineaxes") { 98 SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks); 99 continue; 100 } 101 if ((opts == "grid") || (opts == "fineaxesgrid")) { 102 SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks | kGridOn); 103 continue; 104 } 105 if (opts == "axelabelautofontsize") { 106 SetAxesAutoFontSize(true); 107 continue; 108 } 109 if (opts == "axelabelfixedfontsize") { 110 SetAxesAutoFontSize(false); 111 continue; 112 } 113 114 ndec--; 115 if (rmdecopt) udopt.push_back(opts); 116 } 117 118 if (rmdecopt) opt = udopt; 119 return(ndec+ndec1); 80 120 } 81 121
Note:
See TracChangeset
for help on using the changeset viewer.