casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ThresholdingBinPlotDialog.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 THRESHOLDINGBINPLOTDIALOG_QO_H_1
26 #define THRESHOLDINGBINPLOTDIALOG_QO_H_1
27 
28 #include <display/QtPlotter/ThresholdingBinPlotDialog.ui.h>
29 #include <casa/aips.h>
31 #include <utility>
32 #include <QMainWindow>
33 
34 namespace casacore{
35 
36  template <class T> class ImageInterface;
37 }
38 
39 namespace casa {
40 
41  class BinPlotWidget;
42 
43 //This dialog displays a histogram that allows the user
44 //to set a minimum/maximum moment collapse threshold graphically.
45 //Intensity is displayed on the x-axis. The y-axis is a count of
46 //the number of pixels at each intensity.
47 
48  class ThresholdingBinPlotDialog : public QMainWindow {
49  Q_OBJECT
50 
51  public:
52  ThresholdingBinPlotDialog(QString yAxisUnits, QWidget *parent = 0);
53  void setImage( const std::shared_ptr<const casacore::ImageInterface<float> > img );
54  void setInterval( double minValue, double maxValue );
55  std::pair<double,double> getInterval() const;
57 
58  signals:
59  void accepted();
60 
61  private slots:
62  void accept();
63  void postStatusMessage( const QString& warning );
64 
65  private:
66  Ui::ThresholdingBinPlotDialogClass ui;
68 
69  };
70 
71 
72 
73 
74 }
75 #endif // THRESHOLDINGBINPLOTDIALOG_H
void postStatusMessage(const QString &warning)
void setInterval(double minValue, double maxValue)
Display a histogram of intensity vs count.
std::pair< double, double > getInterval() const
This dialog displays a histogram that allows the user to set a minimum/maximum moment collapse thresh...
void setImage(const std::shared_ptr< const casacore::ImageInterface< float > > img)
Ui::ThresholdingBinPlotDialogClass ui
ThresholdingBinPlotDialog(QString yAxisUnits, QWidget *parent=0)
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42