casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::FitWidget Class Reference

Main class for handling the pluggable fit functionality for the histogram. More...

#include <FitWidget.qo.h>

Inheritance diagram for casa::FitWidget:

Public Slots

void clearFit ()
 

Signals

void fitModeChanged ()
 
void dataFitted (const QString &msg)
 
void gaussianFitChanged ()
 
void poissonFitChanged ()
 
void fitCleared ()
 

Public Member Functions

 FitWidget (QWidget *parent=0)
 
void setCenterPeak (double center, double peak)
 
void setFWHM (double fwhm)
 
void setLambda (double lambda)
 
void setUnits (const QString &units)
 
void setValues (int id, casacore::Vector< float > xValues, casacore::Vector< float > yValues)
 
double getCenter () const
 
double getPeak () const
 
double getFWHM () const
 
double getLambda () const
 
casacore::Vector< float > getFitValues () const
 
casacore::Vector< float > getFitValuesX () const
 
bool isGaussian () const
 
void toAscii (QTextStream &out) const
 
void restrictDomain (double xMin, double xMax)
 
void clearDomainLimits ()
 
 ~FitWidget ()
 

Private Types

enum  FitMode {
  GAUSSIAN_MODE,
  POISSON_MODE,
  NO_MODE
}
 

Private Slots

void centerEdited (const QString &centerText)
 
void peakEdited (const QString &peakText)
 
void fwhmEdited (const QString &fwhmText)
 
void lambdaEdited (const QString &lambdaText)
 
void fitSelected (int index)
 
void doFit ()
 

Private Member Functions

 FitWidget (const FitWidget &)
 
FitWidgetoperator= (const FitWidget &)
 
void setSolutionVisible (bool visible)
 
void resetFWHM (double newCenter)
 

Private Attributes

Fitterfitter
 
FitterGaussianfitterGaussian
 
FitterPoissonfitterPoisson
 
Ui::FitWidgetClass ui
 
int fitId
 

Detailed Description

Main class for handling the pluggable fit functionality for the histogram.

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

Member Enumeration Documentation

Enumerator
GAUSSIAN_MODE 
POISSON_MODE 
NO_MODE 

Definition at line 89 of file FitWidget.qo.h.

Constructor & Destructor Documentation

casa::FitWidget::FitWidget ( QWidget *  parent = 0)
casa::FitWidget::~FitWidget ( )
casa::FitWidget::FitWidget ( const FitWidget )
private

Member Function Documentation

void casa::FitWidget::centerEdited ( const QString &  centerText)
privateslot
void casa::FitWidget::clearDomainLimits ( )
void casa::FitWidget::clearFit ( )
slot
void casa::FitWidget::dataFitted ( const QString &  msg)
signal
void casa::FitWidget::doFit ( )
privateslot
void casa::FitWidget::fitCleared ( )
signal
void casa::FitWidget::fitModeChanged ( )
signal
void casa::FitWidget::fitSelected ( int  index)
privateslot
void casa::FitWidget::fwhmEdited ( const QString &  fwhmText)
privateslot
void casa::FitWidget::gaussianFitChanged ( )
signal
double casa::FitWidget::getCenter ( ) const
casacore::Vector<float> casa::FitWidget::getFitValues ( ) const
casacore::Vector<float> casa::FitWidget::getFitValuesX ( ) const
double casa::FitWidget::getFWHM ( ) const
double casa::FitWidget::getLambda ( ) const
double casa::FitWidget::getPeak ( ) const
bool casa::FitWidget::isGaussian ( ) const
void casa::FitWidget::lambdaEdited ( const QString &  lambdaText)
privateslot
FitWidget& casa::FitWidget::operator= ( const FitWidget )
private
void casa::FitWidget::peakEdited ( const QString &  peakText)
privateslot
void casa::FitWidget::poissonFitChanged ( )
signal
void casa::FitWidget::resetFWHM ( double  newCenter)
private
void casa::FitWidget::restrictDomain ( double  xMin,
double  xMax 
)
void casa::FitWidget::setCenterPeak ( double  center,
double  peak 
)
void casa::FitWidget::setFWHM ( double  fwhm)
void casa::FitWidget::setLambda ( double  lambda)
void casa::FitWidget::setSolutionVisible ( bool  visible)
private
void casa::FitWidget::setUnits ( const QString &  units)
void casa::FitWidget::setValues ( int  id,
casacore::Vector< float >  xValues,
casacore::Vector< float >  yValues 
)
void casa::FitWidget::toAscii ( QTextStream &  out) const

Member Data Documentation

int casa::FitWidget::fitId
private

Definition at line 94 of file FitWidget.qo.h.

Fitter* casa::FitWidget::fitter
private

Definition at line 90 of file FitWidget.qo.h.

FitterGaussian* casa::FitWidget::fitterGaussian
private

Definition at line 91 of file FitWidget.qo.h.

FitterPoisson* casa::FitWidget::fitterPoisson
private

Definition at line 92 of file FitWidget.qo.h.

Ui::FitWidgetClass casa::FitWidget::ui
private

Definition at line 93 of file FitWidget.qo.h.


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