BoundaryExtractionWizardPage.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_BOUNDARYEXTRACTIONWIZARDPAGE_H
22 #define TE_QT_WIDGETS_BOUNDARYEXTRACTIONWIZARDPAGE_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
38 namespace Ui
39 {
40  class BoundaryExtractionWizardPageForm;
41 }
42 
43 namespace te
44 {
45  namespace rst { class Raster; }
46 
47  namespace qt
48  {
49  namespace widgets
50  {
51 
53  {
54  Q_OBJECT
55 
56  public:
57  BoundaryExtractionWizardPage(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  double getNoDataValue();
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::BoundaryExtractionWizardPageForm> m_ui;
97 
99 
100  te::da::DataSourceInfoPtr m_outputDatasource; //!< DataSource information.
101 
102  bool m_toFile;
103  };
104 
105  } // namespace widgets
106  } // namespace qt
107 } // namespace te
108 
109 #endif // TE_QT_WIDGETS_BOUNDARYEXTRACTIONWIZARDPAGE_H
te::qt::widgets::BoundaryExtractionWizardPage::onTargetDatasourceToolButtonPressed
void onTargetDatasourceToolButtonPressed()
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::qt::widgets::BoundaryExtractionWizardPage::outputDataSourceToFile
bool outputDataSourceToFile()
te::qt::widgets::BoundaryExtractionWizardPage::getBand
unsigned int getBand()
te::map::AbstractLayerPtr
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
Definition: AbstractLayer.h:626
te::da::DataSourceInfoPtr
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
Definition: DataSourceInfo.h:107
te::qt::widgets::BoundaryExtractionWizardPage::getLayerName
std::string getLayerName()
te::qt::widgets::BoundaryExtractionWizardPage::m_layer
te::map::AbstractLayerPtr m_layer
Definition: BoundaryExtractionWizardPage.h:98
te::qt::widgets::BoundaryExtractionWizardPage::isComplete
bool isComplete() const
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::qt::widgets::BoundaryExtractionWizardPage::onTargetFileToolButtonPressed
void onTargetFileToolButtonPressed()
Ui
Definition: ConfigInputAddressDialog.h:44
te::qt::widgets::BoundaryExtractionWizardPage::~BoundaryExtractionWizardPage
~BoundaryExtractionWizardPage()
te::qt::widgets::BoundaryExtractionWizardPage::getRepositoryName
std::string getRepositoryName()
te::qt::widgets::BoundaryExtractionWizardPage::getNoDataValue
double getNoDataValue()
te::qt::widgets::BoundaryExtractionWizardPage::getDataSourceInfo
te::da::DataSourceInfoPtr getDataSourceInfo()
te::qt::widgets::BoundaryExtractionWizardPage::m_ui
std::unique_ptr< Ui::BoundaryExtractionWizardPageForm > m_ui
Definition: BoundaryExtractionWizardPage.h:96
te::qt::widgets::BoundaryExtractionWizardPage::setLayer
void setLayer(te::map::AbstractLayerPtr layer)
This method is used to set the selected layer for vectorization operation.
te::qt::widgets::BoundaryExtractionWizardPage::m_toFile
bool m_toFile
Definition: BoundaryExtractionWizardPage.h:102
slots
#define slots
Definition: VirtualMachine.h:48
te::qt::widgets::BoundaryExtractionWizardPage::BoundaryExtractionWizardPage
BoundaryExtractionWizardPage(QWidget *parent=0)
te::qt::widgets::BoundaryExtractionWizardPage::m_outputDatasource
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
Definition: BoundaryExtractionWizardPage.h:100
te::qt::widgets::BoundaryExtractionWizardPage
Definition: BoundaryExtractionWizardPage.h:53
te::qt::widgets::BoundaryExtractionWizardPage::getRaster
std::unique_ptr< te::rst::Raster > getRaster()