ComposeBandsWizardPage.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/ComposeBandsWizardPage.h
22 
23  \brief This file defines a class for a Compose / Decompose Bands Wizard page.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_COMPOSEBANDSWIZARDPAGE_H
27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_COMPOSEBANDSWIZARDPAGE_H
28 
29 // TerraLib
30 #include "../../../maptools/AbstractLayer.h"
31 #include "../../../raster/Interpolator.h"
32 #include "../Config.h"
33 
34 // STL
35 #include <memory>
36 
37 // Qt
38 #include <QComboBox>
39 #include <QWizardPage>
40 
41 
42 // Forward declaration
43 namespace Ui { class ComposeBandsWizardPageForm; }
44 
45 namespace te
46 {
47  namespace rst { class Raster; }
48 
49  namespace qt
50  {
51  namespace widgets
52  {
53  /*!
54  \class ComposeBandsWizardPage
55 
56  \brief This class is GUI used to defines a class for a Compose / Decompose Bands Wizard page.
57  */
58  class TEQTWIDGETSEXPORT ComposeBandsWizardPage : public QWizardPage
59  {
60  Q_OBJECT
61 
62  public:
63 
64  ComposeBandsWizardPage(QWidget* parent = 0);
65 
67 
68  bool isComplete() const;
69 
70  public:
71 
72  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
73 
74  bool isCompose();
75 
76  bool isDecompose();
77 
78  void getComposeParameters(std::vector<const te::rst::Raster*>& rasters, std::vector<unsigned int>& bands, te::rst::Interpolator::Method& interpMethod);
79 
80  void getDecomposeParameters(te::rst::Raster*& raster, std::vector<unsigned int>& bands);
81 
82  public slots:
83 
84  void onAddToolButtonClicked();
85 
86  void onRemoveToolButtonClicked();
87 
88  void onLayerCmbActivated(int index);
89 
90  protected:
91 
92  void fillInterpolatorTypes();
93 
94  private:
95 
96  std::auto_ptr<Ui::ComposeBandsWizardPageForm> m_ui;
97 
98  std::list<te::map::AbstractLayerPtr> m_layerList;
99 
100  std::map<QComboBox*, int> m_cmbMap;
101  };
102 
103  } // end namespace widgets
104  } // end namespace qt
105 } // end namespace te
106 
107 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_COMPOSEBANDSWIZARDPAGE_H
std::auto_ptr< Ui::ComposeBandsWizardPageForm > m_ui
InterpolationMethod
Allowed interpolation methods.
Definition: Enums.h:92
std::list< te::map::AbstractLayerPtr > m_layerList
This class is GUI used to defines a class for a Compose / Decompose Bands Wizard page.
An abstract class for raster data strucutures.
Definition: Raster.h:71
URI C++ Library.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63