Changeset 11997 for trunk/FACT++/gui


Ignore:
Timestamp:
09/07/11 09:55:53 (13 years ago)
Author:
tbretz
Message:
Added a SetDatat taking a valarray of floats as argument -- could be replaced by a template if more are needed.
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

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

    r11987 r11997  
    384384     }
    385385
     386void QCameraWidget::SetData(const valarray<float> &ddata)
     387     {
     388//             fData = ddata;
     389         for (int i=0;i<ACTUAL_NUM_PIXELS;i++)
     390             fData[i] = ddata[i];
     391         pixelColorUpToDate = false;
     392         if (isVisible() && autoRefresh)
     393             updateGL();
     394     }
     395
    386396
    387397     void QCameraWidget::highlightPixel(int idx, bool highlight)
  • trunk/FACT++/gui/QCameraWidget.h

    r11985 r11997  
    5151
    5252     void SetData(const valarray<double> &ddata);
     53     void SetData(const valarray<float> &ddata);
    5354
    5455
Note: See TracChangeset for help on using the changeset viewer.