Changeset 12105 for trunk/FACT++/gui/RawEventsViewer
- Timestamp:
- 09/15/11 13:31:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12104 r12105 283 283 #else 284 284 285 float d1 = eventData[nRoi*selectedPixel + i]+plusMe; 286 float d2 = eventData[nRoi*selectedPixel + i+1]+plusMe; 287 if (!finite(d1)) d1 = 20000; 288 if (!finite(d2)) d2 = 20000; 285 289 glVertex2f(bboxMin[0] + xRange*i/(float)nRoi, 286 bboxMin[1] + yRange*( eventData[nRoi*selectedPixel + i]+plusMe) /divideMe);290 bboxMin[1] + yRange*(d1) /divideMe); 287 291 glVertex2f(bboxMin[0] + xRange*(i+1)/(float)nRoi, 288 bboxMin[1] + yRange*( eventData[nRoi*selectedPixel + i+1]+plusMe) /divideMe);292 bboxMin[1] + yRange*(d2) /divideMe); 289 293 #endif 290 294 }
Note:
See TracChangeset
for help on using the changeset viewer.