QtiPlot
0.9.8.2
|
00001 /*************************************************************************** 00002 File : GriddingDialog.h 00003 Project : QtiPlot 00004 -------------------------------------------------------------------- 00005 Copyright : (C) 2010 by Ion Vasilief 00006 Email (use @ for *) : ion_vasilief*yahoo.fr 00007 Description : Random XYZ gridding options dialog 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 * This program is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00021 * GNU General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU General Public License * 00024 * along with this program; if not, write to the Free Software * 00025 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 00026 * Boston, MA 02110-1301 USA * 00027 * * 00028 ***************************************************************************/ 00029 #ifndef GRIDDINGDIALOG_H 00030 #define GRIDDINGDIALOG_H 00031 00032 #include <qwt3d_curve.h> 00033 #include <qwt3d_surfaceplot.h> 00034 00035 #include <QDialog> 00036 #include <ap.h> 00037 00038 class QGroupBox; 00039 class QLabel; 00040 class QPushButton; 00041 class QComboBox; 00042 class QCheckBox; 00043 class QSpinBox; 00044 class Table; 00045 class DoubleSpinBox; 00046 00047 using namespace Qwt3D; 00048 00050 class GriddingDialog : public QDialog 00051 { 00052 Q_OBJECT 00053 00054 public: 00055 GriddingDialog(Table* t, const QString& colName, int nodes, QWidget* parent = 0, Qt::WFlags fl = 0 ); 00056 ~GriddingDialog(); 00057 00058 private slots: 00059 void accept(); 00060 void preview(); 00061 void setPlotStyle(int); 00062 void showMethodParameters(int); 00063 00064 private: 00065 void loadDataFromTable(); 00066 void resetAxesLabels(); 00067 void findBestLayout(); 00068 00069 Table *d_table; 00070 Qwt3D::Plot3D* sp; 00071 00072 QString d_col_name; 00073 int d_nodes; 00074 ap::real_2d_array xy; 00075 00076 QPushButton* buttonFit; 00077 QPushButton* buttonCancel; 00078 QLabel* boxName; 00079 QComboBox* boxMethod; 00080 QSpinBox* boxCols, *boxRows; 00081 DoubleSpinBox* boxXStart; 00082 DoubleSpinBox* boxXEnd; 00083 DoubleSpinBox* boxYStart; 00084 DoubleSpinBox* boxYEnd; 00085 DoubleSpinBox* boxRadius; 00086 QComboBox* boxPlotStyle; 00087 QCheckBox *showPlotBox; 00088 QGroupBox *previewBox; 00089 QGroupBox *gbRadius; 00090 QGroupBox *gbModel; 00091 QComboBox* boxModel; 00092 QSpinBox* boxNQ; 00093 QSpinBox* boxNW; 00094 }; 00095 00096 #endif