Changeset 205 in Sophya for trunk/SophyaPI/PIext/pihisto.cc


Ignore:
Timestamp:
Mar 1, 1999, 6:05:59 PM (27 years ago)
Author:
ercodmgr
Message:

1/ Adaptation pour passage en double de trace en coordonnees graphiques
User (UC) (float -> double)
2/ Adaptation pour passage en double pour les ArrayAdapter

Reza 1/03/99

File:
1 edited

Legend:

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

    r203 r205  
    3838
    3939void
    40 PIHisto::Draw(PIGraphicUC* g, float /*xmin*/, float /*ymin*/, float /*xmax*/, float /*ymax*/)
     40PIHisto::Draw(PIGraphicUC* g, double /*xmin*/, double /*ymin*/, double /*xmax*/, double /*ymax*/)
    4141{
    4242  bool oktrace = false;
     
    4646    // Marqeurs definis OU HBProf => marqueurs+Erreurs si il y en a
    4747    if (mLAtt == PI_NotDefLineAtt) g->SelLine(PI_ThinLine);
    48     float x1,y1, x2,y2;
    49     float bw = mHisto->BinWidth();
     48    double x1,y1, x2,y2;
     49    double bw = mHisto->BinWidth();
    5050    for (int i=0; i<mHisto->NBins(); i++) {
    5151      if(mHisto->Error(i)>0.) {
     
    6868  }
    6969  if (mLAtt != PI_NotDefLineAtt) {
    70     float x1,y1, x2, y2;
     70    double x1,y1, x2, y2;
    7171    x1 = mHisto->BinLowEdge(0);
    7272    y1 = 0;
     
    8585  if( !oktrace ) {
    8686    for(int i=0; i<mHisto->NBins(); i++) {
    87       float left   = mHisto->BinLowEdge(i);
    88       float width  = mHisto->BinWidth();
    89       float bottom = 0;
    90       float height = (*mHisto)(i);
     87      double left   = mHisto->BinLowEdge(i);
     88      double width  = mHisto->BinWidth();
     89      double bottom = 0;
     90      double height = (*mHisto)(i);
    9191      g->DrawFBox(left,bottom,width,height);
    9292      g->DrawLine(left, bottom, left, bottom + height); // Au moins une ligne...
     
    103103  //  if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    104104  g->SelLine(PI_ThinLine);
    105   float cellHeight = (YMax() - YMin()) * 0.05;
    106   float cellWidth  = (XMax() - XMin()) * 0.23;
     105  double cellHeight = (YMax() - YMin()) * 0.05;
     106  double cellWidth  = (XMax() - XMin()) * 0.23;
    107107  g->DrawLine(XMax() - cellWidth, YMax(),
    108108                       XMax() - cellWidth, YMax() - cellHeight);
Note: See TracChangeset for help on using the changeset viewer.