Changeset 11922 for trunk/FACT++
- Timestamp:
- 08/31/11 15:42:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r11918 r11922 1047 1047 1048 1048 calibrationLoaded = true; 1049 1049 1050 emit newFileLoaded(); 1050 1051 if (drawCalibrationLoaded) … … 1236 1237 currentFile = "none"; 1237 1238 currentCalibFile = "none"; 1239 1238 1240 } 1239 1241 void UIConnector::slicesPlusPlus() … … 1596 1598 str << "NB Evts Bad: " << viewer->nbBad << '\n'; 1597 1599 extraInfoLabel->setText(QString(str.str().c_str())); 1600 1601 if (viewer->calibrationLoaded) 1602 { 1603 drawCalibrationCheckBox->setEnabled(true); 1604 } 1598 1605 1599 1606 … … 2120 2127 pixelValueCurveItem.attach(pixelValueCurve); 2121 2128 // aMeanCurveItem.attach(pixelValueCurve); 2122 vCorrCurveItem.attach(pixelValueCurve);2129 // vCorrCurveItem.attach(pixelValueCurve); 2123 2130 // meanCurveItem.attach(pixelValueCurve); 2124 2131 … … 2159 2166 } 2160 2167 2161 viewer->computePulsesStatistics();2168 // viewer->computePulsesStatistics(); 2162 2169 #if QWT_VERSION < 0x060000 2163 2170 pixelValueCurveItem.setData(xval, yval, viewer->nRoi); 2164 aMeanCurveItem.setData(xval, viewer->aMeas, viewer->nRoi);2165 meanCurveItem.setData(xval, viewer->n1mean, viewer->nRoi);2166 vCorrCurveItem.setData(xval, viewer->vCorr, viewer->nRoi-3);2171 //// aMeanCurveItem.setData(xval, viewer->aMeas, viewer->nRoi); 2172 // meanCurveItem.setData(xval, viewer->n1mean, viewer->nRoi); 2173 // vCorrCurveItem.setData(xval, viewer->vCorr, viewer->nRoi-3); 2167 2174 #else 2168 2175 pixelValueCurveItem.setSamples(xval, yval, viewer->nRoi); 2169 aMeanCurveItem.setSamples(xval, viewer->aMeas, viewer->nRoi);2170 meanCurveItem.setSamples(xval, viewer->n1mean, viewer->nRoi);2171 vCorrCurveItem.setSamples(xval, viewer->vCorr, viewer->nRoi-3);2176 // aMeanCurveItem.setSamples(xval, viewer->aMeas, viewer->nRoi); 2177 // meanCurveItem.setSamples(xval, viewer->n1mean, viewer->nRoi); 2178 // vCorrCurveItem.setSamples(xval, viewer->vCorr, viewer->nRoi-3); 2172 2179 #endif 2173 2180 … … 2201 2208 qstr = qstr.fromStdString(str.str()); 2202 2209 emit updateCurrentPixelSliceValue(qstr); 2210 autoScalePressed(); 2203 2211 2204 2212 } … … 2286 2294 { 2287 2295 if (!autoScaleColor->isChecked()) 2296 { 2297 viewer->ss[0] = 0; 2298 viewer->ss[1] = 0.25; 2299 viewer->ss[2] = 0.5; 2300 viewer->ss[3] = 0.75; 2301 viewer->ss[4] = 1; 2302 range0->setValue(viewer->ss[0]); 2303 range1->setValue(viewer->ss[1]); 2304 range2->setValue(viewer->ss[2]); 2305 range3->setValue(viewer->ss[3]); 2306 range4->setValue(viewer->ss[4]); 2288 2307 return; 2308 } 2289 2309 if (!viewer->nRoi) 2290 2310 return; … … 2361 2381 currentPixelScale->setChecked(true); 2362 2382 } 2383 autoScalePressed(); 2363 2384 } 2364 2385 void UIConnector::currentPixelChanged(bool state) … … 2375 2396 entireCameraScale->setChecked(true); 2376 2397 } 2398 autoScalePressed(); 2377 2399 } 2378 2400 … … 2546 2568 connector.range4 = myUi.colorRange4; 2547 2569 connector.drawCalibrationCheckBox = myUi.calibratedCheckBox; 2570 connector.drawCalibrationCheckBox->setEnabled(false); 2548 2571 2549 2572 connector.initHistograms();
Note:
See TracChangeset
for help on using the changeset viewer.