Loading...
Searching...
No Matches
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
48namespace Ui { class GeostatisticalMethodsDialogForm; }
49
50// Forward declarations
51
52namespace te
53{
54 namespace sa
55 {
56// Forward declarations
57
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
78
80
82
83 void calculate();
84
85 protected:
86
88
89 void resetAdjustParameters(double mean, double variance);
90
91 void plot();
92
93 private:
94
95 std::unique_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
A class to represent a chart display.
Definition: ChartDisplay.h:66
A class to represent a scatter chart.
Definition: ScatterChart.h:56
A class to represent a scatter.
Definition: Scatter.h:52
Geostatistics is used for modelling spatial data. It provides accurate and reliable estimations of ph...
std::unique_ptr< Ui::GeostatisticalMethodsDialogForm > m_ui
te::qt::widgets::ScatterChart * m_scatterChartModel
GeostatisticalMethodsDialog(QWidget *parent=0, Qt::WindowFlags f=0)
void onInputLayerComboBoxActivated(int index)
void resetAdjustParameters(double mean, double variance)
boost::numeric::ublas::matrix< double > m_modelMatrix
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used.
te::qt::widgets::ScatterChart * m_scatterChartMethod
boost::numeric::ublas::matrix< double > m_methodMatrix
te::qt::widgets::ChartDisplay * m_chartDisplay
TerraLib.
#define slots
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:133