36 if (get_Destination().length()>0) {
37 dst = ds->image(get_Destination());
40 dst = ds->newImage(get_Destination());
46 if (get_Integrated().length()>0) {
47 integ = ds->integratedData(get_Integrated());
50 integ = ds->newIntegratedData(get_Integrated(), 0);
56 if (get_ColumnScan().length()>0) {
57 cols = ds->columnScan(get_ColumnScan());
60 cols = ds->newColumnScan(get_ColumnScan());
64 if (img && dst && integ && cols) {
65 int nCols = img->get_Width();
66 int nRows = img->get_Height();
68 dst->resize(nCols, nRows);
71 cols->appendColumn(img->get_HLabel());
72 cols->appendColumn(
"avg");
73 cols->appendColumn(
"amp");
74 cols->appendColumn(
"amp/avg");
75 cols->resizeRows(nCols);
79 dst->set_HStart(img->get_HStart());
80 dst->set_HStep(img->get_HStep());
81 dst->set_HUnits(img->get_HUnits());
82 dst->set_HLabel(img->get_HLabel());
84 dst->set_VStart(img->get_VStart());
85 dst->set_VStep(img->get_VStep());
86 dst->set_VUnits(img->get_VUnits());
87 dst->set_VLabel(img->get_VLabel());
89 dst->set_Title(img->get_Title());
90 cols->set_Title(img->get_Title());
91 integ->set_Title(img->get_Title());
93 QVector< QFuture<void> > res;
95 for (
int i=0; i<nCols; i++) {
99 for (
int i=0; i<nCols; i++) {
100 res[i].waitForFinished();
103 for (
int i=0; i<nCols; i++) {
104 integ->setValue(i, cols->value(0,i), cols->value(1,i));
107 if (get_SelfNormalize()) {
108 integ->selfNormalize(get_SelfNormalizeMin(), get_SelfNormalizeMax());
114 proc->displayIntegratedData(integ);
QSharedPointer< QxrdExperiment > QxrdExperimentPtr
QSharedPointer< QcepDataColumnScan > QcepDataColumnScanPtr
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
QxrdExperimentWPtr m_Experiment
void executeCol(QcepDataColumnScanPtr integ, QcepDoubleImageDataPtr dst, QcepDoubleImageDataPtr img, int col)
QSharedPointer< QcepDatasetModel > QcepDatasetModelPtr
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr