Changeset 1880 in Sophya for trunk/SophyaPI/PIext/pihisto2d.cc
- Timestamp:
- Jan 21, 2002, 6:13:05 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pihisto2d.cc
r1862 r1880 351 351 352 352 //++ 353 void PIHisto2D::GetClickInfo(string& info, double x, double y) 354 // 355 // Info specifique du drawer pour la position x,y 356 //-- 357 { 358 Histo2D* h = Histogram(); 359 if (h == NULL) return; 360 int i,j; 361 char str[128]; 362 363 h->FindBin(x,y,i,j); 364 if(i<0 || i>=h->NBinX() || j<0 || j>=h->NBinY()) info += " ???"; 365 else { 366 sprintf(str," v= %g",x,y,(*h)(i,j)); 367 info += str; 368 } 369 return; 370 } 371 372 //++ 353 373 void PIHisto2D::DrawStats(PIGraphicUC* g) 354 374 //
Note:
See TracChangeset
for help on using the changeset viewer.