Changeset 2349 in Sophya
- Timestamp:
- Mar 18, 2003, 3:22:08 PM (23 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piaxes.cc
r2322 r2349 39 39 PIAxes::PIAxes() 40 40 { 41 ConfigureTicks(); 42 ConfigureAutoFontSize(); 41 43 setupDone = false; 42 44 } … … 48 50 49 51 //++ 50 // void DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, unsigned int flags, bool afsz) 52 // void DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, \ 53 // unsigned int flags=kAxesDflt, bool afsz=true) 51 54 // Trace les axes en utilisant les limites de l'objet PIGraphicUC. 52 55 // "flags" spécifie les attributs d'axes. Constantes prédéfinies: 53 //| k StdAxes : Axes passant par le centre54 //| kBoxAxes : Axes entourant le tracé56 //| kCentAxes : Axes passant par le centre 57 //| kBoxAxes : Axes entourant le tracé 55 58 //| kIntTicks, kExtTicks 56 59 //| kMajTicks, kMinTicks 57 //| kAxesDflt = kStdAxes | kTicks | kLabels 60 //| kAxesDflt = kStdAxes = 61 //| kBoxAxes | kTicks | | kIntTicks | kLabels 58 62 //| kGridOn, kAxesNone 59 63 // Si "afsz == true", la taille de fonte est choisie automatiquement. 60 64 // 61 // void DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, unsigned int flags, bool afsz, \ 62 // double xmin, double xmax, double ymin, double ymax) 65 // void DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, \ 66 // double xmin, double xmax, double ymin, double ymax, \ 67 // unsigned int flags=kAxesDflt, bool afsz=true) 63 68 // Tracé d'axes avec spécification des limites d'axes. 64 69 // … … 75 80 PIGrCoord xmin, xmax, ymin, ymax; 76 81 g->GetGrSpace(xmin, xmax, ymin, ymax); 77 DrawXYAxes(g, gratt, flags, afsz,(double)xmin, (double)xmax,78 (double)ymin, (double)ymax );82 DrawXYAxes(g, gratt, (double)xmin, (double)xmax, 83 (double)ymin, (double)ymax, flags, afsz); 79 84 } 80 85 81 86 /* --Methode-- */ 82 87 void PIAxes::DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, 83 unsigned int flags, bool afsz, 84 double xmin, double xmax, double ymin, double ymax) 85 { 88 double xmin, double xmax, double ymin, double ymax, 89 unsigned int flags, bool afsz) 90 91 { 92 if ((flags&kTicks)&&!(flags&kIntTicks)&&!(flags&kExtTicks)) 93 flags |= kIntTicks; // Ticks internes par defaut 94 if ((flags&kTicks)&&!(flags&kMajTicks)&&!(flags&kMinTicks)) 95 flags |= kMajTicks; // Ticks majeures par defaut 96 86 97 Setup(g, xmin, xmax, ymin, ymax); 87 98 // g->NoClip(); … … 93 104 94 105 if(afsz) { 95 double fsz = xMajTickLen*3.5;106 double fsz = (yMax-yMin)*fontSz; 96 107 g->SelFontSz(fsz); 97 108 } 98 109 99 if (flags & k StdAxes) {110 if (flags & kCentAxes) { 100 111 101 112 // Les axes … … 103 114 g->DrawLine(xMin, (yMin+yMax)/2., xMax, (yMin+yMax)/2.); 104 115 g->DrawLine((xMin+xMax)/2., yMin, (xMin+xMax)/2., yMax); 105 PIArrowMarker amk = g->GetArrowMarker(); 106 if (amk == PI_NotDefArrowMarker) amk = PI_FArrowShapedArrowMarker; 116 // PIArrowMarker amk = g->GetArrowMarker(); 117 // if (amk == PI_NotDefArrowMarker) 118 PIArrowMarker amk = amk = PI_FTriangleArrowMarker; 107 119 g->SelArrowMarkerSz(xMajTickLen*2., amk); 108 120 // g->SelArrowMarker(5, g->GetArrowMarker()); 109 double xm2 = g->DeltaUCX(xMax, yMajTickLen* 3.);121 double xm2 = g->DeltaUCX(xMax, yMajTickLen*2.); 110 122 g->DrawArrowMarker(xMax, (yMin+yMax)/2., xm2, (yMin+yMax)/2., true); 111 double ym2 = g->DeltaUCY(yMax, xMajTickLen* 3.);123 double ym2 = g->DeltaUCY(yMax, xMajTickLen*2.); 112 124 g->DrawArrowMarker((xMin+xMax)/2., yMax, (xMin+xMax)/2., ym2, true); 113 125 // La grille en pointilles … … 132 144 133 145 if (flags & kLabels) { 146 double declab = 2*xMajTickLen; 134 147 if (!aYdir) 135 DrawHLabels(g, (yMin+yMax)/2.- xMajTickLen*2, xMajTicks, PI_VerticalTop);148 DrawHLabels(g, (yMin+yMax)/2.-declab, xMajTicks, PI_VerticalTop); 136 149 else 137 DrawHLabels(g, (yMin+yMax)/2.+xMajTickLen*2, xMajTicks, PI_VerticalTop); 150 DrawHLabels(g, (yMin+yMax)/2.+declab, xMajTicks, PI_VerticalTop); 151 152 declab = 2.*yMajTickLen; 138 153 if (!aXdir) 139 DrawVLabels(g, (xMin+xMax)/2.- yMajTickLen*2, yMajTicks, PI_HorizontalRight);154 DrawVLabels(g, (xMin+xMax)/2.-declab, yMajTicks, PI_HorizontalRight); 140 155 else 141 DrawVLabels(g, (xMin+xMax)/2.+ yMajTickLen*2, yMajTicks, PI_HorizontalRight);156 DrawVLabels(g, (xMin+xMax)/2.+declab, yMajTicks, PI_HorizontalRight); 142 157 } 143 158 … … 154 169 155 170 // Longueur des ticks 156 if (flags&kTicks) flags |= kExtTicks;157 171 double extXMajTickLen = flags&kExtTicks ? xMajTickLen : 0; 158 172 double intXMajTickLen = flags&kIntTicks ? xMajTickLen : 0; … … 190 204 191 205 if (flags & kLabels) { 206 double declab = xMajTickLen; 207 if (flags & kExtTicks) declab *= 2.; 192 208 if (!aYdir) { 193 DrawHLabels(g, g->DeltaUCY(yMin, - xMajTickLen*2), xMajTicks, PI_VerticalTop);209 DrawHLabels(g, g->DeltaUCY(yMin, -declab), xMajTicks, PI_VerticalTop); 194 210 } 195 211 else { 196 DrawHLabels(g, g->DeltaUCY(yMax, xMajTickLen*2), xMajTicks, PI_VerticalTop);212 DrawHLabels(g, g->DeltaUCY(yMax, declab), xMajTicks, PI_VerticalTop); 197 213 } 214 declab = yMajTickLen; 215 if (flags & kExtTicks) declab *= 2.; 198 216 if (!aXdir) { 199 DrawVLabels(g, g->DeltaUCX(xMin, - yMajTickLen*2), yMajTicks, PI_HorizontalRight);217 DrawVLabels(g, g->DeltaUCX(xMin, -declab), yMajTicks, PI_HorizontalRight); 200 218 } 201 219 else { 202 DrawVLabels(g, g->DeltaUCX(xMax, yMajTickLen*2), yMajTicks, PI_HorizontalRight);220 DrawVLabels(g, g->DeltaUCX(xMax, declab), yMajTicks, PI_HorizontalRight); 203 221 } 204 222 } … … 275 293 } 276 294 295 //++ 296 // void ConfigureTicks(int ntickx=10, int nticky=12, \ 297 // double majtl=0.0125, double mintl=0.07) 298 // Configuration du nombre de ticks et taille des ticks. 299 // La taille des ticks est exprimée en fraction de la taille totale 300 // (X/Y max-min). Les paramètres ne sont pas changés si des valeurs 301 // négatives ou nulles sont spécifiées. 302 // void ConfigureAutoFontSize(double fszf=0.0125) 303 // Configuration de la taille de fonte, en mode AutoFontSize. 304 // La taille est exprimée en fraction de la taille totale YMax-Min 305 //-- 306 307 /* --Methode-- */ 308 void PIAxes::ConfigureTicks(int ntickx, int nticky, 309 double majtl, double mintl) 310 { 311 if (ntickx > 0) xNTicks = ntickx; 312 if (nticky > 0) yNTicks = nticky; 313 if (majtl > 1.e-19) fMajTickLen = majtl; 314 if (mintl > 1.e-19) fMinTickLen = mintl; 315 } 316 /* --Methode-- */ 317 void PIAxes::ConfigureAutoFontSize(double fszf) 318 { 319 if (fszf > 1.e-19) fontSz = fszf; 320 } 321 277 322 /* --Methode-- */ 278 323 void PIAxes::Setup(PIGraphicUC* g, double xmin, double xmax, … … 288 333 aYlog = g->isLogScaleY(); 289 334 290 int ntick_x = (aXlog) ? 10 : 10; 335 // Reza - Mars 03 - Nb de ticks en parametres 336 int ntick_x = (aXlog) ? xNTicks : xNTicks; 291 337 if(aXlog) BestTicksLog(xMin,xMax,ntick_x,xMajTicks,xMinTicks); 292 338 else BestTicks(xMin,xMax,ntick_x,xMajTicks,xMinTicks); 293 339 294 int ntick_y = (aYlog) ? 12 : 12;340 int ntick_y = (aYlog) ? yNTicks : yNTicks; 295 341 if(aYlog) BestTicksLog(yMin,yMax,ntick_y,yMajTicks,yMinTicks); 296 342 else BestTicks(yMin,yMax,ntick_y,yMajTicks,yMinTicks); 297 343 298 yMajTickLen = (xMax-xMin)/100; 299 yMinTickLen = (xMax-xMin)/200; // Au lieu de 250, Reza 20/10/02 300 xMajTickLen = (yMax-yMin)/100; 301 xMinTickLen = (yMax-yMin)/200; // Au lieu de 250, Reza 20/10/02 344 // Reza - Mars 03 - Taille des ticks en parametres 345 yMajTickLen = (xMax-xMin)*fMajTickLen; // Au lieu de / 100 346 yMinTickLen = (xMax-xMin)*fMinTickLen; // Au lieu de / 200 ou 250 347 xMajTickLen = (yMax-yMin)*fMajTickLen; // Au lieu de / 100 348 xMinTickLen = (yMax-yMin)*fMinTickLen; // Au lieu de / 200 ou 250 302 349 303 350 setupDone = true; … … 364 411 if((aYdir && (just&PI_VerticalBottom)) || (!aYdir && (just&PI_VerticalTop))) h=-h; 365 412 double xm = (aXdir)? xMin: xMax; 366 double ym = g->DeltaUCY(y, 1.5*h);413 double ym = g->DeltaUCY(y,h); 367 414 sprintf(label,"%d",npuiss); 368 415 g->DrawCompString(xm,ym,"x 10",label,NULL,PI_HorizontalCenter|just); … … 405 452 if(npuiss!=0) { 406 453 if(aYdir) hauteur = -hauteur; 407 double ym = (aYdir)? yMin: yMax; ym = g->DeltaUCY(ym, hauteur);454 double ym = (aYdir)? yMin: yMax; ym = g->DeltaUCY(ym,0.5*hauteur); 408 455 sprintf(label,"%d",npuiss); 409 456 g->DrawCompString(x,ym,"x 10",label,NULL,PI_VerticalBottom|just); -
trunk/SophyaPI/PI/piaxes.h
r2164 r2349 12 12 13 13 enum { 14 k StdAxes= 0x0001,14 kCentAxes = 0x0001, 15 15 kBoxAxes = 0x0002, 16 16 kTicks = 0x0004, … … 21 21 kLabels = 0x1000, 22 22 kGridOn = 0x2000, 23 kAxesDflt = kStdAxes | kTicks | kLabels, // Axes trace par defaut 24 kAxesNone = 0 // Pas de trace d axe 23 // Axes trace par defaut 24 kAxesDflt = kBoxAxes | kTicks | kMajTicks | kIntTicks | kLabels, 25 kStdAxes = kAxesDflt, 26 kAxesNone = 0 // Pas de trace d axe 25 27 }; 26 28 … … 33 35 34 36 virtual void DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, 35 unsigned int flags , bool afsz);37 unsigned int flags=kAxesDflt, bool afsz=true); 36 38 37 39 virtual void DrawXYAxes(PIGraphicUC* g, PIGraphicAtt& gratt, 38 unsigned int flags, bool afsz,39 40 double xmin, double xmax, 40 double ymin, double ymax); 41 double ymin, double ymax, 42 unsigned int flags=kAxesDflt, bool afsz=true); 41 43 42 44 … … 45 47 virtual void DrawYCaption(PIGraphicUC* g, PIGraphicAtt& att, unsigned int flags, 46 48 string const& YLabel); 49 50 // Taille des ticks d'axes (en fraction de taille d'axe) 51 void ConfigureTicks(int ntickx=10, int nticky=12, 52 double majtl=0.0125, double mintl=0.007); 53 void ConfigureAutoFontSize(double fszf=0.04); 47 54 48 55 // virtual void DrawHorizontalAxe(double xmin, double xmax, double y, … … 80 87 bool axesAFSz; 81 88 89 int xNTicks, yNTicks; // Nb de ticks en X, Y 90 double fMajTickLen, fMinTickLen; // Taille des ticks, en fraction de Max-Min 91 double fontSz; // Taille pour autofontsize, frac Max-Min 82 92 vector<double> xMajTicks; 83 93 vector<double> xMinTicks; -
trunk/SophyaPI/PI/piaxestools.cc
r2322 r2349 230 230 if (scd->GetAxesFlags() & kGridOn) mCkb[2]->SetState(true); 231 231 else mCkb[2]->SetState(false); 232 if (scd->GetAxesFlags() & k StdAxes) mCkb[5]->SetState(true);232 if (scd->GetAxesFlags() & kCentAxes) mCkb[5]->SetState(true); 233 233 else mCkb[5]->SetState(false); 234 234 if (scd->GetAxesFlags() & kMinTicks) mCkb[6]->SetState(true); … … 303 303 if (mCkb[2]->GetState()) flags |= kGridOn; 304 304 else flags &= ~kGridOn; 305 if (mCkb[5]->GetState()) { flags |= k StdAxes; flags &= ~kBoxAxes; }306 else { flags &= ~k StdAxes; flags |= kBoxAxes; }305 if (mCkb[5]->GetState()) { flags |= kCentAxes; flags &= ~kBoxAxes; } 306 else { flags &= ~kCentAxes; flags |= kBoxAxes; } 307 307 if (mCkb[6]->GetState()) flags |= kMinTicks; 308 308 else flags &= ~kMinTicks; -
trunk/SophyaPI/PI/pidrawer.cc
r2322 r2349 430 430 { 431 431 axesFlags = flags; 432 if (axesFlags & (kIntTicks | kExtTicks | kMajTicks | kMinTicks))433 axesFlags |= kTicks;434 if ((axesFlags & (kTicks | kIntTicks | kExtTicks)) == kTicks)435 axesFlags |= kIntTicks | kExtTicks;436 if ((axesFlags & (kTicks | kMajTicks | kMinTicks)) == kTicks)437 axesFlags |= kMajTicks;432 // if (axesFlags & (kIntTicks | kExtTicks | kMajTicks | kMinTicks)) 433 // axesFlags |= kTicks; 434 // if ((axesFlags & (kTicks | kIntTicks | kExtTicks)) == kTicks) 435 // axesFlags |= kIntTicks | kExtTicks; 436 // if ((axesFlags & (kTicks | kMajTicks | kMinTicks)) == kTicks) 437 // axesFlags |= kMajTicks; 438 438 } 439 439 … … 444 444 g->NoClip(); 445 445 PIAxes axes; 446 axes.DrawXYAxes(g, mGrAtt, axesFlags, axesAFSz, XMin(), XMax(), YMin(), YMax()); 446 axes.DrawXYAxes(g, mGrAtt, XMin(), XMax(), YMin(), YMax(), 447 axesFlags, axesAFSz); 447 448 g->Clip(); 448 449 } -
trunk/SophyaPI/PI/pieldrw.cc
r2322 r2349 524 524 string opts = opt[k]; 525 525 if ( (opts == "stdaxes") || (opts == "defaxes") || (opts == "boxaxes") ) 526 SetAxesFlags(k BoxAxes | kExtTicks | kLabels);526 SetAxesFlags(kAxesDflt); 527 527 else if (opts == "boxaxesgrid") 528 SetAxesFlags(k BoxAxes | kExtTicks | kLabels| kGridOn);528 SetAxesFlags(kAxesDflt | kGridOn); 529 529 else if (opts == "fineaxes") 530 SetAxesFlags(k BoxAxes | kTicks | kLabels| kMinTicks | kMajTicks);530 SetAxesFlags(kAxesDflt | kMinTicks | kMajTicks); 531 531 else if (opts == "fineaxesgrid") 532 SetAxesFlags(k BoxAxes | kTicks | kLabels| kMinTicks | kMajTicks | kGridOn);532 SetAxesFlags(kAxesDflt | kMinTicks | kMajTicks | kGridOn); 533 533 else if (opts == "centeredaxes") 534 SetAxesFlags(k StdAxes | kMajTicks | kLabels);534 SetAxesFlags(kCentAxes | kMajTicks | kLabels); 535 535 else if (opts == "finecenteredaxes") 536 SetAxesFlags(k StdAxes | kMajTicks | kMinTicks | kLabels);536 SetAxesFlags(kCentAxes | kMajTicks | kMinTicks | kLabels); 537 537 else if (opts == "centeredaxesgrid") 538 SetAxesFlags(k StdAxes | kMajTicks | kLabels | kGridOn);538 SetAxesFlags(kCentAxes | kMajTicks | kLabels | kGridOn); 539 539 else if (opts == "finecenteredaxesgrid") 540 SetAxesFlags(k StdAxes | kMajTicks | kMinTicks | kLabels | kGridOn);540 SetAxesFlags(kCentAxes | kMajTicks | kMinTicks | kLabels | kGridOn); 541 541 else if (opts == "axesnone") 542 542 SetAxesFlags(kAxesNone); … … 554 554 SetAxesFlags(GetAxesFlags() & ~kMinTicks); 555 555 else if (opts == "extticks") 556 SetAxesFlags(GetAxesFlags() |kExtTicks);556 SetAxesFlags(GetAxesFlags() & ~kIntTicks | kExtTicks); 557 557 else if (opts == "intticks") 558 SetAxesFlags(GetAxesFlags() | kIntTicks); 558 SetAxesFlags(GetAxesFlags() & ~kExtTicks | kIntTicks); 559 else if (opts == "extintticks") 560 SetAxesFlags(GetAxesFlags() | kIntTicks | kExtTicks); 559 561 else if (opts == "grid") 560 562 SetAxesFlags(GetAxesFlags() | kGridOn); 561 563 else if (opts == "nogrid") 562 564 SetAxesFlags(GetAxesFlags() & ~kGridOn); 563 else if (opts == "autofontsize") 565 566 else if (opts.substr(0,13) == "autofontsize=") { 567 double fszf = atof(opts.substr(13).c_str()); 568 ConfigureAxeAutoFontSize(fszf); 564 569 SetAxesAutoFontSize(true); 570 } 565 571 else if (opts == "fixedfontsize") 566 572 SetAxesAutoFontSize(false); 573 567 574 else if (opts == "title" || opts == "tit") ShowTitles(true); 568 575 else if (opts == "notitle" || opts == "notit") ShowTitles(false); 569 576 else if (opts.substr(0,8) == "nbticks=") { 577 int xnticks=0; 578 int ynticks=0; 579 sscanf(opts.substr(8).c_str(),"%d,%d", &xnticks, &ynticks); 580 ConfigureAxeTicks(xnticks, ynticks, 0., 0.); 581 } 582 else if (opts.substr(0,9) == "tickslen=") { 583 double fmajtl = 0.; 584 double fmintl = 0.; 585 sscanf(opts.substr(9).c_str(),"%lg,%lg", &fmajtl, &fmintl); 586 ConfigureAxeTicks(0, 0, fmajtl, fmintl); 587 } 570 588 else { 571 589 ndec--; … … 584 602 // g->NoClip(); 585 603 g->SaveGraphicAtt(); 586 PIAxes axes;587 axes.DrawXYAxes(g, mGrAtt, axesFlags, axesAFSz, XMin(), XMax(), YMin(), YMax());604 axeDr.DrawXYAxes(g, mGrAtt, XMin(), XMax(), YMin(), YMax(), 605 axesFlags, axesAFSz); 588 606 g->RestoreGraphicAtt(); 589 607 if (showAxesLabels) { 590 axe s.DrawXCaption(g, labelAtt, axesFlags, xLabel);591 axe s.DrawYCaption(g, labelAtt, axesFlags, yLabel);608 axeDr.DrawXCaption(g, labelAtt, axesFlags, xLabel); 609 axeDr.DrawYCaption(g, labelAtt, axesFlags, yLabel); 592 610 } 593 611 // g->Clip(); -
trunk/SophyaPI/PI/pieldrw.h
r2264 r2349 222 222 virtual void Draw(PIGraphicUC* g, double xmin, double ymin, double xmax, double ymax); 223 223 224 inline void ConfigureAxeTicks(int ntickx=0, int nticky=0, 225 double majtl=0., double mintl=0.) 226 { axeDr.ConfigureTicks(ntickx, nticky, majtl, mintl); } 227 inline void ConfigureAxeAutoFontSize(double fszf=0.) 228 { axeDr.ConfigureAutoFontSize(fszf); } 229 224 230 inline PIElDrwMgr& ElDrwMgr() { return eltsMgr; } 225 231 … … 251 257 bool showAxesLabels; // Affichage des labels d'axes si true 252 258 bool fgClip; // Si true, appel a PIGraphicUC::Clip() ds Draw() 259 PIAxes axeDr; // Trace d'axes 253 260 }; 254 261 -
trunk/SophyaPI/PI/pigraphgen.cc
r2322 r2349 504 504 case PI_BasicArrowMarker : 505 505 t0 = M_PI/4.; 506 asz = (double)myArrowMrkSz/cos(t0) ;506 asz = (double)myArrowMrkSz/cos(t0)*0.75; 507 507 tp = theta+0.75*M_PI; 508 508 tm = theta-0.75*M_PI; … … 564 564 default: 565 565 t0 = M_PI/4.; 566 asz = (double)myArrowMrkSz/cos(t0) ;566 asz = (double)myArrowMrkSz/cos(t0)*0.75; 567 567 tp = theta+5.*M_PI/4.; 568 568 tm = theta-5.*M_PI/4.; -
trunk/SophyaPI/PI/piscdrawwdg.cc
r2322 r2349 92 92 SetLimits(-1.,1.,-1.,1.,kAxeDirLtoR,kAxeDirDownUp); 93 93 // SetDefaultDrawRectangle(0.12, 0.12, 0.88, 0.88, true); fait par SetAxesFlags() - Reza Mai 2002 94 SetAxesFlags(k BoxAxes | kExtTicks | kLabels);94 SetAxesFlags(kAxesDflt); 95 95 FreeLimits(); 96 96 xEndDrag = yEndDrag = xBegDrag = yBegDrag = 0; … … 216 216 SetDefaultDrawRectangle(0.13, 0.09, 0.93, 0.89, true); 217 217 else 218 SetDefaultDrawRectangle(0.0 6, 0.06, 0.94, 0.94, true);218 SetDefaultDrawRectangle(0.08, 0.08, 0.92, 0.92, true); 219 219 } 220 220 … … 271 271 continue; 272 272 } 273 /* 274 les attributs d'axes sont decodes par PIElDrawer 275 if (opts == "simpleaxes") { 276 SetAxesFlags(kAxesDflt); 277 continue; 278 } 279 if ( (opts == "stdaxes") || (opts == "boxaxes") ) { 280 SetAxesFlags(kBoxAxes | kExtTicks | kLabels); 281 continue; 282 } 283 if (opts == "boxaxesgrid") { 284 SetAxesFlags(kBoxAxes | kExtTicks | kLabels | kGridOn); 285 continue; 286 } 287 if (opts == "fineaxes") { 288 SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks); 289 continue; 290 } 291 if (opts == "fineaxesgrid") { 292 SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks | kGridOn); 293 continue; 294 } 295 */ 273 274 // Les attributs d'axes (stdaxes boxaxesgrid ...) sont decodes par PIElDrawer 296 275 297 276 ndec--; -
trunk/SophyaPI/PI/piscdrawwdg.h
r2301 r2349 36 36 virtual void UpdateLimits(); // Calcule et change les limites a partir de Drawer-No-1 37 37 38 virtual void SetAxesFlags(unsigned int flags=k BoxAxes | kExtTicks | kLabels);38 virtual void SetAxesFlags(unsigned int flags=kAxesDflt); 39 39 40 40 inline void SetTitles(string tt, string tb) -
trunk/SophyaPI/PI/piversion.h
r2342 r2349 2 2 #define PIVERSION_H_SEEN 3 3 4 #define PI_VERSIONNUMBER 3.9 24 #define PI_VERSIONNUMBER 3.93 5 5 6 6 #endif
Note:
See TracChangeset
for help on using the changeset viewer.