casa
5.7.0-16
|
#include <SpecFitSettingsWidgetRadio.qo.h>
Signals | |
void | gaussEstimateCountChanged (int count) |
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) |
Public Member Functions inherited from casa::ProfileTaskFacilitator | |
ProfileTaskFacilitator () | |
virtual | ~ProfileTaskFacilitator () |
virtual void | setTaskMonitor (ProfileTaskMonitor *monitor) |
virtual void | setLogger (casacore::LogIO *log) |
virtual void | plotMainCurve () |
virtual QString | getFileName () |
virtual void | logWarning (casacore::String msg, bool opticalSource=false) |
virtual void | postStatus (casacore::String status, bool opticalSource=false) |
virtual casacore::Vector < casacore::Float > | getXValues () const |
virtual casacore::Vector < casacore::Float > | getYValues () const |
virtual casacore::Vector < casacore::Float > | getZValues () const |
virtual casacore::Vector < casacore::Double > | getRegionXValues () const |
virtual casacore::Vector < casacore::Double > | getRegionYValues () const |
virtual QString | getYUnit () const |
virtual QString | getYUnitPrefix () const |
virtual casacore::String | getXAxisUnit () const |
virtual const std::shared_ptr < const casacore::ImageInterface < casacore::Float > > | getImage (const QString &name="") const |
virtual const casacore::String | getPixelBox () const |
virtual const casacore::String | getRegionShape () const |
bool | isOptical () |
void | setOptical (bool optical) |
void | setCollapseVals (const casacore::Vector< casacore::Float > &spcVals) |
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 | |
bool | _constructFitter (std::shared_ptr< const casacore::ImageInterface< float > > &image, const casacore::String ®ion, const casacore::Record *const ®ionPtr, const casacore::String &box, const casacore::String &chans, const casacore::String &stokes, const casacore::String &mask, const int axis, const casacore::uInt ngauss, const SpectralList &spectralList) |
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. More... | |
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) |
casacore::String | getChannels (float startVal, float endVal, const casacore::Vector< float > &specValues) const |
void | getFitBounds (float &startVal, float &endVal) const |
int | getFitCount (int &startChannelIndex, int &endChannelIndex) |
void | setFitEstimate (int row, double xValue, double yValue, bool centerPeak) |
void | clearEstimates () |
void | clear () |
void | emptyCurveList () |
void | resolveOutputLogFile () |
void | getConversion (const casacore::String &unitStr, bool &velocity, bool &wavelength) const |
Decides if the units represent velocity, wavelength, or frequency. More... | |
bool | processFitResults (casacore::Vector< float > &xValues, casacore::Vector< float > &xValuesPix, const casacore::String &yUnit) |
void | getEstimateStrings (int index, QString &peakStr, QString ¢erStr, QString &fwhmStr) const |
bool | processFitResultGaussian (const SpectralElement *solution, int index, QList< SpecFit * > &curves, const casacore::String &yUnit) |
bool | processFitResultPolynomial (const SpectralElement *solution, QList< SpecFit * > &curves) |
bool | isInRange (double xValue) const |
QString | settingsToString () const |
double | toPixels (double val, casacore::String units, casacore::SpectralCoordinate &coord) const |
void | drawCurves (int pixelX, int pixelY) |
Private Attributes | |
Ui::SpecFitSettingsWidgetRadio | ui |
ImageProfileFitter * | fitter |
SpecFitThread * | specFitThread |
QProgressDialog | progressDialog |
GaussianEstimateDialog | gaussEstimateDialog |
casacore::Record | regionRecord |
QString | outputLogPath |
QString | displayYUnits |
QString | imageYUnits |
QList< QList< SpecFit * > > | curveList |
int | SUM_FIT_INDEX |
bool | viewerSettingsWritten |
volatile bool | fitCancelled |
Additional Inherited Members | |
Protected Member Functions inherited from casa::ProfileTaskFacilitator | |
bool | isValidChannelRangeValue (QString str, const QString &endStr) |
void | findChannelRange (float startVal, float endVal, const casacore::Vector< casacore::Float > &specValues, casacore::Int &channelStartIndex, casacore::Int &channelEndIndex) |
Protected Attributes inherited from casa::ProfileTaskFacilitator | |
QtCanvas * | pixelCanvas |
ProfileTaskMonitor * | taskMonitor |
casacore::LogIO * | logger |
Definition at line 44 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Enumerator | |
---|---|
PEAK | |
CENTER | |
FWHM | |
FIXED | |
END_COLUMN |
Definition at line 117 of file SpecFitSettingsWidgetRadio.qo.h.
casa::SpecFitSettingsWidgetRadio::SpecFitSettingsWidgetRadio | ( | QWidget * | parent = 0 | ) |
casa::SpecFitSettingsWidgetRadio::~SpecFitSettingsWidgetRadio | ( | ) |
|
private |
|
virtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
private |
|
privateslot |
|
privateslot |
|
privatevirtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
private |
|
private |
|
private |
|
private |
|
privateslot |
|
privateslot |
|
privateslot |
|
signal |
|
privateslot |
|
private |
|
private |
Decides if the units represent velocity, wavelength, or frequency.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
privateslot |
|
private |
|
private |
|
private |
|
virtual |
Implements casa::ProfileTaskFacilitator.
|
private |
|
privateslot |
|
privatevirtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
virtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
virtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
private |
Places the passed in Gaussian estimate val into the indicated row and column of the initial Gaussian estimate table.
|
private |
|
virtual |
Reimplemented from casa::ProfileTaskFacilitator.
|
privateslot |
|
virtual |
Implements casa::ProfileTaskFacilitator.
|
private |
|
virtual |
Implements casa::ProfileTaskFacilitator.
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
privateslot |
|
private |
Definition at line 129 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 127 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 132 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 119 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 122 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 128 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 126 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 121 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 123 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 120 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 130 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 118 of file SpecFitSettingsWidgetRadio.qo.h.
|
private |
Definition at line 131 of file SpecFitSettingsWidgetRadio.qo.h.