Loading...
Searching...
No Matches
MultiSourceClassifierFirstDialog.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/qt/widgets/rp/MultiSourceClassifierFirstDialog.h
22
23 \brief A first dialog used to execute MultiSource image classification.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_MULTISOURCECLASSIFIERFIRSTDIALOG_H
27#define __TERRALIB_QT_WIDGETS_RP_INTERNAL_MULTISOURCECLASSIFIERFIRSTDIALOG_H
28
29#include "../../Config.h"
30
31// TerraLib
32#include "../../../../raster/Raster.h"
33#include "../../../../rp/radar/MultiSourceClassifier.h"
34#include "../../../../maptools/AbstractLayer.h"
35
36// Qt
37#include <QDialog>
38
39// STL
40#include <map>
41#include <string>
42#include <vector>
43
44// Boost
45#include <boost/shared_ptr.hpp>
46
47// Forward user interface declaration
48namespace Ui
49{
50 class MultiSourceClassifierFirstDialogForm;
51}
52
53namespace te
54{
55 namespace qt
56 {
57 namespace widgets
58 {
59 /*!
60 \class MultiSourceClassifierFirstDialog
61
62 \brief A first dialog used to execute MultiSource image classification.
63 */
65 {
66 Q_OBJECT
67
68 public:
69
70 /*!
71 \brief Constructs a basic dialog which is a child of parent, with widget flags set to f.
72
73 \param parent Parent widget pointer.
74 \param f Widget flags.
75 */
77 QWidget* parent = 0,
78 Qt::WindowFlags f = 0);
79
80 /*! \brief Destructor. */
82
83 /*!
84 \brief Returns the output result raster.
85
86 \param outputRasterPtr A pointer to the output result raster
87
88 \return true if OK, false on errors.
89 */
90 bool getOutputRaster(boost::shared_ptr< te::rst::Raster >& outputRasterPtr);
91
92 void setList(std::list<te::map::AbstractLayerPtr>& layerList);
93
96 te::map::AbstractLayerPtr& mapPValueLayer );
97
98 public slots:
99
100 void closeEvent(QCloseEvent* e);
101
102 signals:
103
105
106 void closeTool();
107
108 protected slots:
109
111
113
115
117
119
121
123
125
127
129
131
133
134 private:
135
136 Ui::MultiSourceClassifierFirstDialogForm* m_ui; //!< User interface.
138
139 std::vector< std::map<std::string, std::string> > m_rasterInfo;
140 std::string m_outpuRasterDSType; //!< Output raster data source type (as described in te::rst::RasterFactory).
141 std::map<std::string, std::string> m_outpuRasterInfo; //!< The necessary information to create the raster (as described in te::rst::RasterFactory).
142 boost::shared_ptr<te::rst::Raster> m_outputRasterPtr; //!< Output raster pointer.
143 std::list<te::map::AbstractLayerPtr> m_layerList;
147
149
151
152 std::string getCombinationType();
153 };
154
155 } // end namespace widgets
156 } // end namespace qt
157} // end namespace te
158
159#endif
A first dialog used to execute MultiSource image classification.
std::map< std::string, std::string > m_outpuRasterInfo
The necessary information to create the raster (as described in te::rst::RasterFactory).
boost::shared_ptr< te::rst::Raster > m_outputRasterPtr
Output raster pointer.
std::string m_outpuRasterDSType
Output raster data source type (as described in te::rst::RasterFactory).
void setList(std::list< te::map::AbstractLayerPtr > &layerList)
te::rp::radar::MultiSourceClassifier::OutputParameters m_algoOutputParams
std::vector< std::map< std::string, std::string > > m_rasterInfo
void getOutputLayers(te::map::AbstractLayerPtr &classImageLayer, te::map::AbstractLayerPtr &mapLayer, te::map::AbstractLayerPtr &mapPValueLayer)
MultiSourceClassifierFirstDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a basic dialog which is a child of parent, with widget flags set to f.
te::rp::radar::MultiSourceClassifier::InputParameters m_algoInputParams
Ui::MultiSourceClassifierFirstDialogForm * m_ui
User interface.
bool getOutputRaster(boost::shared_ptr< te::rst::Raster > &outputRasterPtr)
Returns the output result raster.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63