#include "SpecFitSettingsWidgetRadio.qo.h"
#include <imageanalysis/ImageAnalysis/ImageProfileFitter.h>
#include <imageanalysis/IO/ImageProfileFitterResults.h>
#include <imageanalysis/ImageAnalysis/ProfileFitResults.h>
#include <components/SpectralComponents/PCFSpectralElement.h>
#include <coordinates/Coordinates/SpectralCoordinate.h>
#include <display/QtPlotter/QtCanvas.qo.h>
#include <display/QtPlotter/SpecFitLogDialog.qo.h>
#include <display/QtPlotter/SpecFitSettingsFixedTableCell.qo.h>
#include <display/QtPlotter/SpecFit.h>
#include <display/QtPlotter/SpecFitPolynomial.h>
#include <display/QtPlotter/SpecFitGaussian.h>
#include <display/QtPlotter/Util.h>
#include <display/QtPlotter/ProfileTaskMonitor.h>
#include <display/QtPlotter/conversion/Converter.h>
#include <display/QtPlotter/conversion/ConverterChannel.h>
#include <display/QtPlotter/conversion/ConverterIntensity.h>
#include <display/Display/Options.h>
#include <QFileDialog>
#include <QTemporaryFile>
#include <QMutableMapIterator>
#include <QList>
#include <QDebug>
#include <QThread>
#include <sys/time.h>
#include <limits>
#include <cmath>
using namespace casacore;
namespace casa {
class SpecFitThread : public QThread {
public:
SpecFitThread( ImageProfileFitter* profileFitter );
void run();
void setChannelWarning( const QString& warn );
void setStartValue( float val );
void setEndValue( float val );
float getStartValue() const;
float getEndValue() const;
QString getChannelWarning() const;
String getErrorMessage() const;
const Record& getResults() const;
private:
ImageProfileFitter* fitter;
Record results;
float startValue;
float endValue;
QString channelWarning;
String errorMsg;
};
const Record& SpecFitThread::getResults() const {
return results;
}
String SpecFitThread::getErrorMessage() const {
return errorMsg;
}
QString SpecFitThread::getChannelWarning() const {