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

Displays a dialog that allows the user to find and edit a source list that can be used as estimates for a 2D fit. More...

#include <FindSourcesDialog.qo.h>

Inheritance diagram for casa::FindSourcesDialog:

Public Slots

void setImageMode (bool imageMode)
 
bool newRegion (int id, 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)
 
bool updateRegion (int id, viewer::region::RegionChanges changes, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y)
 
void setOverlayColor (const QString &colorName)
 

Signals

void showOverlay (casacore::String, const QString &)
 
void removeOverlay (casacore::String path)
 
void estimateFileSpecified (const QString &fullPath)
 

Public Member Functions

 FindSourcesDialog (QWidget *parent=0, bool displayModeFunctionality=true)
 
void setImage (std::shared_ptr< const casacore::ImageInterface< float > > image)
 
void setChannel (int channel)
 
void clearImage ()
 
QString getRegionString () const
 
casacore::String getPixelBox () const
 
QString getImagePixelBox () const
 
casacore::String getScreenedEstimatesFile (const casacore::String &estimatesFileName, bool *errorWritingFile)
 
 ~FindSourcesDialog ()
 

Static Public Attributes

static const QStringList colorNames
 

Private Types

enum  SourceColumns {
  ID_COL,
  RA_COL,
  DEC_COL,
  FLUX_COL,
  MAJOR_AXIS_COL,
  MINOR_AXIS_COL,
  ANGLE_COL
}
 

Private Slots

void findSources ()
 
void deleteSelectedSource ()
 
void canceledFindSources ()
 
void saveEstimateFile ()
 
void directoryChanged (const QModelIndex &modelIndex)
 
void validateDirectory (const QString &str)
 
void cutoffModeChanged (bool noise)
 
void showPixelRange ()
 
void pixelRangeChanged ()
 
void viewerDisplayChanged ()
 

Private Member Functions

 FindSourcesDialog (const FindSourcesDialog &other)
 
FindSourcesDialogoperator= (const FindSourcesDialog &other)
 
void populatePixelBox ()
 
void populateImageBounds ()
 Written because when a fit of a residual image was being done, the region bounds were larger than the bounds in the residual image. More...
 
void resetCurrentId (int suggestedId)
 
void resetSourceView ()
 
void setSourceResultsVisible (bool visible)
 
void createTable ()
 
void initializeFileManagement ()
 
void setTableValue (int row, int col, const casacore::String &val)
 
double populateCutOff (bool *valid) const
 
casacore::Record makeRegion (bool *valid)
 
void resetSkyOverlay ()
 
void clearSkyOverlay ()
 
void clearRegions ()
 
bool writeEstimateFile (QString &filePath, bool screenEstimates=false, RegionBox *screeningBox=NULL)
 
QString getRemoveOverlayPath () const
 

Private Attributes

ComponentListWrapper skyList
 
std::shared_ptr< const
casacore::ImageInterface
< float > > 
image
 
casacore::String pixelBox
 
QString skyPath
 
QString overlayColorName
 
bool imageMode
 
int channel
 
int resultIndex
 
int currentRegionId
 
QFileSystemModel * fileModel
 
QMap< int, RegionBox * > regions
 
const int DEFAULT_KEY
 
const QString SKY_CATALOG
 
ColorComboDelegatecolorDelegate
 
PixelRangeDialog pixelRangeDialog
 
casacore::Vector< int > blcVector
 
casacore::Vector< int > trcVector
 
Ui::FindSourcesDialogClass ui
 

Detailed Description

Displays a dialog that allows the user to find and edit a source list that can be used as estimates for a 2D fit.

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

Member Enumeration Documentation

Enumerator
ID_COL 
RA_COL 
DEC_COL 
FLUX_COL 
MAJOR_AXIS_COL 
MINOR_AXIS_COL 
ANGLE_COL 

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

Constructor & Destructor Documentation

casa::FindSourcesDialog::FindSourcesDialog ( QWidget *  parent = 0,
bool  displayModeFunctionality = true 
)
casa::FindSourcesDialog::~FindSourcesDialog ( )
casa::FindSourcesDialog::FindSourcesDialog ( const FindSourcesDialog other)
private

Member Function Documentation

void casa::FindSourcesDialog::canceledFindSources ( )
privateslot
void casa::FindSourcesDialog::clearImage ( )
void casa::FindSourcesDialog::clearRegions ( )
private
void casa::FindSourcesDialog::clearSkyOverlay ( )
private
void casa::FindSourcesDialog::createTable ( )
private
void casa::FindSourcesDialog::cutoffModeChanged ( bool  noise)
privateslot
void casa::FindSourcesDialog::deleteSelectedSource ( )
privateslot
void casa::FindSourcesDialog::directoryChanged ( const QModelIndex &  modelIndex)
privateslot
void casa::FindSourcesDialog::estimateFileSpecified ( const QString &  fullPath)
signal
void casa::FindSourcesDialog::findSources ( )
privateslot
QString casa::FindSourcesDialog::getImagePixelBox ( ) const
casacore::String casa::FindSourcesDialog::getPixelBox ( ) const
QString casa::FindSourcesDialog::getRegionString ( ) const
QString casa::FindSourcesDialog::getRemoveOverlayPath ( ) const
private
casacore::String casa::FindSourcesDialog::getScreenedEstimatesFile ( const casacore::String estimatesFileName,
bool *  errorWritingFile 
)
void casa::FindSourcesDialog::initializeFileManagement ( )
private
casacore::Record casa::FindSourcesDialog::makeRegion ( bool *  valid)
private
bool casa::FindSourcesDialog::newRegion ( int  id,
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
FindSourcesDialog& casa::FindSourcesDialog::operator= ( const FindSourcesDialog other)
private
void casa::FindSourcesDialog::pixelRangeChanged ( )
privateslot
double casa::FindSourcesDialog::populateCutOff ( bool *  valid) const
private
void casa::FindSourcesDialog::populateImageBounds ( )
private

Written because when a fit of a residual image was being done, the region bounds were larger than the bounds in the residual image.

void casa::FindSourcesDialog::populatePixelBox ( )
private
void casa::FindSourcesDialog::removeOverlay ( casacore::String  path)
signal
void casa::FindSourcesDialog::resetCurrentId ( int  suggestedId)
private
void casa::FindSourcesDialog::resetSkyOverlay ( )
private
void casa::FindSourcesDialog::resetSourceView ( )
private
void casa::FindSourcesDialog::saveEstimateFile ( )
privateslot
void casa::FindSourcesDialog::setChannel ( int  channel)
void casa::FindSourcesDialog::setImage ( std::shared_ptr< const casacore::ImageInterface< float > >  image)
void casa::FindSourcesDialog::setImageMode ( bool  imageMode)
slot
void casa::FindSourcesDialog::setOverlayColor ( const QString &  colorName)
slot
void casa::FindSourcesDialog::setSourceResultsVisible ( bool  visible)
private
void casa::FindSourcesDialog::setTableValue ( int  row,
int  col,
const casacore::String val 
)
private
void casa::FindSourcesDialog::showOverlay ( casacore::String  ,
const QString &   
)
signal
void casa::FindSourcesDialog::showPixelRange ( )
privateslot
bool casa::FindSourcesDialog::updateRegion ( int  id,
viewer::region::RegionChanges  changes,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y 
)
slot
void casa::FindSourcesDialog::validateDirectory ( const QString &  str)
privateslot
void casa::FindSourcesDialog::viewerDisplayChanged ( )
privateslot
bool casa::FindSourcesDialog::writeEstimateFile ( QString &  filePath,
bool  screenEstimates = false,
RegionBox screeningBox = NULL 
)
private

Member Data Documentation

casacore::Vector<int> casa::FindSourcesDialog::blcVector
private

Definition at line 138 of file FindSourcesDialog.qo.h.

int casa::FindSourcesDialog::channel
private

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

ColorComboDelegate* casa::FindSourcesDialog::colorDelegate
private

Definition at line 136 of file FindSourcesDialog.qo.h.

const QStringList casa::FindSourcesDialog::colorNames
static

Definition at line 65 of file FindSourcesDialog.qo.h.

int casa::FindSourcesDialog::currentRegionId
private

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

const int casa::FindSourcesDialog::DEFAULT_KEY
private

Definition at line 134 of file FindSourcesDialog.qo.h.

QFileSystemModel* casa::FindSourcesDialog::fileModel
private

Definition at line 132 of file FindSourcesDialog.qo.h.

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

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

bool casa::FindSourcesDialog::imageMode
private

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

QString casa::FindSourcesDialog::overlayColorName
private

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

casacore::String casa::FindSourcesDialog::pixelBox
private

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

PixelRangeDialog casa::FindSourcesDialog::pixelRangeDialog
private

Definition at line 137 of file FindSourcesDialog.qo.h.

QMap< int, RegionBox*> casa::FindSourcesDialog::regions
private

Definition at line 133 of file FindSourcesDialog.qo.h.

int casa::FindSourcesDialog::resultIndex
private

Definition at line 130 of file FindSourcesDialog.qo.h.

const QString casa::FindSourcesDialog::SKY_CATALOG
private

Definition at line 135 of file FindSourcesDialog.qo.h.

ComponentListWrapper casa::FindSourcesDialog::skyList
private

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

QString casa::FindSourcesDialog::skyPath
private

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

casacore::Vector<int> casa::FindSourcesDialog::trcVector
private

Definition at line 139 of file FindSourcesDialog.qo.h.

Ui::FindSourcesDialogClass casa::FindSourcesDialog::ui
private

Definition at line 140 of file FindSourcesDialog.qo.h.


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