GriddingDialog.h
Go to the documentation of this file.
/***************************************************************************
File : GriddingDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2010 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Random XYZ gridding options dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef GRIDDINGDIALOG_H
#define GRIDDINGDIALOG_H
#include <qwt3d_curve.h>
#include <qwt3d_surfaceplot.h>
#include <QDialog>
#include <ap.h>
class QGroupBox;
class QLabel;
class QPushButton;
class QComboBox;
class QCheckBox;
class QSpinBox;
class Table;
class DoubleSpinBox;
using namespace Qwt3D;
class GriddingDialog : public QDialog
{
Q_OBJECT
public:
GriddingDialog(Table* t, const QString& colName, int nodes, QWidget* parent = 0, Qt::WFlags fl = 0 );
~GriddingDialog();
private slots:
void accept();
void preview();
void setPlotStyle(int);
void showMethodParameters(int);
private:
void loadDataFromTable();
void resetAxesLabels();
void findBestLayout();
Table *d_table;
Qwt3D::Plot3D* sp;
QString d_col_name;
int d_nodes;
alglib::real_2d_array xy;
QPushButton* buttonFit;
QPushButton* buttonCancel;
QLabel* boxName;
QComboBox* boxMethod;
QSpinBox* boxCols, *boxRows;
DoubleSpinBox* boxXStart;
DoubleSpinBox* boxXEnd;
DoubleSpinBox* boxYStart;
DoubleSpinBox* boxYEnd;
DoubleSpinBox* boxRadius;
QComboBox* boxPlotStyle;
QCheckBox *showPlotBox;
QGroupBox *previewBox;
QGroupBox *gbRadius;
QGroupBox *gbModel;
QComboBox* boxModel;
QSpinBox* boxNQ;
QSpinBox* boxNW;
};
#endif
GriddingDialog::boxRows
QSpinBox * boxRows
Definition: GriddingDialog.h:80
GriddingDialog::boxYEnd
DoubleSpinBox * boxYEnd
Definition: GriddingDialog.h:84
GriddingDialog::boxXEnd
DoubleSpinBox * boxXEnd
Definition: GriddingDialog.h:82
GriddingDialog::d_nodes
int d_nodes
Definition: GriddingDialog.h:73
GriddingDialog::boxName
QLabel * boxName
Definition: GriddingDialog.h:78
GriddingDialog::boxNW
QSpinBox * boxNW
Definition: GriddingDialog.h:93
GriddingDialog::previewBox
QGroupBox * previewBox
Definition: GriddingDialog.h:88
GriddingDialog::boxNQ
QSpinBox * boxNQ
Definition: GriddingDialog.h:92
GriddingDialog::boxXStart
DoubleSpinBox * boxXStart
Definition: GriddingDialog.h:81
GriddingDialog::boxModel
QComboBox * boxModel
Definition: GriddingDialog.h:91
GriddingDialog::boxMethod
QComboBox * boxMethod
Definition: GriddingDialog.h:79
GriddingDialog::xy
alglib::real_2d_array xy
Definition: GriddingDialog.h:74
GriddingDialog::showPlotBox
QCheckBox * showPlotBox
Definition: GriddingDialog.h:87
GriddingDialog::boxPlotStyle
QComboBox * boxPlotStyle
Definition: GriddingDialog.h:86
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
GriddingDialog::gbModel
QGroupBox * gbModel
Definition: GriddingDialog.h:90
GriddingDialog::buttonFit
QPushButton * buttonFit
Definition: GriddingDialog.h:76
GriddingDialog::d_col_name
QString d_col_name
Definition: GriddingDialog.h:72
GriddingDialog::sp
Qwt3D::Plot3D * sp
Definition: GriddingDialog.h:70
GriddingDialog::buttonCancel
QPushButton * buttonCancel
Definition: GriddingDialog.h:77
GriddingDialog::boxRadius
DoubleSpinBox * boxRadius
Definition: GriddingDialog.h:85
GriddingDialog
Random XYZ gridding options dialog.
Definition: GriddingDialog.h:50
GriddingDialog::gbRadius
QGroupBox * gbRadius
Definition: GriddingDialog.h:89
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
GriddingDialog::boxYStart
DoubleSpinBox * boxYStart
Definition: GriddingDialog.h:83
GriddingDialog::d_table
Table * d_table
Definition: GriddingDialog.h:69