ColorTransformWizardPage.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/ColorTransformWizardPage.h
22 
23  \brief This file defines a class for a ColorTransform Wizard page.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_RP_INTERNAL_COLORTRANSFORMWIZARDPAGE_H
27 #define __TERRALIB_QT_WIDGETS_RP_INTERNAL_COLORTRANSFORMWIZARDPAGE_H
28 
29 // TerraLib
30 #include "../../../maptools/AbstractLayer.h"
31 #include "../Config.h"
32 
33 // STL
34 #include <memory>
35 
36 // Qt
37 #include <QComboBox>
38 #include <QWizardPage>
39 
40 
41 // Forward declaration
42 namespace Ui { class ColorTransformWizardPageForm; }
43 
44 namespace te
45 {
46  namespace qt
47  {
48  namespace widgets
49  {
50  /*!
51  \class ColorTransformWizardPage
52 
53  \brief This class is GUI used to define the colorTransform parameters for the RP colorTransform operation.
54  */
55  class TEQTWIDGETSEXPORT ColorTransformWizardPage : public QWizardPage
56  {
57  Q_OBJECT
58 
60  {
62  COLORTRANSFORM_IHS2RGB
63  };
64 
65  public:
66 
67  ColorTransformWizardPage(QWidget* parent = 0);
68 
70 
71  bool isComplete() const;
72 
73  public:
74 
75  bool isRGB2IHS();
76 
77  bool isIHS2RGB();
78 
79  te::rst::Raster* getRGBRaster();
80 
81  unsigned int getRGBRBand();
82  unsigned int getRGBGBand();
83  unsigned int getRGBBBand();
84 
85  double getRGBMinValue();
86  double getRGBMaxValue();
87 
88  te::rst::Raster* getIHSRaster();
89 
90  unsigned int getIHSIBand();
91  unsigned int getIHSHBand();
92  unsigned int getIHSSBand();
93 
94  double getIHSMinValue();
95  double getIHSMaxValue();
96 
97 
98  void setList(std::list<te::map::AbstractLayerPtr>& layerList);
99 
100  public slots:
101 
102  void rgbRComboBoxActivated(int index);
103  void rgbGComboBoxActivated(int index);
104  void rgbBComboBoxActivated(int index);
105 
106  void ihsIComboBoxActivated(int index);
107  void ihsHComboBoxActivated(int index);
108  void ihsSComboBoxActivated(int index);
109 
110  protected:
111 
112  void fillColorTransformTypes();
113 
114  void getRasterBands(QComboBox* layer, int index, QComboBox* band);
115 
116  private:
117 
118  std::auto_ptr<Ui::ColorTransformWizardPageForm> m_ui;
119 
120  std::list<te::map::AbstractLayerPtr> m_layerList;
121 
122  };
123 
124  } // end namespace widgets
125  } // end namespace qt
126 } // end namespace te
127 
128 #endif // __TERRALIB_QT_WIDGETS_RP_INTERNAL_COLORTRANSFORMWIZARDPAGE_H
An abstract class for raster data strucutures.
Definition: Raster.h:71
std::auto_ptr< Ui::ColorTransformWizardPageForm > m_ui
URI C++ Library.
std::list< te::map::AbstractLayerPtr > m_layerList
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
This class is GUI used to define the colorTransform parameters for the RP colorTransform operation...