casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Signals | Public Member Functions | Static Public Attributes | Private Types | Private Slots | Private Member Functions | Private Attributes
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>

List of all members.

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 (String, const QString &)
void removeOverlay (String path)
void estimateFileSpecified (const QString &fullPath)

Public Member Functions

 FindSourcesDialog (QWidget *parent=0, bool displayModeFunctionality=true)
void setImage (ImageInterface< Float > *image)
void setChannel (int channel)
QString getRegionString () const
String getPixelBox () const
String getScreenedEstimatesFile (const 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.
QString getImagePixelBox () const
void resetCurrentId (int suggestedId)
void resetSourceView ()
void setSourceResultsVisible (bool visible)
void createTable ()
void initializeFileManagement ()
void setTableValue (int row, int col, const String &val)
double populateCutOff (bool *valid) const
Record makeRegion (bool *valid) const
void resetSkyOverlay ()
void clearSkyOverlay ()
void clearRegions ()
bool writeEstimateFile (QString &filePath, bool screenEstimates=false, RegionBox *screeningBox=NULL)
QString getRemoveOverlayPath () const

Private Attributes

ComponentListWrapper skyList
ImageInterface< Float > * image
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
Vector< int > blcVector
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 51 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 120 of file FindSourcesDialog.qo.h.


Constructor & Destructor Documentation

casa::FindSourcesDialog::FindSourcesDialog ( QWidget *  parent = 0,
bool  displayModeFunctionality = true 
)

Member Function Documentation

void casa::FindSourcesDialog::cutoffModeChanged ( bool  noise) [private, slot]
void casa::FindSourcesDialog::directoryChanged ( const QModelIndex &  modelIndex) [private, slot]
void casa::FindSourcesDialog::estimateFileSpecified ( const QString &  fullPath) [signal]
void casa::FindSourcesDialog::findSources ( ) [private, slot]
QString casa::FindSourcesDialog::getImagePixelBox ( ) const [private]
QString casa::FindSourcesDialog::getRemoveOverlayPath ( ) const [private]
String casa::FindSourcesDialog::getScreenedEstimatesFile ( const String estimatesFileName,
bool *  errorWritingFile 
)
Record casa::FindSourcesDialog::makeRegion ( bool *  valid) const [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]
double casa::FindSourcesDialog::populateCutOff ( bool *  valid) const [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::resetCurrentId ( int  suggestedId) [private]
void casa::FindSourcesDialog::setChannel ( int  channel)
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 String val 
) [private]
void casa::FindSourcesDialog::showOverlay ( String  ,
const QString &   
) [signal]
void casa::FindSourcesDialog::showPixelRange ( ) [private, slot]
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) [private, slot]
bool casa::FindSourcesDialog::writeEstimateFile ( QString &  filePath,
bool  screenEstimates = false,
RegionBox screeningBox = NULL 
) [private]

Member Data Documentation

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

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

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

const QStringList casa::FindSourcesDialog::colorNames [static]

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

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

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

QFileSystemModel* casa::FindSourcesDialog::fileModel [private]

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

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

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

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

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

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

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

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

const QString casa::FindSourcesDialog::SKY_CATALOG [private]

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

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

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

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

Ui::FindSourcesDialogClass casa::FindSourcesDialog::ui [private]

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


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