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.
File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.