Changeset 2350 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Mar 18, 2003, 3:23:53 PM (23 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2307 r2350 1137 1137 usage += ">> lut=ltyp,min,max -> Sets LUT type and min/max for image display \n"; 1138 1138 usage += " (ltyp=lin/log/sqrt/square) \n"; 1139 usage += ">> Axes: stdaxes=defaxes=boxaxes boxaxesgrid centeredaxes\n"; 1140 usage += " fineaxes finecenteredaxes fineaxesgrid\n"; 1141 usage += " centeredaxesgrid finecenteredaxesgrid \n"; 1142 usage += " grid nogrid labels nolabels ticks noticks \n"; 1143 usage += " minorticks nominorticks extticks intticks axesnone \n"; 1144 usage += ">> Axe labels font size: fixedfontsize/autofontsize \n"; 1145 usage += " autofontsize: Font size computed automatically \n"; 1146 usage += " fixedfontsize: Use font size attribute (BaseDrawer) \n"; 1147 usage += ">> LogScale : linx liny logx logy -> Lin/Log Scales for 2D plots \n"; 1148 usage += ">> xylimits=xmin,xmax,ymin,ymax -> Forces X-Y limits in 2-D plots \n"; 1149 usage += ">> defdrrect=xmin,xmax,ymin,ymax -> Defines drawing rectangle 2-D plots \n"; 1150 usage += " The rectangle is defined as a fraction of the widget size\n"; 1139 usage += ">> Axes / Axe labels / LogScale / xylimits / defdrrect \n"; 1140 usage += " See setaxesatt command \n"; 1151 1141 usage += ">> stat/nostat or stats/nostats -> Toggle statistic display flag \n"; 1152 1142 usage += ">> title/notitle or tit/notit -> Toggle Auto AddTitle flag \n"; … … 1158 1148 usage = "To set default axes attributes \n Usage: setaxesatt att_list \n"; 1159 1149 usage += "Color/Line/Font attributes and axes attributes \n"; 1160 usage += ">> Axes: stdaxes=defaxes=boxaxes boxaxesgrid centeredaxes\n";1161 usage += " fineaxes fine centeredaxes fineaxesgrid\n";1150 usage += ">> Axes: axesnone stdaxes=defaxes=boxaxes boxaxesgrid \n"; 1151 usage += " fineaxes fineaxesgrid centeredaxes finecenteredaxes \n"; 1162 1152 usage += " centeredaxesgrid finecenteredaxesgrid \n"; 1163 usage += " grid nogrid labels nolabels ticks noticks \n"; 1164 usage += " minorticks nominorticks extticks intticks axesnone \n"; 1165 usage += ">> Axe labels font size: fixedfontsize/autofontsize \n"; 1166 usage += " autofontsize: Font size computed automatically \n"; 1153 usage += " grid nogrid labels nolabels \n"; 1154 usage += " ticks noticks minorticks nominorticks \n"; 1155 usage += " extticks intticks extintticks \n"; 1156 usage += " nbticks=X_NTicks,Y_NTicks \n"; 1157 usage += " tickslen=MajTickLenFrac,MinTickLenFrac \n"; 1158 usage += ">> Axe labels font size: fixedfontsize/autofontsize=fszf \n"; 1159 usage += " autofontsize=fsizef: Font size computed automatically \n"; 1167 1160 usage += " fixedfontsize: Use font size attribute (BaseDrawer) \n"; 1168 1161 usage += ">> LogScale : linx liny logx logy -> Lin/Log Scales for 2D plots \n"; -
trunk/SophyaPI/PIext/piaversion.h
r2293 r2350 2 2 #define PIAPPVERSION_H_SEEN 3 3 4 #define PIAPP_VERSIONNUMBER 3.9 04 #define PIAPP_VERSIONNUMBER 3.93 5 5 6 6 #endif -
trunk/SophyaPI/PIext/pihisto2d.cc
r2301 r2350 696 696 //| et de l'histogramme. 697 697 //-- 698 : PIWindow((PIMsgHandler *)par," Options",PIWK_dialog,250,260,150,150)698 : PIWindow((PIMsgHandler *)par,"H2D-Options",PIWK_dialog,250,260,150,150) 699 699 , mFgCol(false), mCmap(CMAP_GREYINV32), mRevCmap(false) 700 700 , mTypScal(0) , mLogScale(10.) -
trunk/SophyaPI/PIext/pintup3d.cc
r2165 r2350 207 207 yp = mNT->GetCell(i, yK); 208 208 zp = mNT->GetCell(i, zK); 209 if ( (i > 0) && 210 (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt) ) // On relie les points ... 209 if ( (i > 0) && connectPts ) // On relie les points ... 211 210 g3->DrawLine3D(xl, yl, zl, xp, yp, zp); 212 211 nok++; … … 241 240 } 242 241 242 /* La methode DecodeOptionString permet de decoder un ensemble d'options 243 et de parametre d'affichage specifie sous forme d'un vecteur de string. 244 Si rmdecopt == true, les options decodees sont supprimees du vecteur 245 de string fourni en entree - ce qui permet l'enchainement eventuel 246 de plusieurs decodages de string. 247 Les options peuvent etre sous forme de flag : "stat" "nostat" 248 ou plus complexes, par exemple "dynamic=-3,3" 249 Rc: La methode renvoie le nombre d'options decodees 250 */ 251 252 /* --Methode-- */ 253 int PINTuple3D::DecodeOptionString(vector<string> & opt, bool rmdecopt) 254 { 255 int optsz1 = opt.size(); 256 if(optsz1<1) return(0); 257 // On appelle d'abord le decodage de la classe PIDrawer de laquelle 258 // on herite. (Pas obligatoire) on decode donc ici les attributs de 259 // couleur, fontes ... 260 int ndec1 = PIDrawer::DecodeOptionString(opt, rmdecopt); 261 if(optsz1-ndec1<1) return(ndec1); // si tout a ete decode 262 263 vector<string> udopt; // On gardera ici les options non decodees 264 unsigned int k = 0; 265 int ndec = opt.size(); 266 for( k=0; k<opt.size(); k++ ) { 267 string opts = opt[k]; 268 // if(opts=="sta" || opts=="stat" || opts=="stats") SetStats(true); 269 // else if( opts=="nsta" || opts=="nstat" 270 // || opts=="nostat" || opts=="nostats") SetStats(false); 271 if (opts == "connectpoints") ConnectPoints(true); 272 else if (opts == "noconnectpoints") ConnectPoints(false); 273 else { 274 // Si option non decode 275 ndec--; 276 // S'il faut supprimer les options decodees 277 if (rmdecopt) udopt.push_back(opts); 278 } 279 } 280 // S'il faut supprimer les options decodees, on remplace l'argument opt 281 // par le vecteur des options non decodees. 282 if (rmdecopt) opt = udopt; 283 return(ndec+ndec1); 284 } 285 286 /* La methode GetOptionsHelpInfo(string& info) renvoie une chaine 287 avec la description des options comprises par ce drawer 288 Note: Il est preferable de ne pas initialiser la chaine 289 string info au depart, afin de permettre de mettre bout a 290 bout les aides de differents Drawer */ 291 292 /* --Methode-- */ 293 void PINTuple3D::GetOptionsHelpInfo(string& info) 294 { 295 // On recupere d'abord la chaine info de la classe de base 296 PIDrawer::GetOptionsHelpInfo(info); 297 info += " ---- PINTuple3D options help info : \n" ; 298 info += " connectpoints: The points are connected by a line \n"; 299 info += " noconnectpoints (this is the default) \n"; 300 info += " and usual color/line/marker/... attribute decoding \n"; 301 return; 302 } 303 -
trunk/SophyaPI/PIext/pintup3d.h
r486 r2350 18 18 virtual void SelectLabel(const char* plabel); 19 19 20 inline void ConnectPoints(bool fg=false) { connectPts = fg; } 21 22 // Methode de decodage des options 23 virtual int DecodeOptionString(vector<string> & opt, bool rmdecopt=true); 24 // Texte d'aide des options disponibles 25 virtual void GetOptionsHelpInfo(string& info); 20 26 21 27 protected: … … 29 35 int nWbins; // Nombre de bins pour le poids (Wt) 30 36 37 bool connectPts; // true -> les points sont relies par une ligne 38 31 39 }; 32 40 -
trunk/SophyaPI/PIext/pintuple.cc
r2229 r2350 46 46 mAdDO = ad; 47 47 SetStats(true); 48 ConnectPoints(false); 48 49 SelectXY(NULL, NULL); 49 50 SelectWt(NULL, 1); … … 177 178 nok++; 178 179 if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) ) continue; 179 if ( (i > 0) && (GetGraphicAtt().GetLineAtt() != PI_NotDefLineAtt))180 if ( (i > 0) && connectPts ) 180 181 g->DrawLine(xl, yl, xp, yp); // On relie les points ... 181 182 if ( xebK >= 0 ) { … … 286 287 else if( opts=="nsta" || opts=="nstat" 287 288 || opts=="nostat" || opts=="nostats") SetStats(false); 289 else if (opts == "connectpoints") ConnectPoints(true); 290 else if (opts == "noconnectpoints") ConnectPoints(false); 288 291 else { 289 292 // Si option non decode … … 311 314 PIDrawer::GetOptionsHelpInfo(info); 312 315 info += " ---- PINTuple options help info : \n" ; 313 info += " -sta,stat,stats: activate statistic display\n";316 info += " sta,stat,stats: activate statistic display\n"; 314 317 info += " nsta,nstat,nostat,nostats: deactivate statistic display\n"; 318 info += " connectpoints: The points are connected by a line \n"; 319 info += " noconnectpoints (this is the default) \n"; 320 info += " and usual color/line/marker/... attribute decoding \n"; 315 321 return; 316 322 } -
trunk/SophyaPI/PIext/pintuple.h
r1975 r2350 24 24 25 25 inline void SetStats(bool fg=true) { stats = fg; } 26 inline void ConnectPoints(bool fg=false) { connectPts = fg; } 27 26 28 virtual void AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax); 27 29 … … 41 43 int nWbins; // Nombre de bins pour le poids (Wt) 42 44 bool stats; // true -> indication du nb de points 45 bool connectPts; // true -> les points sont relies par une ligne 43 46 }; 44 47 -
trunk/SophyaPI/PIext/pistdimgapp.cc
r2265 r2350 287 287 288 288 // Attributs graphiques courants 289 mAxesFlags = k BoxAxes | kExtTicks | kLabels;289 mAxesFlags = kAxesDflt; 290 290 SetInsetLimits(0.4, 0.6, 0.4, 0.6); 291 291 mAddTitle = true;
Note:
See TracChangeset
for help on using the changeset viewer.