Changeset 544 in Sophya for trunk/SophyaPI/PIext/pintuple.cc
- Timestamp:
- Nov 3, 1999, 7:18:23 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pintuple.cc
r537 r544 34 34 //++ 35 35 // PINTuple(NTupleInterface* nt, bool ad) 36 // Co sntructeur. Si "ad == true", l'objet "nt" est détruit par36 // Constructeur. Si "ad == true", l'objet "nt" est détruit par 37 37 // le destructeur de l'objet "PINTuple" 38 // Note : ntdoit être créé par new38 // Note : "nt" doit être créé par new 39 39 //-- 40 40 … … 45 45 mNT = nt; 46 46 mAdDO = ad; 47 SetStats(true); 47 48 SelectXY(NULL, NULL); 48 49 SelectWt(NULL, 1); … … 194 195 } 195 196 196 /* 197 sprintf(buff, "NTuple: NEntry= %d NDisp= %d", (int)mNT->NEntry(), nok); 198 g->BaseGraphic()->DrawString(15,15,buff); 199 */ 197 if (stats) { // Trace de stats 198 char label[64]; 199 sprintf(label, "Nd= %d/ Ntot= %d", nok, mNT->NbLines()); 200 g->SelFontSz((YMax() - YMin())/25, mFAtt); 201 PIGrCoord a,d; 202 double cH = (double)g->GetFontHeight(a,d); 203 double cellHeight = cH * 1.4; 204 double cellWidth = (double)g->CalcStringWidth(label) * 1.1; 205 g->DrawLine(XMax() - cellWidth, YMax(), 206 XMax() - cellWidth, YMax() - cellHeight); 207 g->DrawLine(XMax() - cellWidth, YMax() - cellHeight, 208 XMax() , YMax() - cellHeight); 209 g->DrawString(XMax() - cellWidth*0.95, YMax() - cH*1.2, label); 210 } 211 200 212 return; 201 213 }
Note:
See TracChangeset
for help on using the changeset viewer.