casa
$Rev:20696$
|
#include <SpecFitSettingsWidgetRadio.qo.h>
Public Member Functions | |
SpecFitSettingsWidgetRadio (QWidget *parent=0) | |
~SpecFitSettingsWidgetRadio () | |
void | setUnits (QString units) |
void | setDisplayYUnits (const QString &units) |
void | setImageYUnits (const QString &units) |
void | setCurveName (const QString &curveName) |
void | addCurveName (const QString &curveName) |
void | setRange (double start, double end) |
void | reset () |
void | pixelsChanged (int pixX, int pixY) |
Private Types | |
enum | TableHeaders { PEAK, CENTER, FWHM, FIXED, END_COLUMN } |
Private Slots | |
void | polyFitChanged (int state) |
void | gaussCountChanged (int count) |
void | fitRatioChanged (int count) |
void | clean () |
void | specLineFit () |
void | setOutputLogFile () |
void | viewOutputLogFile () |
void | saveOutputChanged (int state) |
void | specFitEstimateSpecified (double xValue, double yValue, bool centerPeak) |
void | fitDone (bool newData=true) |
void | cancelFit () |
void | specifyGaussianEstimates () |
void | gaussianEstimatesChanged () |
Private Member Functions | |
void | setEstimateValue (int row, int col, double val) |
Places the passed in Gaussian estimate val into the indicated row and column of the initial Gaussian estimate table. | |
bool | isValidEstimate (QString &peakStr, QString ¢erStr, QString &fwhmStr, QString &fixedStr, int rowIndex) |
SpectralList | buildSpectralList (int nGauss, Bool &validList) |
bool | isValidFitSpecification (int gaussCount, bool polyFit) |
void | setCanvas (QtCanvas *canvas) |
void | doFit (float startVal, float endVal, uint gaussCount, bool fitPoly, int polyN) |
String | getChannels (float startVal, float endVal, const Vector< Float > &specValues) const |
void | getFitBounds (Float &startVal, Float &endVal) const |
int | getFitCount (Int &startChannelIndex, Int &endChannelIndex) |
void | clearEstimates () |
void | clear () |
void | emptyCurveList () |
void | resolveOutputLogFile () |
void | getConversion (const String &unitStr, Bool &velocity, Bool &wavelength) const |
Decides if the units represent velocity, wavelength, or frequency. | |
bool | processFitResults (Vector< float > &xValues, Vector< float > &xValuesPix) |
void | getEstimateStrings (int index, QString &peakStr, QString ¢erStr, QString &fwhmStr) const |
bool | processFitResultGaussian (const SpectralElement *solution, int index, QList< SpecFit * > &curves) |
bool | processFitResultPolynomial (const SpectralElement *solution, QList< SpecFit * > &curves) |
bool | isInRange (double xValue) const |
QString | settingsToString () const |
double | toPixels (double val) const |
void | drawCurves (int pixelX, int pixelY) |
SpectralCoordinate | getSpectralCoordinate () const |
Private Attributes | |
Ui::SpecFitSettingsWidgetRadio | ui |
ImageProfileFitter * | fitter |
SpecFitThread * | specFitThread |
QProgressDialog | progressDialog |
GaussianEstimateDialog | gaussEstimateDialog |
QString | outputLogPath |
QString | displayYUnits |
QString | imageYUnits |
QList< QList< SpecFit * > > | curveList |
int | SUM_FIT_INDEX |
volatile bool | fitCancelled |
Definition at line 44 of file SpecFitSettingsWidgetRadio.qo.h.
enum casa::SpecFitSettingsWidgetRadio::TableHeaders [private] |
Definition at line 111 of file SpecFitSettingsWidgetRadio.qo.h.
casa::SpecFitSettingsWidgetRadio::SpecFitSettingsWidgetRadio | ( | QWidget * | parent = 0 | ) |
void casa::SpecFitSettingsWidgetRadio::addCurveName | ( | const QString & | curveName | ) | [virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
SpectralList casa::SpecFitSettingsWidgetRadio::buildSpectralList | ( | int | nGauss, |
Bool & | validList | ||
) | [private] |
void casa::SpecFitSettingsWidgetRadio::cancelFit | ( | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::clean | ( | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::clear | ( | ) | [private, virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::clearEstimates | ( | ) | [private] |
void casa::SpecFitSettingsWidgetRadio::doFit | ( | float | startVal, |
float | endVal, | ||
uint | gaussCount, | ||
bool | fitPoly, | ||
int | polyN | ||
) | [private] |
void casa::SpecFitSettingsWidgetRadio::drawCurves | ( | int | pixelX, |
int | pixelY | ||
) | [private] |
void casa::SpecFitSettingsWidgetRadio::emptyCurveList | ( | ) | [private] |
void casa::SpecFitSettingsWidgetRadio::fitDone | ( | bool | newData = true | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::fitRatioChanged | ( | int | count | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::gaussCountChanged | ( | int | count | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::gaussianEstimatesChanged | ( | ) | [private, slot] |
String casa::SpecFitSettingsWidgetRadio::getChannels | ( | float | startVal, |
float | endVal, | ||
const Vector< Float > & | specValues | ||
) | const [private] |
void casa::SpecFitSettingsWidgetRadio::getConversion | ( | const String & | unitStr, |
Bool & | velocity, | ||
Bool & | wavelength | ||
) | const [private] |
Decides if the units represent velocity, wavelength, or frequency.
void casa::SpecFitSettingsWidgetRadio::getEstimateStrings | ( | int | index, |
QString & | peakStr, | ||
QString & | centerStr, | ||
QString & | fwhmStr | ||
) | const [private] |
void casa::SpecFitSettingsWidgetRadio::getFitBounds | ( | Float & | startVal, |
Float & | endVal | ||
) | const [private] |
int casa::SpecFitSettingsWidgetRadio::getFitCount | ( | Int & | startChannelIndex, |
Int & | endChannelIndex | ||
) | [private] |
SpectralCoordinate casa::SpecFitSettingsWidgetRadio::getSpectralCoordinate | ( | ) | const [private] |
bool casa::SpecFitSettingsWidgetRadio::isInRange | ( | double | xValue | ) | const [private] |
bool casa::SpecFitSettingsWidgetRadio::isValidEstimate | ( | QString & | peakStr, |
QString & | centerStr, | ||
QString & | fwhmStr, | ||
QString & | fixedStr, | ||
int | rowIndex | ||
) | [private] |
bool casa::SpecFitSettingsWidgetRadio::isValidFitSpecification | ( | int | gaussCount, |
bool | polyFit | ||
) | [private] |
void casa::SpecFitSettingsWidgetRadio::pixelsChanged | ( | int | pixX, |
int | pixY | ||
) | [virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::polyFitChanged | ( | int | state | ) | [private, slot] |
bool casa::SpecFitSettingsWidgetRadio::processFitResultGaussian | ( | const SpectralElement * | solution, |
int | index, | ||
QList< SpecFit * > & | curves | ||
) | [private] |
bool casa::SpecFitSettingsWidgetRadio::processFitResultPolynomial | ( | const SpectralElement * | solution, |
QList< SpecFit * > & | curves | ||
) | [private] |
bool casa::SpecFitSettingsWidgetRadio::processFitResults | ( | Vector< float > & | xValues, |
Vector< float > & | xValuesPix | ||
) | [private] |
void casa::SpecFitSettingsWidgetRadio::reset | ( | ) | [virtual] |
Implements casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::resolveOutputLogFile | ( | ) | [private] |
void casa::SpecFitSettingsWidgetRadio::saveOutputChanged | ( | int | state | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::setCanvas | ( | QtCanvas * | canvas | ) | [private, virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::setCurveName | ( | const QString & | curveName | ) | [virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::setDisplayYUnits | ( | const QString & | units | ) | [virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::setEstimateValue | ( | int | row, |
int | col, | ||
double | val | ||
) | [private] |
Places the passed in Gaussian estimate val into the indicated row and column of the initial Gaussian estimate table.
void casa::SpecFitSettingsWidgetRadio::setImageYUnits | ( | const QString & | units | ) | [virtual] |
Reimplemented from casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::setOutputLogFile | ( | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::setRange | ( | double | start, |
double | end | ||
) | [virtual] |
Implements casa::ProfileTaskFacilitator.
QString casa::SpecFitSettingsWidgetRadio::settingsToString | ( | ) | const [private] |
void casa::SpecFitSettingsWidgetRadio::setUnits | ( | QString | units | ) | [virtual] |
Implements casa::ProfileTaskFacilitator.
void casa::SpecFitSettingsWidgetRadio::specFitEstimateSpecified | ( | double | xValue, |
double | yValue, | ||
bool | centerPeak | ||
) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::specifyGaussianEstimates | ( | ) | [private, slot] |
void casa::SpecFitSettingsWidgetRadio::specLineFit | ( | ) | [private, slot] |
double casa::SpecFitSettingsWidgetRadio::toPixels | ( | double | val | ) | const [private] |
void casa::SpecFitSettingsWidgetRadio::viewOutputLogFile | ( | ) | [private, slot] |
QList<QList<SpecFit*> > casa::SpecFitSettingsWidgetRadio::curveList [private] |
Definition at line 122 of file SpecFitSettingsWidgetRadio.qo.h.
QString casa::SpecFitSettingsWidgetRadio::displayYUnits [private] |
Definition at line 120 of file SpecFitSettingsWidgetRadio.qo.h.
volatile bool casa::SpecFitSettingsWidgetRadio::fitCancelled [private] |
Definition at line 125 of file SpecFitSettingsWidgetRadio.qo.h.
Definition at line 113 of file SpecFitSettingsWidgetRadio.qo.h.
Definition at line 116 of file SpecFitSettingsWidgetRadio.qo.h.
QString casa::SpecFitSettingsWidgetRadio::imageYUnits [private] |
Definition at line 121 of file SpecFitSettingsWidgetRadio.qo.h.
QString casa::SpecFitSettingsWidgetRadio::outputLogPath [private] |
Definition at line 119 of file SpecFitSettingsWidgetRadio.qo.h.
QProgressDialog casa::SpecFitSettingsWidgetRadio::progressDialog [private] |
Definition at line 115 of file SpecFitSettingsWidgetRadio.qo.h.
SpecFitThread* casa::SpecFitSettingsWidgetRadio::specFitThread [private] |
Definition at line 114 of file SpecFitSettingsWidgetRadio.qo.h.
int casa::SpecFitSettingsWidgetRadio::SUM_FIT_INDEX [private] |
Definition at line 123 of file SpecFitSettingsWidgetRadio.qo.h.
Ui::SpecFitSettingsWidgetRadio casa::SpecFitSettingsWidgetRadio::ui [private] |
Definition at line 112 of file SpecFitSettingsWidgetRadio.qo.h.