Changeset 505 in Sophya for trunk/SophyaPI/PI/pibwdggen.cc


Ignore:
Timestamp:
Oct 24, 1999, 5:57:21 PM (26 years ago)
Author:
ercodmgr
Message:

Introduction d'echelle Log ds PIGraphicUC / PIScDrawWdg - Reza 24/10/99

File:
1 edited

Legend:

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

    r329 r505  
    100100SetDefaultDrawRectangle(0., 0., 1., 1., true);
    101101SetDefaultDrawerLimits(0., 1., 0., 1., kAxeDirLtoR, kAxeDirUpDown);
     102SetDefaultDrawerLogScale(false, false);
    102103}
    103104
     
    316317// void  SetDefaultDrawerLimits(double xmin, double xmax, double ymin, double ymax, -
    317318//                              int axrl=kAxeDirSame, int ayud=kAxeDirSame)
    318 //      Définition du système de coordonnées par défaut d'un drawer attaché en "autolim=true"
     319//      Définition du système de coordonnées par défaut d'un drawer attaché
     320//      en "autolim=true"
     321// void  SetDefaultDrawerLogScale(bool logx, bool logy)
     322//      Définition d'échelle logarithmique pour le système de coordonnées par défaut
     323//      d'un drawer attaché en "autolim=true".
    319324//
    320325//--
     
    336341}
    337342
     343/* --Methode-- */
     344void PIBaseWdgGen::SetDefaultDrawerLogScale(bool logx, bool logy)
     345{
     346mDXlog = logx;
     347mDYlog = logy;
     348}
    338349
    339350//++
     
    521532    }
    522533// L'ordre des operations ici est importante
    523   if ( (*it).autolim )  
     534  if ( (*it).autolim ) {
    524535     (*it).drw->SetLimits(mDrXmin, mDrXmax, mDrYmin, mDrYmax, mDXdir, mDYdir);     
     536     (*it).drw->SetLogScale(mDXlog, mDYlog);
     537  }
    525538  guc = (*it).drw->SetDrwWdg(this, drx0, dry0, drdx, drdy, g);
    526539  if ((*it).clip)  { g->SetClipRectangle(drx0, dry0, drdx , drdy);  fgc = true; }
     
    583596      }
    584597// L'ordre des operations ici est importante
    585     if ( (*it).autolim )
     598    if ( (*it).autolim ) {
    586599       (*it).drw->SetLimits(mDrXmin, mDrXmax, mDrYmin, mDrYmax, mDXdir, mDYdir);
     600       (*it).drw->SetLogScale(mDXlog, mDYlog);
     601    }
    587602    guc = (*it).drw->SetDrwWdg(this, drx0, dry0, drdx, drdy, g);
    588603    if ((*it).clip)  g->SetClipRectangle(drx0, dry0, drdx , drdy);
Note: See TracChangeset for help on using the changeset viewer.