Changeset 12297
- Timestamp:
- 10/27/11 14:42:09 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/Makefile.am
r12202 r12297 1 include aminclude.am1 #include aminclude.am 2 2 3 3 #------------------------------------------------------------------------- … … 328 328 329 329 fitsdump_SOURCES = src/fitsdump.cc 330 fitsdump_LDADD = libConfiguration.la 330 fitsdump_LDADD = libConfiguration.la libTime.la 331 331 332 332 readfits_SOURCES = src/readfits.cc src/ReadFits.h … … 368 368 viewer_QT_SOURCES = \ 369 369 gui/RawEventsViewer/RawEventsViewer.cc \ 370 gui/BasicGlCamera.cc 370 gui/BasicGlCamera.cc \ 371 gui/QCameraWidget.cc 371 372 372 373 viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc) -
trunk/FACT++/gui/BasicGlCamera.cc
r12180 r12297 46 46 logScale = false; 47 47 cameraRotation = 0; 48 fTextEnabled = true; 48 49 unitsText = ""; 49 50 titleText = ""; … … 294 295 295 296 } 297 void BasicGlCamera::enableText(bool on) 298 { 299 fTextEnabled = on; 300 } 296 301 void BasicGlCamera::setPatchColor(int id, float color[3]) 297 302 { … … 435 440 void BasicGlCamera::DrawCameraText() 436 441 { 442 if (!fTextEnabled) 443 return; 437 444 glPushMatrix(); 438 445 glLoadIdentity(); -
trunk/FACT++/gui/BasicGlCamera.h
r12180 r12297 84 84 void updateCamera(); 85 85 void assignPixelMap(const PixelMap& ); 86 void enableText(bool); 87 88 bool fTextEnabled; 86 89 87 90 float ss[5];// = {0.00, 0.25, 0.5, 0.75, 1.00}; -
trunk/FACT++/gui/QCameraWidget.cc
r12209 r12297 88 88 void QCameraWidget::DrawCameraText() 89 89 { 90 if (!fTextEnabled) return; 91 90 92 glPushMatrix(); 91 93 glLoadIdentity(); -
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.