Changeset 547 in Sophya for trunk


Ignore:
Timestamp:
Nov 4, 1999, 5:19:58 PM (26 years ago)
Author:
ercodmgr
Message:

corrections diverses - Reza 4/11/99

Location:
trunk/SophyaPI/PI
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pi3ddrw.cc

    r440 r547  
    413413int id = AddDrawer(dr3, false, false, ad);
    414414if (m3DrIl.size() == 0)  dr3->SetAxesFlags(kStdAxes);
     415else dr3->SetAxesFlags(kAxesNone);
    415416m3DrIl.push_back(id);
    416417return(id);
  • trunk/SophyaPI/PI/pibwdggen.cc

    r535 r547  
    338338mDrXmin = xmin;   mDrXmax = xmax;
    339339mDrYmin = ymin;   mDrYmax = ymax;
    340 if ( (axrl != kAxeDirSame) && (axrl != kAxeDirAuto) )  mDXdir = axrl;   
    341 if ( (ayud != kAxeDirSame) && (ayud != kAxeDirAuto) )  mDYdir = ayud;
     340if (axrl != kAxeDirSame)   mDXdir = axrl;   
     341if (ayud != kAxeDirSame)   mDYdir = ayud;
    342342}
    343343
     
    515515
    516516vector<BWDrwId>::iterator it;
    517 bool fgc=false;
    518517for(it = mDrwList.begin(); it != mDrwList.end(); it++) {
    519518  g->SaveGraphicAtt();
     
    538537  }
    539538  guc = (*it).drw->SetDrwWdg(this, drx0, dry0, drdx, drdy, g);
    540   if ((*it).clip)  { g->SetClipRectangle(drx0, dry0, drdx , drdy);  fgc = true; }
     539  if ((*it).clip)  g->SetClipRectangle(drx0, dry0, drdx , drdy); 
    541540  (*it).drw->SelGraAtt(guc);
    542541  if (sxy) {
     
    552551  (*it).drw->Draw(guc, xmin, ymin, xmax, ymax);
    553552  g->RestoreGraphicAtt();
    554   }
    555 if (fgc)  g->ClearClipRectangle();
     553  if ((*it).clip)  g->ClearClipRectangle();
     554  }
    556555
    557556return;
  • trunk/SophyaPI/PI/pidrawer.cc

    r543 r547  
    4646  SetLimits(-1, 1, -1, 1, kAxeDirLtoR, kAxeDirDownUp);
    4747  limitsFixed = 0;
    48   SetAxesFlags();   // Pas de trace d'axes par defaut
     48  SetAxesFlags(kAxesNone);   // Pas de trace d'axes par defaut
    4949  mDndfg = false;  // Pour controle de l'appel de Detach() si delete
    5050
  • trunk/SophyaPI/PI/pigraphps.cc

    r382 r547  
    113113  //  mPSOut->DrawString((double)x,(double)y,s,mFCol,mFAtt,mFSize); /* $CHECK$ PIFontSize ?? */
    114114  mPSOut->DrawString((double)x,(double)y,s,mFCol, myFont.GetFontName(),
    115                      myFont.GetFontAtt(),  myFont.GetFontSize());
     115                     myFont.GetFontAtt(),  myFont.GetFontSize()*0.9); /* $CHECK$  x 0.9 - Reza 4/11/99 */
    116116// Calculez la taille de la boite occupe par la fonte
    117117//  myFont.GetFontHeight(int& asc, int& desc)  Tres proche de myFont.GetFontSize() en principe
     
    126126  //  mPSOut->DrawString((double)x,(double)y,s,mFCol,mFAtt,mFSize); /* $CHECK$ PIFontSize ?? */
    127127  mPSOut->DrawString((double)x,(double)y,s,mFCol, myFont.GetFontName(),
    128                      myFont.GetFontAtt(),  myFont.GetFontSize());
     128                     myFont.GetFontAtt(),  myFont.GetFontSize()*0.9);  /* $CHECK$  x 0.9 - Reza 4/11/99 */
    129129// Idem taille ici
    130130return;
  • trunk/SophyaPI/PI/psfile.cc

    r382 r547  
    719719    /* Choix des fontes */
    720720    if ( (FontAtt != PI_NotDefFontAtt) && (FontAtt != mFontAtt) ) {
    721       printf("PSFile::DrawString(%s) : FontAtt a change : %d %d \n", s, mFontAtt, FontAtt) ;
     721//DBG      printf("PSFile::DrawString(%s) : FontAtt a change : %d %d \n", s, mFontAtt, FontAtt) ;
    722722      mFontAtt = FontAtt;
    723723      change = 1;
    724724    }
    725725    if ( (FontSize != PI_NotDefFontSize) && (FontSize != mFontSize) ) {
    726       printf("PSFile::DrawString(%s) : FontSize a change : %d %d \n", s, mFontSize, FontSize) ;
     726//DBG      printf("PSFile::DrawString(%s) : FontSize a change : %d %d \n", s, mFontSize, FontSize) ;
    727727      mFontSize = (PIFontSize) FontSize;  // $CHECK$ EA ajoute le cast un peu au pif
    728728      change = 1;
    729729    }
    730730    if( (FontName != mFontName) ) {
    731       printf("PSFile::DrawString(%s) : FontName a change : %d %d \n", s, mFontName, FontName) ;
     731//DBG      printf("PSFile::DrawString(%s) : FontName a change : %d %d \n", s, mFontName, FontName) ;
    732732      mFontName = (PIFontName) FontName ;
    733733      change = 1 ;
Note: See TracChangeset for help on using the changeset viewer.