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

#include <GaussianEstimateWidget.qo.h>

List of all members.

Signals

void coordinatedValuesChanged (float)

Public Member Functions

 GaussianEstimateWidget (QWidget *parent=0)
void setCurveData (const Vector< float > &xValues, const 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)
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 Vector< float > &values, QVector< double > &vals, bool reverseOrder)
void copyVectors (const Vector< float > &sourceValues, 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
Vector< float > xValues
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


Member Function Documentation

float casa::GaussianEstimateWidget::adjustValue ( float  val) const [private]
void casa::GaussianEstimateWidget::centerChanged ( float  value) [private]
void casa::GaussianEstimateWidget::centerFixedChanged ( bool  fixed) [private, slot]
void casa::GaussianEstimateWidget::centerSliderChanged ( int  value) [private, slot]
void casa::GaussianEstimateWidget::clearCurve ( QwtPlotCurve *&  curve) [private]
void casa::GaussianEstimateWidget::copyVectors ( const Vector< float > &  values,
QVector< double > &  vals,
bool  reverseOrder 
) [private]
void casa::GaussianEstimateWidget::copyVectors ( const Vector< float > &  sourceValues,
Vector< float > &  destinationValues,
bool  reverseOrder 
) [private]
void casa::GaussianEstimateWidget::fwhmChanged ( float  value) [private]
void casa::GaussianEstimateWidget::fwhmFixedChanged ( bool  fixed) [private, slot]
void casa::GaussianEstimateWidget::fwhmSliderChanged ( int  value) [private, slot]
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) [private, slot]
void casa::GaussianEstimateWidget::peakSliderChanged ( int  value) [private, slot]
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::setCurveData ( const Vector< float > &  xValues,
const Vector< float > &  yValues 
)
void casa::GaussianEstimateWidget::setDisplayYUnits ( const QString &  units)
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::setSliderValuePeak ( float  value) [private]
void casa::GaussianEstimateWidget::setTitle ( const QString &  titleStr)
void casa::GaussianEstimateWidget::unitsChanged ( const QString &  oldUnits,
const QString &  newUnits 
)

Member Data Documentation

QwtPlotCurve* casa::GaussianEstimateWidget::curve [private]

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

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

QwtPlotCurve* casa::GaussianEstimateWidget::fitCurve [private]

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

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

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

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

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

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

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

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

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

Ui::GaussianEstimateWidgetClass casa::GaussianEstimateWidget::ui [private]

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

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

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


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