Vespucci  1.0.0
bandratiodialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright (C) 2014-2016 Wright State University - All Rights Reserved
3  Daniel P. Foose - Maintainer/Lead Developer
4 
5  This file is part of Vespucci.
6 
7  Vespucci is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Vespucci is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Vespucci. If not, see <http://www.gnu.org/licenses/>.
19 *******************************************************************************/
20 
21 #ifndef BANDRATIODIALOG_H
22 #define BANDRATIODIALOG_H
23 
24 #include <QDialog>
26 
27 namespace Ui {
28 class BandRatioDialog;
29 }
30 
34 class BandRatioDialog : public QDialog
35 {
36  Q_OBJECT
37 
38 public:
39  explicit BandRatioDialog(QWidget *parent, QSharedPointer<VespucciWorkspace> ws, QSharedPointer<AbstractDataAnalyzer> analyzer);
40  ~BandRatioDialog();
41 
42 private slots:
43  void on_buttonBox_accepted();
44 
45  void on_buttonBox_rejected();
46 
47  void on_firstMinLineEdit_textChanged(const QString &arg1);
48 
49  void on_firstMaxLineEdit_textChanged(const QString &arg1);
50 
51  void on_secondMinLineEdit_textChanged(const QString &arg1);
52 
53  void on_secondMaxLineEdit_textChanged(const QString &arg1);
54 
55  void on_indexSpinBox_editingFinished();
56 
57 private:
58  Ui::BandRatioDialog *ui;
62  int data_index_;
63 
67  QCPItemStraightLine *first_min_line_;
71  QCPItemStraightLine *first_max_line_;
75  QCPItemStraightLine *second_min_line_;
79  QCPItemStraightLine *second_max_line_;
80 
84  QSharedPointer<VespucciWorkspace> workspace_;
85  QSharedPointer<AbstractDataAnalyzer> analyzer_;
86 
87  QStringList dataset_keys_;
88 
89 };
90 
91 #endif // BANDRATIODIALOG_H
The BandRatioDialog class The dialog that allows the user to create a band-ratio map.
Definition: ahcadialog.h:26
A straight line that spans infinitely in both directions.
Definition: qcustomplot.h:3287