casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes
casa::SpecFitSettingsWidgetRadio Class Reference

#include <SpecFitSettingsWidgetRadio.qo.h>

Inheritance diagram for casa::SpecFitSettingsWidgetRadio:
casa::ProfileTaskFacilitator

List of all members.

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 &centerStr, 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 &centerStr, 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
ImageProfileFitterfitter
SpecFitThread * specFitThread
QProgressDialog progressDialog
GaussianEstimateDialog gaussEstimateDialog
QString outputLogPath
QString displayYUnits
QString imageYUnits
QList< QList< SpecFit * > > curveList
int SUM_FIT_INDEX
volatile bool fitCancelled

Detailed Description

Definition at line 44 of file SpecFitSettingsWidgetRadio.qo.h.


Member Enumeration Documentation

Enumerator:
PEAK 
CENTER 
FWHM 
FIXED 
END_COLUMN 

Definition at line 111 of file SpecFitSettingsWidgetRadio.qo.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::SpecFitSettingsWidgetRadio::addCurveName ( const QString &  curveName) [virtual]

Reimplemented from casa::ProfileTaskFacilitator.

SpectralList casa::SpecFitSettingsWidgetRadio::buildSpectralList ( int  nGauss,
Bool validList 
) [private]
void casa::SpecFitSettingsWidgetRadio::clean ( ) [private, slot]
void casa::SpecFitSettingsWidgetRadio::clear ( ) [private, virtual]

Reimplemented from casa::ProfileTaskFacilitator.

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::fitDone ( bool  newData = true) [private, slot]
void casa::SpecFitSettingsWidgetRadio::fitRatioChanged ( int  count) [private, slot]
void casa::SpecFitSettingsWidgetRadio::gaussCountChanged ( int  count) [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]
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::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::setRange ( double  start,
double  end 
) [virtual]
void casa::SpecFitSettingsWidgetRadio::setUnits ( QString  units) [virtual]
void casa::SpecFitSettingsWidgetRadio::specFitEstimateSpecified ( double  xValue,
double  yValue,
bool  centerPeak 
) [private, slot]
double casa::SpecFitSettingsWidgetRadio::toPixels ( double  val) const [private]

Member Data Documentation

Definition at line 122 of file SpecFitSettingsWidgetRadio.qo.h.

Definition at line 120 of file SpecFitSettingsWidgetRadio.qo.h.

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.

Definition at line 121 of file SpecFitSettingsWidgetRadio.qo.h.

Definition at line 119 of file SpecFitSettingsWidgetRadio.qo.h.

Definition at line 115 of file SpecFitSettingsWidgetRadio.qo.h.

Definition at line 114 of file SpecFitSettingsWidgetRadio.qo.h.

Definition at line 123 of file SpecFitSettingsWidgetRadio.qo.h.

Ui::SpecFitSettingsWidgetRadio casa::SpecFitSettingsWidgetRadio::ui [private]

Definition at line 112 of file SpecFitSettingsWidgetRadio.qo.h.


The documentation for this class was generated from the following file: