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 #include "../../dataaccess/datasource/DataSourceInfo.h"
31 #include "../../maptools/AbstractLayer.h"
32 #include "../../qt/widgets/charts/ChartDisplay.h"
33 #include "../../qt/widgets/charts/Scatter.h"
34 #include "../../qt/widgets/charts/ScatterChart.h"
35 #include "../core/GeostatisticalMethod.h"
36 #include "../Config.h"
37 
38 // Qt
39 #include <QDialog>
40 
41 // Boost
42 #include <boost/numeric/ublas/matrix.hpp>
43 
44 namespace Ui { class GeostatisticalMethodsDialogForm; }
45 
46 // Forward declarations
47 
48 namespace te
49 {
50  namespace sa
51  {
52 // Forward declarations
53 
54  class TESAEXPORT GeostatisticalMethodsDialog : public QDialog
55  {
56  Q_OBJECT
57 
58  public:
59 
60  GeostatisticalMethodsDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
61 
63 
64  /*!
65  \brief Set the layer that can be used
66 
67  \param layers List of AbstractLayerPtr
68  */
69  void setLayers(std::list<te::map::AbstractLayerPtr> layers);
70 
71  protected slots:
72 
73  void onInputLayerComboBoxActivated(int index);
74 
75  void onApplyPushButtonClicked();
76 
77  void onChangeAttrToolButtonClicked();
78 
79  void calculate();
80 
81  protected:
82 
83  void fillParameters();
84 
85  void resetAdjustParameters(double mean, double variance);
86 
87  void plot();
88 
89  private:
90 
91  std::auto_ptr<Ui::GeostatisticalMethodsDialogForm> m_ui;
92 
94 
95  boost::numeric::ublas::matrix<double> m_methodMatrix;
96 
97  boost::numeric::ublas::matrix<double> m_modelMatrix;
98 
100 
103 
106  };
107  } // end namespace sa
108 } // end namespace te
109 
110 #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