Changeset 12300 for trunk/FACT++


Ignore:
Timestamp:
10/27/11 16:30:58 (13 years ago)
Author:
lyard
Message:
added RMS tab and fixed time for old format
Location:
trunk/FACT++/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/BasicGlCamera.h

    r12297 r12300  
    6161
    6262    static PixelMap fPixelMap;
     63    static int pixelsPatch[NPIX];
    6364
    6465    bool pixelColorUpToDate;
     
    140141    static std::vector<edge> patchesIndices[160];
    141142    static int verticesIndices[NPIX][6];
    142     static int pixelsPatch[NPIX];
    143143    static int softwareMapping[NPIX];
    144144    float shownSizex;
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r12297 r12300  
    638638    catch (const runtime_error&)
    639639    {
     640        try
     641        {
     642            inputFile->SetPtrAddress("PCTime", pcTime);
     643        }
     644        catch (const runtime_error&)
     645        {
     646
     647        }
    640648    }
    641649
     
    11031111    updateGL();
    11041112}
    1105 
     1113void RawDataViewer::setCurrentPixel(int pix)
     1114{
     1115    if (pix == -1)
     1116        return;
     1117    selectedPixel = pix;
     1118    if (isVisible())
     1119    updateGL();
     1120     emit signalCurrentPixel(pix);
     1121}
    11061122void RawDataViewer::computePulsesStatistics()
    11071123{
     
    12021218
    12031219    GLWindow_2->enableText(false);
     1220 //   GLWindow_2->ShowPatchCursor(true);
    12041221
    12051222    QObject::connect(GLWindow, SIGNAL(colorPaletteHasChanged()),
     
    12131230    QObject::connect(GLWindow, SIGNAL(newFileLoaded()),
    12141231                     this, SLOT(newFileLoaded()));
     1232
     1233    QObject::connect(GLWindow_2, SIGNAL(signalCurrentPixel(int)),
     1234                     GLWindow, SLOT(setCurrentPixel(int)));
     1235
    12151236
    12161237    show();
     
    19812002void UIConnector::pixelChanged(int pixel)
    19822003{
     2004    GLWindow_2->fWhite = pixel;
     2005    GLWindow_2->fWhitePatch = GLWindow_2->pixelsPatch[pixel];
     2006
     2007
    19832008    pixel = GLWindow->hardwareMapping[pixel];
    19842009
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h

    r12297 r12300  
    7575    void nextSlice();
    7676    void previousSlice();
     77    void setCurrentPixel(int);
    7778
    7879Q_SIGNALS:
Note: See TracChangeset for help on using the changeset viewer.