Changeset 203 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Feb 26, 1999, 3:18:56 PM (27 years ago)
Author:
ercodmgr
Message:

amelioration trace axes, rz+cmv 26/2/99

Location:
trunk/SophyaPI/PIext
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pihisto.cc

    r165 r203  
    4242  bool oktrace = false;
    4343  if (!mHisto)  return; 
     44
    4445  if (mMrk != PI_NotDefMarker || mHisto->ClassId() == HProf::classId ) {
    4546    // Marqeurs definis OU HBProf => marqueurs+Erreurs si il y en a
     
    9293    }
    9394  }
     95  // A faire a la fin - DrawStats change l'attribut de ligne
    9496  DrawStats(g);
    9597}
     
    99101{
    100102  if (!mHisto) return;
    101   if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     103  //  if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     104  g->SelLine(PI_ThinLine);
    102105  float cellHeight = (YMax() - YMin()) * 0.05;
    103106  float cellWidth  = (XMax() - XMin()) * 0.23;
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r194 r203  
    188188mCmapid = CMAP_OTHER;
    189189mZoom = 0;
     190mAxesFlags = kBoxAxes | kExtTicks | kLabels;
    190191SaveGraphicAtt();
    191192
     
    440441scw->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
    441442scw->SetUserData(NULL, flag);
     443scw->SetAxesFlags(mAxesFlags);
     444
    442445if (!h2d) scw->AddScDrawer(scd, true);
    443446else ((PIH2DWdg*)scw)->SetPIHisto((PIHisto2D*)scd);
     
    11391142  mZoom = zoom;
    11401143}
     1144/* --Methode-- */
     1145void PIStdImgApp::SetAxesAtt(unsigned int axfl)
     1146{
     1147  mAxesFlags = axfl;
     1148}
    11411149
    11421150/* --Methode-- */
     
    11521160  mSCmapid = mCmapid;
    11531161  mSZoom = mZoom;
     1162  mSAxesFlags = mAxesFlags;
    11541163}
    11551164
     
    11661175  mCmapid = mSCmapid;
    11671176  mZoom = mSZoom;
    1168 }
     1177  mAxesFlags = mSAxesFlags;
     1178}
  • trunk/SophyaPI/PIext/pistdimgapp.h

    r194 r203  
    9191     void  SetColMapId(CMapId cid=CMAP_OTHER);
    9292     void  SetZoomAtt(int zoom=0);
     93     void  SetAxesAtt(unsigned int axfl=kBoxAxes | kExtTicks | kLabels);
    9394// Pour sauvegarder-restauration de  l'etat des attributs graphiques
    9495     void  SaveGraphicAtt();   
     
    156157    CMapId       mCmapid, mSCmapid;
    157158    int          mZoom, mSZoom;
     159    unsigned int mAxesFlags, mSAxesFlags;
    158160
    159161    PIMessage mFCMsg;  // Message for processing FileOpen
  • trunk/SophyaPI/PIext/servnobjm.cc

    r194 r203  
    456456  it = GrAzoom.find(grt[k]);
    457457  if (it != GrAzoom.end())  { mImgapp->SetZoomAtt( (*it).second.a1 );  fgsrgr = true; continue; } 
     458  // Si c'est un attribut d'axe
     459  it = GrAaxes.find(grt[k]);
     460  if (it != GrAaxes.end())  { mImgapp->SetAxesAtt( (*it).second.a1 );  fgsrgr = true; continue; } 
    458461 
    459462  } 
     
    754757GrAcmap["colbr128"] = gi;
    755758
    756 // Les tables de couleurs
     759// La valeur de zoom
    757760gi.a2 = 0;
    758761gi.a1 = 0;
     
    776779gi.a1 = -5;
    777780GrAzoom["zoom/5"] = gi;
    778                  
    779 }
     781
     782// Attributs d'axes
     783gi.a2 = 0;
     784gi.a1 = (int)(kBoxAxes | kExtTicks | kLabels);
     785GrAaxes["stdaxes"] = gi;
     786GrAaxes["defaxes"] = gi;
     787GrAaxes["boxaxes"] = gi;
     788gi.a1 = (int)kAxesDflt;
     789GrAaxes["simpleaxes"] = gi;
     790gi.a1 = (int)(kBoxAxes | kExtTicks | kLabels | kGridOn);
     791GrAaxes["boxaxesgrid"] = gi;
     792
     793gi.a1 = (int)(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks);
     794GrAaxes["fineaxes"] = gi;
     795 gi.a1 = (int)(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks | kGridOn);
     796GrAaxes["grid"] = gi;
     797GrAaxes["fineaxesgrid"] = gi;
     798               
     799}
  • trunk/SophyaPI/PIext/servnobjm.h

    r171 r203  
    5757  GrAttNames GrAcmap; 
    5858  GrAttNames GrAzoom; 
     59  GrAttNames GrAaxes; 
    5960
    6061  PDynLinkMgr * dynlink;  // shared-lib lib.so
Note: See TracChangeset for help on using the changeset viewer.