QtiPlot  0.9.8.2
GriddingDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : GriddingDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Random XYZ gridding options dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 #ifndef GRIDDINGDIALOG_H
30 #define GRIDDINGDIALOG_H
31 
32 #include <qwt3d_curve.h>
33 #include <qwt3d_surfaceplot.h>
34 
35 #include <QDialog>
36 #include <ap.h>
37 
38 class QGroupBox;
39 class QLabel;
40 class QPushButton;
41 class QComboBox;
42 class QCheckBox;
43 class QSpinBox;
44 class Table;
45 class DoubleSpinBox;
46 
47 using namespace Qwt3D;
48 
50 class GriddingDialog : public QDialog
51 {
52  Q_OBJECT
53 
54 public:
55  GriddingDialog(Table* t, const QString& colName, int nodes, QWidget* parent = 0, Qt::WFlags fl = 0 );
56  ~GriddingDialog();
57 
58 private slots:
59  void accept();
60  void preview();
61  void setPlotStyle(int);
62  void showMethodParameters(int);
63 
64 private:
65  void loadDataFromTable();
66  void resetAxesLabels();
67  void findBestLayout();
68 
70  Qwt3D::Plot3D* sp;
71 
72  QString d_col_name;
73  int d_nodes;
74  alglib::real_2d_array xy;
75 
76  QPushButton* buttonFit;
77  QPushButton* buttonCancel;
78  QLabel* boxName;
79  QComboBox* boxMethod;
80  QSpinBox* boxCols, *boxRows;
86  QComboBox* boxPlotStyle;
87  QCheckBox *showPlotBox;
88  QGroupBox *previewBox;
89  QGroupBox *gbRadius;
90  QGroupBox *gbModel;
91  QComboBox* boxModel;
92  QSpinBox* boxNQ;
93  QSpinBox* boxNW;
94 };
95 
96 #endif