Changeset 12297 for trunk/FACT++/gui/RawEventsViewer
- Timestamp:
- 10/27/11 14:42:09 (13 years ago)
- Location:
- trunk/FACT++/gui/RawEventsViewer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12281 r12297 352 352 * CONSTRUCTOR. 353 353 ************************************************************/ 354 RawDataViewer::RawDataViewer(QWidget *cParent) : BasicGlCamera(cParent) 354 RawDataViewer::RawDataViewer(QWidget *cParent) : BasicGlCamera(cParent), RMSvalues(1440) 355 355 { 356 356 // setFormat(QGLFormat(QGL::DoubleBuffer));// | QGL::DepthBuffer)); … … 608 608 } 609 609 eventData = new float[(1440+160)*nRoi]; 610 610 611 rawEventData = new int16_t[(1440+160)*nRoi]; 611 612 waveLetArray = new int16_t[1024*1440]; … … 1037 1038 DataCalib::Apply(eventData, rawEventData, startPix, nRoi); 1038 1039 CalibData::RemoveSpikes(eventData, nRoi); 1040 1041 vector<float> pixelStatsData(1440*4); 1042 CalibData::GetPixelStats(pixelStatsData.data(), eventData, nRoi); 1043 1044 1045 for (vector<PixelMapEntry>::const_iterator it=fPixelMap.begin(); it!=fPixelMap.end(); it++) 1046 { 1047 RMSvalues[it->index] = pixelStatsData[1*1440+it->hw()]; 1048 } 1049 1039 1050 /* 1040 1051 … … 1050 1061 } 1051 1062 */ 1052 updateGL(); 1063 if (isVisible()) 1064 updateGL(); 1053 1065 emit signalCurrentEvent(eventNum); 1054 1066 emit signalCurrentPixel(selectedPixel); … … 1189 1201 entireCameraScale->setChecked(true); 1190 1202 1203 GLWindow_2->enableText(false); 1204 1191 1205 QObject::connect(GLWindow, SIGNAL(colorPaletteHasChanged()), 1192 1206 this, SLOT(on_autoScaleColor_clicked())); … … 1471 1485 void UIConnector::currentEventHasChanged(int ) 1472 1486 { 1487 1488 GLWindow_2->SetData(GLWindow->RMSvalues); 1489 if (GLWindow_2->isVisible()) 1490 GLWindow_2->updateGL(); 1473 1491 ostringstream str; 1474 1492 // str << "Displaying Event " << cEvent; -
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h
r12189 r12297 96 96 int selectedPixel; 97 97 float *eventData; 98 float *rmsData; 98 99 int16_t* rawEventData; 99 100 int16_t* waveLetArray; 101 valarray<double> RMSvalues;//(1440); 100 102 101 103 private: -
trunk/FACT++/gui/RawEventsViewer/viewer.ui
r12190 r12297 16 16 <widget class="QWidget" name="centralwidget"> 17 17 <layout class="QGridLayout" name="gridLayout_2"> 18 <item row="0" column=" 1">18 <item row="0" column="0"> 19 19 <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="10,0"> 20 20 <item> … … 201 201 </layout> 202 202 </widget> 203 <widget class="QWidget" name="tab_2"> 204 <attribute name="title"> 205 <string>RMS</string> 206 </attribute> 207 <layout class="QGridLayout" name="gridLayout_6"> 208 <item row="0" column="0"> 209 <widget class="QCameraWidget" name="GLWindow_2" native="true"> 210 <property name="enabled"> 211 <bool>true</bool> 212 </property> 213 <property name="sizePolicy"> 214 <sizepolicy hsizetype="Maximum" vsizetype="Maximum"> 215 <horstretch>0</horstretch> 216 <verstretch>0</verstretch> 217 </sizepolicy> 218 </property> 219 <property name="maximumSize"> 220 <size> 221 <width>10000</width> 222 <height>10000</height> 223 </size> 224 </property> 225 </widget> 226 </item> 227 </layout> 228 </widget> 203 229 </widget> 204 230 </item> … … 213 239 <widget class="QLabel" name="label"> 214 240 <property name="text"> 215 <string>FACT - Raw events viewer - v0. 3</string>241 <string>FACT - Raw events viewer - v0.4</string> 216 242 </property> 217 243 </widget> … … 475 501 </layout> 476 502 </item> 477 <item row="1" column=" 1">503 <item row="1" column="0"> 478 504 <layout class="QGridLayout" name="gridLayout"> 479 505 <item row="0" column="7"> … … 1012 1038 <extends>QGLWidget</extends> 1013 1039 <header>RawEventsViewer.h</header> 1040 </customwidget> 1041 <customwidget> 1042 <class>QCameraWidget</class> 1043 <extends>QWidget</extends> 1044 <header>../QCameraWidget.h</header> 1045 <container>1</container> 1014 1046 </customwidget> 1015 1047 </customwidgets>
Note:
See TracChangeset
for help on using the changeset viewer.