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

#include <GaussianEstimateWidget.qo.h>

Inheritance diagram for casa::GaussianEstimateWidget:

Signals

void coordinatedValuesChanged (float)
 

Public Member Functions

 GaussianEstimateWidget (QWidget *parent=0)
 
void setCurveData (const casacore::Vector< float > &xValues, const casacore::Vector< float > &yValues)
 
void setCurveColor (QColor color)
 
void setTitle (const QString &titleStr)
 
void setRangeX (float xValue, float yValue)
 
void setRangeY (float xValue, float yValue)
 
void setDisplayYUnits (const QString &units)
 
void molecularLineChanged (float peak, float center, const QString &label, const QString &chemicalName, const QString &resolvedQNs, const QString &frequencyUnits)
 
SpecFitGaussian getEstimate ()
 
void setEstimate (const SpecFitGaussian &estimate)
 
void unitsChanged (const QString &oldUnits, const QString &newUnits, casacore::SpectralCoordinate &coord)
 
void setSliderValueFWHM (float value)
 
void updateUIBasedOnEstimate ()
 
void clearMolecularLines ()
 
 ~GaussianEstimateWidget ()
 

Static Public Member Functions

static void setEstimateColor (QColor estimateColor)
 

Private Slots

void peakSliderChanged (int value)
 
void centerSliderChanged (int value)
 
void fwhmSliderChanged (int value)
 
void peakTextChanged ()
 
void centerTextChanged ()
 
void fwhmTextChanged ()
 
void peakFixedChanged (bool fixed)
 
void centerFixedChanged (bool fixed)
 
void fwhmFixedChanged (bool fixed)
 

Private Member Functions

float scale (int value, float min, float max) const
 
float scaleY (int value) const
 
float scaleX (int value) const
 
int reverseScale (float value, float min, float max) const
 
int reverseScaleY (float value) const
 
int reverseScaleX (float value) const
 
float getFwhmRange () const
 
void peakChanged (float value)
 
void centerChanged (float value)
 
void fwhmChanged (float value)
 
void updateFit ()
 
void copyVectors (const casacore::Vector< float > &values, QVector< double > &vals, bool reverseOrder)
 
void copyVectors (const casacore::Vector< float > &sourceValues, casacore::Vector< float > &destinationValues, bool reverseOrder)
 
float adjustValue (float val) const
 
void setSliderValuePeak (float value)
 
void setSliderValueCenter (float value)
 
float reasonableFWHM (float value) const
 
float reasonableCenter (float value) const
 
float reasonablePeak (float value) const
 
QwtPlotCurve * initCurve (QColor color)
 
void clearCurve (QwtPlotCurve *&curve)
 

Private Attributes

QwtPlot * plot
 
QwtPlotCurve * curve
 
QwtPlotCurve * fitCurve
 
Ui::GaussianEstimateWidgetClass ui
 
SpecFitGaussian gaussianEstimate
 
casacore::Vector< float > xValues
 
casacore::Vector< float > yValues
 
float minX
 
float maxX
 
float minY
 
float maxY
 
QColor curveColor
 
QMap< QString, MolecularLine * > molecularLineMap
 

Static Private Attributes

static QColor fitCurveColor
 

Detailed Description

Definition at line 41 of file GaussianEstimateWidget.qo.h.

Constructor & Destructor Documentation

casa::GaussianEstimateWidget::GaussianEstimateWidget ( QWidget *  parent = 0)
casa::GaussianEstimateWidget::~GaussianEstimateWidget ( )

Member Function Documentation

float casa::GaussianEstimateWidget::adjustValue ( float  val) const
private
void casa::GaussianEstimateWidget::centerChanged ( float  value)
private
void casa::GaussianEstimateWidget::centerFixedChanged ( bool  fixed)
privateslot
void casa::GaussianEstimateWidget::centerSliderChanged ( int  value)
privateslot
void casa::GaussianEstimateWidget::centerTextChanged ( )
privateslot
void casa::GaussianEstimateWidget::clearCurve ( QwtPlotCurve *&  curve)
private
void casa::GaussianEstimateWidget::clearMolecularLines ( )
void casa::GaussianEstimateWidget::coordinatedValuesChanged ( float  )
signal
void casa::GaussianEstimateWidget::copyVectors ( const casacore::Vector< float > &  values,
QVector< double > &  vals,
bool  reverseOrder 
)
private
void casa::GaussianEstimateWidget::copyVectors ( const casacore::Vector< float > &  sourceValues,
casacore::Vector< float > &  destinationValues,
bool  reverseOrder 
)
private
void casa::GaussianEstimateWidget::fwhmChanged ( float  value)
private
void casa::GaussianEstimateWidget::fwhmFixedChanged ( bool  fixed)
privateslot
void casa::GaussianEstimateWidget::fwhmSliderChanged ( int  value)
privateslot
void casa::GaussianEstimateWidget::fwhmTextChanged ( )
privateslot
SpecFitGaussian casa::GaussianEstimateWidget::getEstimate ( )
float casa::GaussianEstimateWidget::getFwhmRange ( ) const
private
QwtPlotCurve* casa::GaussianEstimateWidget::initCurve ( QColor  color)
private
void casa::GaussianEstimateWidget::molecularLineChanged ( float  peak,
float  center,
const QString &  label,
const QString &  chemicalName,
const QString &  resolvedQNs,
const QString &  frequencyUnits 
)
void casa::GaussianEstimateWidget::peakChanged ( float  value)
private
void casa::GaussianEstimateWidget::peakFixedChanged ( bool  fixed)
privateslot
void casa::GaussianEstimateWidget::peakSliderChanged ( int  value)
privateslot
void casa::GaussianEstimateWidget::peakTextChanged ( )
privateslot
float casa::GaussianEstimateWidget::reasonableCenter ( float  value) const
private
float casa::GaussianEstimateWidget::reasonableFWHM ( float  value) const
private
float casa::GaussianEstimateWidget::reasonablePeak ( float  value) const
private
int casa::GaussianEstimateWidget::reverseScale ( float  value,
float  min,
float  max 
) const
private
int casa::GaussianEstimateWidget::reverseScaleX ( float  value) const
private
int casa::GaussianEstimateWidget::reverseScaleY ( float  value) const
private
float casa::GaussianEstimateWidget::scale ( int  value,
float  min,
float  max 
) const
private
float casa::GaussianEstimateWidget::scaleX ( int  value) const
private
float casa::GaussianEstimateWidget::scaleY ( int  value) const
private
void casa::GaussianEstimateWidget::setCurveColor ( QColor  color)
void casa::GaussianEstimateWidget::setCurveData ( const casacore::Vector< float > &  xValues,
const casacore::Vector< float > &  yValues 
)
void casa::GaussianEstimateWidget::setDisplayYUnits ( const QString &  units)
void casa::GaussianEstimateWidget::setEstimate ( const SpecFitGaussian estimate)
static void casa::GaussianEstimateWidget::setEstimateColor ( QColor  estimateColor)
static
void casa::GaussianEstimateWidget::setRangeX ( float  xValue,
float  yValue 
)
void casa::GaussianEstimateWidget::setRangeY ( float  xValue,
float  yValue 
)
void casa::GaussianEstimateWidget::setSliderValueCenter ( float  value)
private
void casa::GaussianEstimateWidget::setSliderValueFWHM ( float  value)
void casa::GaussianEstimateWidget::setSliderValuePeak ( float  value)
private
void casa::GaussianEstimateWidget::setTitle ( const QString &  titleStr)
void casa::GaussianEstimateWidget::unitsChanged ( const QString &  oldUnits,
const QString &  newUnits,
casacore::SpectralCoordinate coord 
)
void casa::GaussianEstimateWidget::updateFit ( )
private
void casa::GaussianEstimateWidget::updateUIBasedOnEstimate ( )

Member Data Documentation

QwtPlotCurve* casa::GaussianEstimateWidget::curve
private

Definition at line 102 of file GaussianEstimateWidget.qo.h.

QColor casa::GaussianEstimateWidget::curveColor
private

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

QwtPlotCurve* casa::GaussianEstimateWidget::fitCurve
private

Definition at line 103 of file GaussianEstimateWidget.qo.h.

QColor casa::GaussianEstimateWidget::fitCurveColor
staticprivate

Definition at line 113 of file GaussianEstimateWidget.qo.h.

SpecFitGaussian casa::GaussianEstimateWidget::gaussianEstimate
private

Definition at line 105 of file GaussianEstimateWidget.qo.h.

float casa::GaussianEstimateWidget::maxX
private

Definition at line 109 of file GaussianEstimateWidget.qo.h.

float casa::GaussianEstimateWidget::maxY
private

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

float casa::GaussianEstimateWidget::minX
private

Definition at line 108 of file GaussianEstimateWidget.qo.h.

float casa::GaussianEstimateWidget::minY
private

Definition at line 110 of file GaussianEstimateWidget.qo.h.

QMap<QString,MolecularLine*> casa::GaussianEstimateWidget::molecularLineMap
private

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

QwtPlot* casa::GaussianEstimateWidget::plot
private

Definition at line 101 of file GaussianEstimateWidget.qo.h.

Ui::GaussianEstimateWidgetClass casa::GaussianEstimateWidget::ui
private

Definition at line 104 of file GaussianEstimateWidget.qo.h.

casacore::Vector<float> casa::GaussianEstimateWidget::xValues
private

Definition at line 106 of file GaussianEstimateWidget.qo.h.

casacore::Vector<float> casa::GaussianEstimateWidget::yValues
private

Definition at line 107 of file GaussianEstimateWidget.qo.h.


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