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

#include <SearchMoleculesWidget.qo.h>

Inheritance diagram for casa::SearchMoleculesWidget:

Signals

void searchCompleted ()
 
void redshiftChanged ()
 

Public Member Functions

 SearchMoleculesWidget (QWidget *parent=0)
 
void setCanvas (QtCanvas *drawCanvas)
 
QString getUnit () const
 
bool isLocal () const
 
void setRange (double min, double max, QString units)
 
void setSpectralCoordinate (casacore::SpectralCoordinate coord)
 
void updateReferenceFrame ()
 
void setResultDisplay (SearchMoleculesResultDisplayer *resultDisplay)
 
double getRedShiftedValue (bool reverseRedshift, double value, bool *valid) const
 
std::vector< SplatResultgetSearchResults () const
 
casacore::MDoppler::Types getDopplerType () const
 
casacore::MRadialVelocity::Types getReferenceFrame () const
 
casacore::MFrequency::Types getReferenceFrequency () const
 
 ~SearchMoleculesWidget ()
 

Static Public Member Functions

static void setInitialReferenceFrame (QString initialReferenceStr)
 

Static Public Attributes

static const QString SPLATALOGUE_UNITS
 
static const QString SEARCH_DEFAULT_UNITS
 

Private Types

enum  AstroFilters {
  NONE,
  TOP_20,
  PLANETARY_ATMOSPHERE,
  HOT_CORES,
  DARK_CLOUDS,
  DIFFUSE_CLOUDS,
  COMETS,
  AGB_PPN_PN,
  EXTRAGALACTIC
}
 

Private Slots

void search ()
 
void searchUnitsChanged (const QString &searchUnits)
 
void redshiftChanged (const QString &redshiftStr)
 
void dopplerShiftChanged ()
 
void dopplerVelocityUnitsChanged ()
 
void searchFinished ()
 
void prevResults ()
 
void nextResults ()
 
void stopSearch ()
 

Private Member Functions

void setAstronomicalFilters (Searcher *searcher)
 
void convertRangeLineEdit (QLineEdit *lineEdit, Converter *converter)
 
void initializeSearchRange (QLineEdit *lineEdit, double &value, bool *valid)
 
std::vector< string > initializeChemicalNames ()
 
std::vector< string > initializeChemicalFormulas ()
 
QList< QString > getSearchChemicals ()
 
std::vector< string > convertStringFormats (const QList< QString > &names)
 
double redShiftToVelocity (QString velocityUnits) const
 
double velocityToRedshift (QString velocityUnits) const
 
void startSearchThread ()
 
void setSearchRangeDefault ()
 
double setRangeValue (double value, QString units)
 
double getRedShift () const
 
casacore::MDoppler getRedShiftAdjustment (bool reverseRedshift) const
 

Private Attributes

Ui::SearchMoleculesWidget ui
 
QString unitStr
 
QString dopplerVelocityUnitStr
 
std::vector< SplatResultsearchResults
 
QList< QString > velocityUnitsList
 
QMap< QString,
casacore::MRadialVelocity::Types
radialVelocityTypeMap
 
QMap< QString,
casacore::MDoppler::Types
dopplerTypeMap
 
bool dopplerInVelocity
 
bool searchInterrupted
 
SearchThreadsearchThread
 
Searchersearcher
 
QtCanvascanvas
 
QProgressDialog progressBar
 
casacore::SpectralCoordinate coord
 For conversion. More...
 
int searchResultCount
 Scrolling support. More...
 
int searchResultOffset
 
int searchResultLimit
 
SearchMoleculesResultDisplayerresultDisplay
 

Static Private Attributes

static QString initialReferenceStr
 
static const double SPEED_LIGHT
 
static const QString M_PER_SEC
 
static const QString KM_PER_SEC
 
static const double SPLATALOGUE_DEFAULT_MIN
 
static const double SPLATALOGUE_DEFAULT_MAX
 

Detailed Description

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

Member Enumeration Documentation

Enumerator
NONE 
TOP_20 
PLANETARY_ATMOSPHERE 
HOT_CORES 
DARK_CLOUDS 
DIFFUSE_CLOUDS 
COMETS 
AGB_PPN_PN 
EXTRAGALACTIC 

Definition at line 164 of file SearchMoleculesWidget.qo.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void casa::SearchMoleculesWidget::convertRangeLineEdit ( QLineEdit *  lineEdit,
Converter converter 
)
private
std::vector<string> casa::SearchMoleculesWidget::convertStringFormats ( const QList< QString > &  names)
private
void casa::SearchMoleculesWidget::dopplerShiftChanged ( )
privateslot
void casa::SearchMoleculesWidget::dopplerVelocityUnitsChanged ( )
privateslot
casacore::MDoppler::Types casa::SearchMoleculesWidget::getDopplerType ( ) const
double casa::SearchMoleculesWidget::getRedShift ( ) const
private
casacore::MDoppler casa::SearchMoleculesWidget::getRedShiftAdjustment ( bool  reverseRedshift) const
private
double casa::SearchMoleculesWidget::getRedShiftedValue ( bool  reverseRedshift,
double  value,
bool *  valid 
) const
casacore::MRadialVelocity::Types casa::SearchMoleculesWidget::getReferenceFrame ( ) const
casacore::MFrequency::Types casa::SearchMoleculesWidget::getReferenceFrequency ( ) const
QList<QString> casa::SearchMoleculesWidget::getSearchChemicals ( )
private
std::vector<SplatResult> casa::SearchMoleculesWidget::getSearchResults ( ) const
QString casa::SearchMoleculesWidget::getUnit ( ) const
std::vector<string> casa::SearchMoleculesWidget::initializeChemicalFormulas ( )
private
std::vector<string> casa::SearchMoleculesWidget::initializeChemicalNames ( )
private
void casa::SearchMoleculesWidget::initializeSearchRange ( QLineEdit *  lineEdit,
double &  value,
bool *  valid 
)
private
bool casa::SearchMoleculesWidget::isLocal ( ) const
void casa::SearchMoleculesWidget::nextResults ( )
privateslot
void casa::SearchMoleculesWidget::prevResults ( )
privateslot
void casa::SearchMoleculesWidget::redshiftChanged ( )
signal
void casa::SearchMoleculesWidget::redshiftChanged ( const QString &  redshiftStr)
privateslot
double casa::SearchMoleculesWidget::redShiftToVelocity ( QString  velocityUnits) const
private
void casa::SearchMoleculesWidget::search ( )
privateslot
void casa::SearchMoleculesWidget::searchCompleted ( )
signal
void casa::SearchMoleculesWidget::searchFinished ( )
privateslot
void casa::SearchMoleculesWidget::searchUnitsChanged ( const QString &  searchUnits)
privateslot
void casa::SearchMoleculesWidget::setAstronomicalFilters ( Searcher searcher)
private
void casa::SearchMoleculesWidget::setCanvas ( QtCanvas drawCanvas)
static void casa::SearchMoleculesWidget::setInitialReferenceFrame ( QString  initialReferenceStr)
static
void casa::SearchMoleculesWidget::setRange ( double  min,
double  max,
QString  units 
)
double casa::SearchMoleculesWidget::setRangeValue ( double  value,
QString  units 
)
private
void casa::SearchMoleculesWidget::setResultDisplay ( SearchMoleculesResultDisplayer resultDisplay)
void casa::SearchMoleculesWidget::setSearchRangeDefault ( )
private
void casa::SearchMoleculesWidget::setSpectralCoordinate ( casacore::SpectralCoordinate  coord)
void casa::SearchMoleculesWidget::startSearchThread ( )
private
void casa::SearchMoleculesWidget::stopSearch ( )
privateslot
void casa::SearchMoleculesWidget::updateReferenceFrame ( )
double casa::SearchMoleculesWidget::velocityToRedshift ( QString  velocityUnits) const
private

Member Data Documentation

QtCanvas* casa::SearchMoleculesWidget::canvas
private

Definition at line 180 of file SearchMoleculesWidget.qo.h.

casacore::SpectralCoordinate casa::SearchMoleculesWidget::coord
private

For conversion.

Definition at line 184 of file SearchMoleculesWidget.qo.h.

bool casa::SearchMoleculesWidget::dopplerInVelocity
private

Definition at line 176 of file SearchMoleculesWidget.qo.h.

QMap<QString, casacore::MDoppler::Types> casa::SearchMoleculesWidget::dopplerTypeMap
private

Definition at line 175 of file SearchMoleculesWidget.qo.h.

QString casa::SearchMoleculesWidget::dopplerVelocityUnitStr
private

Definition at line 171 of file SearchMoleculesWidget.qo.h.

QString casa::SearchMoleculesWidget::initialReferenceStr
staticprivate

Definition at line 147 of file SearchMoleculesWidget.qo.h.

const QString casa::SearchMoleculesWidget::KM_PER_SEC
staticprivate

Definition at line 192 of file SearchMoleculesWidget.qo.h.

const QString casa::SearchMoleculesWidget::M_PER_SEC
staticprivate

Definition at line 191 of file SearchMoleculesWidget.qo.h.

QProgressDialog casa::SearchMoleculesWidget::progressBar
private

Definition at line 181 of file SearchMoleculesWidget.qo.h.

QMap<QString, casacore::MRadialVelocity::Types> casa::SearchMoleculesWidget::radialVelocityTypeMap
private

Definition at line 174 of file SearchMoleculesWidget.qo.h.

SearchMoleculesResultDisplayer* casa::SearchMoleculesWidget::resultDisplay
private

Definition at line 196 of file SearchMoleculesWidget.qo.h.

const QString casa::SearchMoleculesWidget::SEARCH_DEFAULT_UNITS
static

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

Searcher* casa::SearchMoleculesWidget::searcher
private

Definition at line 179 of file SearchMoleculesWidget.qo.h.

bool casa::SearchMoleculesWidget::searchInterrupted
private

Definition at line 177 of file SearchMoleculesWidget.qo.h.

int casa::SearchMoleculesWidget::searchResultCount
private

Scrolling support.

Definition at line 187 of file SearchMoleculesWidget.qo.h.

int casa::SearchMoleculesWidget::searchResultLimit
private

Definition at line 189 of file SearchMoleculesWidget.qo.h.

int casa::SearchMoleculesWidget::searchResultOffset
private

Definition at line 188 of file SearchMoleculesWidget.qo.h.

std::vector<SplatResult> casa::SearchMoleculesWidget::searchResults
private

Definition at line 172 of file SearchMoleculesWidget.qo.h.

SearchThread* casa::SearchMoleculesWidget::searchThread
private

Definition at line 178 of file SearchMoleculesWidget.qo.h.

const double casa::SearchMoleculesWidget::SPEED_LIGHT
staticprivate

Definition at line 190 of file SearchMoleculesWidget.qo.h.

const double casa::SearchMoleculesWidget::SPLATALOGUE_DEFAULT_MAX
staticprivate

Definition at line 195 of file SearchMoleculesWidget.qo.h.

const double casa::SearchMoleculesWidget::SPLATALOGUE_DEFAULT_MIN
staticprivate

Definition at line 194 of file SearchMoleculesWidget.qo.h.

const QString casa::SearchMoleculesWidget::SPLATALOGUE_UNITS
static

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

Ui::SearchMoleculesWidget casa::SearchMoleculesWidget::ui
private

Definition at line 168 of file SearchMoleculesWidget.qo.h.

QString casa::SearchMoleculesWidget::unitStr
private

Definition at line 170 of file SearchMoleculesWidget.qo.h.

QList<QString> casa::SearchMoleculesWidget::velocityUnitsList
private

Definition at line 173 of file SearchMoleculesWidget.qo.h.


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