RestorationWizardPage.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_RESTORATIONWIZARDPAGE_H
22 #define TE_QT_WIDGETS_RESTORATIONWIZARDPAGE_H
23 
24 #include "ui/ui_RestorationWizardPageForm.h"
25 #include "../../../maptools/AbstractLayer.h"
26 #include "../Config.h"
27 #include "../../../rp/Restoration.h"
28 
29 #include <QWizardPage>
30 
31 #include <memory>
32 #include <vector>
33 
34 namespace te
35 {
36  namespace rst { class Raster; }
37 
38  namespace qt
39  {
40  namespace widgets
41  {
42 
43  class TEQTWIDGETSEXPORT RestorationWizardPage : public QWizardPage
44  {
45  Q_OBJECT
46 
47  public:
48 
49  std::unique_ptr<Ui::RestorationWizardPageForm> m_uiPageForm;
50 
51  RestorationWizardPage(QWidget* parent=0);
52 
54 
55  bool isComplete() const;
56 
57  /*!
58  \brief This method is used to set the selected layer for vectorization operation
59 
60  \param layer The layer ptr
61 
62  \note This layer MUST HAVE a valid raster object.
63  */
65 
66  /*!
67  \brief return the current layer pointer or null pointer.
68  \return return the current layer pointer or null pointer.
69  */
71 
72  /*!
73  \brief Return the current selected band designation indexes.
74  \param bandsIndexes Return the current selected band designation indexes.
75  */
76  void getSelectedInBandDesignations( std::vector< unsigned int >& bandsIndexes ) const;
77 
78  /*!
79  \brief Return the current selected sensor type.
80  */
82 
83  /*!
84  \brief Return the current selected sampling factor.
85  */
88 
89  protected:
90 
92 
93  protected slots:
94 
96 
98 
100  };
101 
102  } // namespace widgets
103  } // namespace qt
104 } // namespace te
105 
106 #endif // TE_QT_WIDGETS_RESTORATIONWIZARDPAGE_H
This is the base class for layers.
Definition: AbstractLayer.h:78
void getSelectedInBandDesignations(std::vector< unsigned int > &bandsIndexes) const
Return the current selected band designation indexes.
te::map::AbstractLayer * getLayerPtr()
return the current layer pointer or null pointer.
te::rp::Restoration::InputParameters::SensorType getSensorType() const
Return the current selected sensor type.
std::unique_ptr< Ui::RestorationWizardPageForm > m_uiPageForm
void setLayer(te::map::AbstractLayerPtr layer)
This method is used to set the selected layer for vectorization operation.
void onSamplingFactorCurrentIndexChanged(int index)
te::rp::Restoration::InputParameters::SamplingFactorType getSamplingFactor() const
Return the current selected sampling factor.
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