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
QSpinBox * boxRows
Definition: GriddingDialog.h:80
DoubleSpinBox * boxYEnd
Definition: GriddingDialog.h:84
DoubleSpinBox * boxXEnd
Definition: GriddingDialog.h:82
int d_nodes
Definition: GriddingDialog.h:73
QLabel * boxName
Definition: GriddingDialog.h:78
QSpinBox * boxNW
Definition: GriddingDialog.h:93
QGroupBox * previewBox
Definition: GriddingDialog.h:88
QSpinBox * boxNQ
Definition: GriddingDialog.h:92
DoubleSpinBox * boxXStart
Definition: GriddingDialog.h:81
QComboBox * boxModel
Definition: GriddingDialog.h:91
QComboBox * boxMethod
Definition: GriddingDialog.h:79
alglib::real_2d_array xy
Definition: GriddingDialog.h:74
QCheckBox * showPlotBox
Definition: GriddingDialog.h:87
QComboBox * boxPlotStyle
Definition: GriddingDialog.h:86
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
QGroupBox * gbModel
Definition: GriddingDialog.h:90
QPushButton * buttonFit
Definition: GriddingDialog.h:76
QString d_col_name
Definition: GriddingDialog.h:72
Qwt3D::Plot3D * sp
Definition: GriddingDialog.h:70
QPushButton * buttonCancel
Definition: GriddingDialog.h:77
DoubleSpinBox * boxRadius
Definition: GriddingDialog.h:85
Random XYZ gridding options dialog.
Definition: GriddingDialog.h:50
QGroupBox * gbRadius
Definition: GriddingDialog.h:89
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
DoubleSpinBox * boxYStart
Definition: GriddingDialog.h:83
Table * d_table
Definition: GriddingDialog.h:69