casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LineOverlaysTab.qo.h
Go to the documentation of this file.
1 //# Copyright (C) 2005
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 #ifndef LINEOVERLAYSTAB_QO_H
26 #define LINEOVERLAYSTAB_QO_H
27 
28 #include <QWidget>
29 #include <display/QtPlotter/LineOverlaysTab.ui.h>
32 #include <casa/BasicSL/String.h>
34 
35 
36 namespace casa {
37 
38  class QtCanvas;
39  class SearchMoleculesWidget;
40  class Converter;
41 
42  class LineOverlaysTab : public QWidget {
43  Q_OBJECT
44 
45  public:
46  LineOverlaysTab(QWidget *parent = 0);
47  void setRange( double min, double max, casacore::String units );
48  void setInitialReferenceFrame( QString referenceStr );
50  void setCanvas( QtCanvas* canvas );
51  void unitsChanged(QString graphUnits );
53 
54  private slots:
55  void graphSelectedLines();
56  void graphSelectedSpecies();
57  void searchCompleted();
58  void eraseLines();
59  void saveIdentifiedLines();
60  void findRedshift( double center, double peak );
61  void redshiftChanged();
62 
63  private:
64  void addLineToPixelCanvas( float center, float peak,
65  QString molecularName, QString chemicalName,
66  QString resolvedQNs, QString frequencyUnit, Converter* converter);
67  float getShiftedCenter( float center, Converter* converter, bool* valid );
68  Ui::LineOverlaysTabClass ui;
74 
75  };
76 }
77 #endif // LINEOVERLAYSTAB_QO_H
void findRedshift(double center, double peak)
LineOverlaysSearchResultsDialog searchResults
#define max(a, b)
Definition: hio.h:44
casacore::SpectralCoordinate spectralCoordinate
#define min(a, b)
Definition: hio.h:45
void setSpectralCoordinate(casacore::SpectralCoordinate coord)
float getShiftedCenter(float center, Converter *converter, bool *valid)
Ui::LineOverlaysTabClass ui
SearchRedshiftDialog searchRedshiftDialog
void unitsChanged(QString graphUnits)
LineOverlaysTab(QWidget *parent=0)
Interconvert pixel and frequency values.
void setInitialReferenceFrame(QString referenceStr)
void setCanvas(QtCanvas *canvas)
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void setRange(double min, double max, casacore::String units)
void addLineToPixelCanvas(float center, float peak, QString molecularName, QString chemicalName, QString resolvedQNs, QString frequencyUnit, Converter *converter)
SearchMoleculesWidget * searchWidget