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 Slots | Private Member Functions | Private Attributes | List of all members
casa::Fit2DTool Class Reference

#include <Fit2DTool.qo.h>

Inheritance diagram for casa::Fit2DTool:

Public Slots

void frameChanged (int frame)
 
void newRegion (int, const QString &shape, const QString &name, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y, const QString &linecolor, const QString &text, const QString &font, int fontsize, int fontstyle)
 
void updateRegion (int, viewer::region::RegionChanges, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y)
 

Signals

void showOverlay (casacore::String, const QString &)
 
void removeOverlay (casacore::String)
 
void remove2DFitOverlay (QList< RegionShape * > fitMarkers)
 
void add2DFitOverlay (QList< RegionShape * > fitMarkers)
 
void addResidualFitImage (casacore::String)
 

Public Member Functions

 Fit2DTool (QWidget *parent=0)
 
void setImage (std::shared_ptr< const casacore::ImageInterface< float > > image)
 
bool setImageRegion (casacore::ImageRegion *imageRegion, int id)
 
void deleteImageRegion (int id)
 
void imageRegionSelected (int id)
 
 ~Fit2DTool ()
 

Private Slots

void showFileDialog ()
 
void showFindSourcesDialog ()
 
void showPixelRangeDialog ()
 
void estimateFileChanged (const QString &fullPath)
 
void pixelRangeChanged ()
 
void pixelRangeEnabledChanged (bool enabled)
 
void pixelRangeNoneSelected (bool selected)
 
void doFit ()
 
void fitColorChanged (const QString &colorName)
 
void fitDone ()
 
void clearFitMarkers ()
 
void showResults ()
 
void showSaveDialog ()
 
void showResidualHistogramDialog ()
 
void residualSupportChanged (bool enable)
 
void showResidualDialog ()
 
void displayFitChanged (bool display)
 
void imageModeChanged (bool imageEnabled)
 

Private Member Functions

 Fit2DTool (const Fit2DTool &fitTool)
 
Fit2DTool operator= (const Fit2DTool &fitTool)
 
casacore::Vector< float > populateInclude () const
 
casacore::Vector< float > populateExclude () const
 
void populateIncludeExclude (casacore::Vector< float > &range) const
 
void setImageFunctionalityEnabled (bool enable)
 
void resetRegion (const QList< int > &pixelX, const QList< int > &pixelY)
 
bool populateSaveFile (casacore::String &saveFile)
 
bool populateResidualFile (casacore::String &saveFile)
 
void showFileChooserDialog (const QString &title, QFileDialog::FileMode mode, QLineEdit *destinationLineEdit)
 
bool validateFile (QLineEdit *directoryLineEdit, QLineEdit *fileLineEdit, casacore::String &saveFile, const QString &purpose)
 
void addViewerFitMarkers ()
 
void removeViewerFitMarkers ()
 
void clearRegions ()
 
void updateFrame ()
 Update the widgets that depend on knowing the frame. More...
 

Private Attributes

const QString REGION_LABEL
 
std::shared_ptr< const
casacore::ImageInterface
< float > > 
image
 
QList< RegionShape * > fitMarkers
 
Gaussian2DFitterfitter
 
ColorComboDelegatefitColorDelegate
 
QProgressDialog progressBar
 
FindSourcesDialog findSourcesDialog
 
PixelRangeDialog pixelRangeDialog
 
Fit2DLogDialog logDialog
 
ResidualHistogramDialog residualHistogramDialog
 
casacore::String residualImagePath
 
Ui::Fit2DToolClass ui
 

Detailed Description

Definition at line 50 of file Fit2DTool.qo.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void casa::Fit2DTool::add2DFitOverlay ( QList< RegionShape * >  fitMarkers)
signal
void casa::Fit2DTool::addResidualFitImage ( casacore::String  )
signal
void casa::Fit2DTool::addViewerFitMarkers ( )
private
void casa::Fit2DTool::clearFitMarkers ( )
privateslot
void casa::Fit2DTool::clearRegions ( )
private
void casa::Fit2DTool::deleteImageRegion ( int  id)
void casa::Fit2DTool::displayFitChanged ( bool  display)
privateslot
void casa::Fit2DTool::doFit ( )
privateslot
void casa::Fit2DTool::estimateFileChanged ( const QString &  fullPath)
privateslot
void casa::Fit2DTool::fitColorChanged ( const QString &  colorName)
privateslot
void casa::Fit2DTool::fitDone ( )
privateslot
void casa::Fit2DTool::frameChanged ( int  frame)
slot
void casa::Fit2DTool::imageModeChanged ( bool  imageEnabled)
privateslot
void casa::Fit2DTool::imageRegionSelected ( int  id)
void casa::Fit2DTool::newRegion ( int  ,
const QString &  shape,
const QString &  name,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y,
const QString &  linecolor,
const QString &  text,
const QString &  font,
int  fontsize,
int  fontstyle 
)
slot
Fit2DTool casa::Fit2DTool::operator= ( const Fit2DTool fitTool)
private
void casa::Fit2DTool::pixelRangeChanged ( )
privateslot
void casa::Fit2DTool::pixelRangeEnabledChanged ( bool  enabled)
privateslot
void casa::Fit2DTool::pixelRangeNoneSelected ( bool  selected)
privateslot
casacore::Vector<float> casa::Fit2DTool::populateExclude ( ) const
private
casacore::Vector<float> casa::Fit2DTool::populateInclude ( ) const
private
void casa::Fit2DTool::populateIncludeExclude ( casacore::Vector< float > &  range) const
private
bool casa::Fit2DTool::populateResidualFile ( casacore::String saveFile)
private
bool casa::Fit2DTool::populateSaveFile ( casacore::String saveFile)
private
void casa::Fit2DTool::remove2DFitOverlay ( QList< RegionShape * >  fitMarkers)
signal
void casa::Fit2DTool::removeOverlay ( casacore::String  )
signal
void casa::Fit2DTool::removeViewerFitMarkers ( )
private
void casa::Fit2DTool::resetRegion ( const QList< int > &  pixelX,
const QList< int > &  pixelY 
)
private
void casa::Fit2DTool::residualSupportChanged ( bool  enable)
privateslot
void casa::Fit2DTool::setImage ( std::shared_ptr< const casacore::ImageInterface< float > >  image)
void casa::Fit2DTool::setImageFunctionalityEnabled ( bool  enable)
private
bool casa::Fit2DTool::setImageRegion ( casacore::ImageRegion imageRegion,
int  id 
)
void casa::Fit2DTool::showFileChooserDialog ( const QString &  title,
QFileDialog::FileMode  mode,
QLineEdit *  destinationLineEdit 
)
private
void casa::Fit2DTool::showFileDialog ( )
privateslot
void casa::Fit2DTool::showFindSourcesDialog ( )
privateslot
void casa::Fit2DTool::showOverlay ( casacore::String  ,
const QString &   
)
signal
void casa::Fit2DTool::showPixelRangeDialog ( )
privateslot
void casa::Fit2DTool::showResidualDialog ( )
privateslot
void casa::Fit2DTool::showResidualHistogramDialog ( )
privateslot
void casa::Fit2DTool::showResults ( )
privateslot
void casa::Fit2DTool::showSaveDialog ( )
privateslot
void casa::Fit2DTool::updateFrame ( )
private

Update the widgets that depend on knowing the frame.

void casa::Fit2DTool::updateRegion ( int  ,
viewer::region::RegionChanges  ,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y 
)
slot
bool casa::Fit2DTool::validateFile ( QLineEdit *  directoryLineEdit,
QLineEdit *  fileLineEdit,
casacore::String saveFile,
const QString &  purpose 
)
private

Member Data Documentation

FindSourcesDialog casa::Fit2DTool::findSourcesDialog
private

Definition at line 125 of file Fit2DTool.qo.h.

ColorComboDelegate* casa::Fit2DTool::fitColorDelegate
private

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

QList<RegionShape*> casa::Fit2DTool::fitMarkers
private

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

Gaussian2DFitter* casa::Fit2DTool::fitter
private

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

std::shared_ptr<const casacore::ImageInterface<float> > casa::Fit2DTool::image
private

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

Fit2DLogDialog casa::Fit2DTool::logDialog
private

Definition at line 127 of file Fit2DTool.qo.h.

PixelRangeDialog casa::Fit2DTool::pixelRangeDialog
private

Definition at line 126 of file Fit2DTool.qo.h.

QProgressDialog casa::Fit2DTool::progressBar
private

Definition at line 124 of file Fit2DTool.qo.h.

const QString casa::Fit2DTool::REGION_LABEL
private

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

ResidualHistogramDialog casa::Fit2DTool::residualHistogramDialog
private

Definition at line 128 of file Fit2DTool.qo.h.

casacore::String casa::Fit2DTool::residualImagePath
private

Definition at line 129 of file Fit2DTool.qo.h.

Ui::Fit2DToolClass casa::Fit2DTool::ui
private

Definition at line 131 of file Fit2DTool.qo.h.


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