Changeset 12105 for trunk


Ignore:
Timestamp:
09/15/11 13:31:26 (13 years ago)
Author:
lyard
Message:
fixed viewer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r12104 r12105  
    283283#else
    284284
     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;
    285289        glVertex2f(bboxMin[0] + xRange*i/(float)nRoi,
    286                    bboxMin[1] + yRange*(eventData[nRoi*selectedPixel + i]+plusMe) /divideMe);
     290                   bboxMin[1] + yRange*(d1) /divideMe);
    287291        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);
    289293#endif
    290294    }
Note: See TracChangeset for help on using the changeset viewer.