FilterWizardPage.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/FilterWizardPage.h
22 
23  \brief This file has the FilterWizardPage class.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_FILTERWIZARDPAGE_H
27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_FILTERWIZARDPAGE_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../../maptools/AbstractLayer.h"
32 #include "../../../rp/Filter.h"
33 #endif
34 #include "../Config.h"
35 
36 // STL
37 #include <memory>
38 
39 //Boost
40 #include <boost/numeric/ublas/matrix.hpp>
41 
42 // Qt
43 #include <QWizardPage>
44 
45 namespace Ui { class FilterWizardPageForm; }
46 
47 namespace te
48 {
49  namespace qt
50  {
51  namespace widgets
52  {
53  //forward declaration
54  class LayerSelectorWidget;
55  class OutputRasterParametersWidget;
56  class RasterNavigatorWidget;
57 
58  class TEQTWIDGETSEXPORT FilterWizardPage : public QWizardPage
59  {
60  Q_OBJECT
61 
62  public:
63 
64  FilterWizardPage(QWidget* parent = 0);
65 
67 
68  bool isComplete() const;
69 
70  public:
71 
72  /*!
73  \brief This method is used to set the selected layer for mixture model operation
74 
75  \param layer The layer ptr
76 
77  \note This layer MUST HAVE a valid raster object.
78  */
79  void set(te::map::AbstractLayerPtr layer);
80 
81  te::rp::Filter::InputParameters getInputParams();
82 
83  te::rp::Filter::OutputParameters getOutputParams();
84 
85  public slots:
86 
87  void onFilterTypeComboBoxActivated(int index);
88 
89  void onMaskToolButtonClicked();
90 
91  void onLoadMaskToolButtonClicked();
92 
93  void apply();
94 
95  protected:
96 
97  void listBands();
98 
99  void listFilterTypes();
100 
101  private:
102 
103  std::auto_ptr<Ui::FilterWizardPageForm> m_ui;
104  std::auto_ptr<RasterNavigatorWidget> m_navigator;
105 
107 
108  boost::numeric::ublas::matrix<double> m_window; //!< User defined convolution window.
109  };
110  } // end namespace widgets
111  } // end namespace qt
112 } // end namespace te
113 
114 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_FILTERWIZARDPAGE_H
std::auto_ptr< Ui::FilterWizardPageForm > m_ui
boost::numeric::ublas::matrix< double > m_window
User defined convolution window.
URI C++ Library.
Filter input parameters.
Definition: Filter.h:55
te::map::AbstractLayerPtr m_layer
std::auto_ptr< RasterNavigatorWidget > m_navigator
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
Filter output parameters.
Definition: Filter.h:109
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr