Loading...
Searching...
No Matches
BoundaryExtractionWizard.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#ifndef TE_QT_PLUGIN_RP_HAVE_BOUNDARYEXTRACTIONWIZARD_H
22#define TE_QT_PLUGIN_RP_HAVE_BOUNDARYEXTRACTIONWIZARD_H
23
24//TerraLib
25#ifndef Q_MOC_RUN
26#include "../../../dataaccess/datasource/DataSource.h"
27#include "../../../maptools/AbstractLayer.h"
28#endif
29#include "../Config.h"
30
31//Qt
32#include <QWizard>
33
34//STL
35#include <memory>
36#include <vector>
37
38namespace te
39{
40 //forward declarations
41 namespace da { class DataSetType; }
42 namespace gm { class Geometry; }
43 namespace mem { class DataSet; }
44
45 namespace qt
46 {
47 namespace widgets
48 {
49 //Forward declarations
50 class BoundaryExtractionWizardPage;
51 class LayerSearchWizardPage;
52
54 {
55 Q_OBJECT
56
57 public:
58
59 BoundaryExtractionWizard(QWidget* parent=0);
60
62
64
65 void setList(std::list<te::map::AbstractLayerPtr>& layerList);
66
68
69 protected:
70
71 void addPages();
72
73 bool execute();
74
75 /*! Function used to create the output dataset type */
76 std::unique_ptr<te::da::DataSetType> createDataSetType(std::string dataSetName, int srid);
77
78 /*! Function used to create the output data */
79 std::unique_ptr<te::mem::DataSet> createDataSet(te::da::DataSetType* dsType, const std::vector<te::gm::Geometry*>& geoms, const std::vector< double >& geomsValues );
80
81 /*! Function used to save the output dataset */
82 void saveDataSet(te::mem::DataSet* dataSet, te::da::DataSetType* dsType, te::da::DataSourcePtr ds, std::string dataSetName);
83
84 protected slots:
85
86 void onPageChanged(int index);
87
88 private:
89
90 std::unique_ptr<te::qt::widgets::BoundaryExtractionWizardPage> m_boundaryPage;
91 std::unique_ptr<te::qt::widgets::LayerSearchWizardPage> m_layerSearchPage;
92
94 };
95
96 } // namespace widgets
97 } // namespace qt
98} // namespace te
99
100#endif // TE_QT_PLUGIN_RP_HAVE_BOUNDARYEXTRACTIONWIZARD_H
A class that models the description of a dataset.
Definition: DataSetType.h:73
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
Definition: DataSet.h:66
void saveDataSet(te::mem::DataSet *dataSet, te::da::DataSetType *dsType, te::da::DataSourcePtr ds, std::string dataSetName)
std::unique_ptr< te::qt::widgets::BoundaryExtractionWizardPage > m_boundaryPage
std::unique_ptr< te::da::DataSetType > createDataSetType(std::string dataSetName, int srid)
std::unique_ptr< te::qt::widgets::LayerSearchWizardPage > m_layerSearchPage
std::unique_ptr< te::mem::DataSet > createDataSet(te::da::DataSetType *dsType, const std::vector< te::gm::Geometry * > &geoms, const std::vector< double > &geomsValues)
te::map::AbstractLayerPtr getOutputLayer()
void setList(std::list< te::map::AbstractLayerPtr > &layerList)
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
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