Loading...
Searching...
No Matches
VectorizationWizardPage.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_WIDGETS_VECTORIZATIONWIZARDPAGE_H
22#define TE_QT_WIDGETS_VECTORIZATIONWIZARDPAGE_H
23
24//Terralib
25#ifndef Q_MOC_RUN
26#include "../../../dataaccess/datasource/DataSourceInfo.h"
27#include "../../../maptools/AbstractLayer.h"
28#endif
29#include "../Config.h"
30
31//Qt
32#include <QWizardPage>
33
34//STL
35#include <memory>
36
37//Forward declarations
38namespace Ui
39{
40 class VectorizationWizardPageForm;
41}
42
43namespace te
44{
45 namespace rst { class Raster; }
46
47 namespace qt
48 {
49 namespace widgets
50 {
51
52 class TEQTWIDGETSEXPORT VectorizationWizardPage : public QWizardPage
53 {
54 Q_OBJECT
55
56 public:
57 VectorizationWizardPage(QWidget* parent=0);
58
60
61 bool isComplete() const;
62
63 public:
64
65 /*!
66 \brief This method is used to set the selected layer for vectorization operation
67
68 \param layer The layer ptr
69
70 \note This layer MUST HAVE a valid raster object.
71 */
73
74 std::unique_ptr<te::rst::Raster> getRaster();
75
76 unsigned int getBand();
77
78 bool hasMaxGeom(unsigned int& maxGeom);
79
81
83
84 std::string getLayerName();
85
86 std::string getRepositoryName();
87
88 protected slots:
89
91
93
94 private:
95
96 std::unique_ptr<Ui::VectorizationWizardPageForm> m_ui;
97
99
100 te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
101
103 };
104
105 } // namespace widgets
106 } // namespace qt
107} // namespace te
108
109#endif // TE_QT_WIDGETS_VECTORIZATIONWIZARDPAGE_H
std::unique_ptr< te::rst::Raster > getRaster()
te::da::DataSourceInfoPtr getDataSourceInfo()
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
std::unique_ptr< Ui::VectorizationWizardPageForm > m_ui
void setLayer(te::map::AbstractLayerPtr layer)
This method is used to set the selected layer for vectorization operation.
bool hasMaxGeom(unsigned int &maxGeom)
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
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