Changeset 486 in Sophya for trunk/SophyaPI/PIext/pintuple.cc


Ignore:
Timestamp:
Oct 21, 1999, 2:22:56 PM (26 years ago)
Author:
ercodmgr
Message:

Adapatation a NTupleInterface::GetCelltoString() et ajout trace Label ds PINTuple/3D et Wt ds PINtuple3D - Reza 21/10/99

File:
1 edited

Legend:

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

    r344 r486  
    1212  SelectWt(NULL, 1);
    1313  SelectErrBar();
     14  SelectLabel(NULL);
    1415}
    1516
     
    3940if (wK >= 0) mNT->GetMinMax(wK, wMin, wMax);
    4041else  { wMin = 0.; wMax = 1.; }
     42}
     43
     44/* --Methode-- */
     45void  PINTuple::SelectLabel(const char* plabel)
     46{
     47if (plabel == NULL) lK = -1;
     48else {  string name = plabel;  lK = mNT->ColumnIndex(name);  }
    4149}
    4250
     
    126134    else g->SelMarker(sz, mrk);
    127135  }
    128   g->DrawMarker(xp, yp);
     136  // Trace du marker
     137  if ((wK >= 0)||(lK < 0)||(mMrk != PI_NotDefMarker))  g->DrawMarker(xp, yp);
     138  // Trace eventuel du label
     139  if (lK >= 0) g->DrawString(xp, yp, mNT->GetCelltoString(i, lK).c_str());
     140
    129141}
    130142
Note: See TracChangeset for help on using the changeset viewer.