GeostatisticalMethodsDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/sa/qt/GeostatisticalMethodsDialog.h
22 
23  \brief A dialog with geostatistical methods to measure the spatial variability of attribute of a dataset.
24 */
25 
26 #ifndef __TERRALIB_SA_INTERNAL_GEOSTATISTICALMETHODSDIALOG_H
27 #define __TERRALIB_SA_INTERNAL_GEOSTATISTICALMETHODSDIALOG_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../dataaccess/datasource/DataSourceInfo.h"
32 #include "../../maptools/AbstractLayer.h"
33 #include "../../qt/widgets/charts/ChartDisplay.h"
34 #include "../../qt/widgets/charts/Scatter.h"
35 #include "../../qt/widgets/charts/ScatterChart.h"
36 #include "../core/GeostatisticalMethod.h"
37 #endif
38 #include "../Config.h"
39 
40 // Qt
41 #include <QDialog>
42 
43 // Boost
44 #ifndef Q_MOC_RUN
45 #include <boost/numeric/ublas/matrix.hpp>
46 #endif
47 
48 namespace Ui { class GeostatisticalMethodsDialogForm; }
49 
50 // Forward declarations
51 
52 namespace te
53 {
54  namespace sa
55  {
56 // Forward declarations
57 
58  class TESAEXPORT GeostatisticalMethodsDialog : public QDialog
59  {
60  Q_OBJECT
61 
62  public:
63 
64  GeostatisticalMethodsDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
65 
67 
68  /*!
69  \brief Set the layer that can be used
70 
71  \param layers List of AbstractLayerPtr
72  */
73  void setLayers(std::list<te::map::AbstractLayerPtr> layers);
74 
75  protected slots:
76 
77  void onInputLayerComboBoxActivated(int index);
78 
79  void onApplyPushButtonClicked();
80 
81  void onChangeAttrToolButtonClicked();
82 
83  void calculate();
84 
85  protected:
86 
87  void fillParameters();
88 
89  void resetAdjustParameters(double mean, double variance);
90 
91  void plot();
92 
93  private:
94 
95  std::auto_ptr<Ui::GeostatisticalMethodsDialogForm> m_ui;
96 
98 
99  boost::numeric::ublas::matrix<double> m_methodMatrix;
100 
101  boost::numeric::ublas::matrix<double> m_modelMatrix;
102 
104 
107 
110  };
111  } // end namespace sa
112 } // end namespace te
113 
114 #endif // __TERRALIB_SA_INTERNAL_GEOSTATISTICALMETHODSDIALOG_H
te::qt::widgets::ScatterChart * m_scatterChartModel
te::qt::widgets::ChartDisplay * m_chartDisplay
std::auto_ptr< Ui::GeostatisticalMethodsDialogForm > m_ui
boost::numeric::ublas::matrix< double > m_modelMatrix
A class to represent a scatter.
Definition: Scatter.h:51
boost::numeric::ublas::matrix< double > m_methodMatrix
URI C++ Library.
A class to represent a chart display.
Definition: ChartDisplay.h:65
A class to represent a scatter chart.
Definition: ScatterChart.h:55
Geostatistics is used for modelling spatial data. It provides accurate and reliable estimations of ph...
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:133
te::qt::widgets::ScatterChart * m_scatterChartMethod