Loading...
Searching...
No Matches
ChannelSelectionWidget.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/se/ChannelSelectionWidget.h
22
23 \brief A widget used to build
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_CHANNELSELECTIONWIDGET_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_CHANNELSELECTIONWIDGET_H
28
29// TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QWidget>
34
35// STL
36#include <memory>
37#include <string>
38#include <vector>
39
40// Forward declaraion
41namespace Ui { class ChannelSelectionWidgetForm; }
42
43namespace te
44{
45// Forward declarations
46 namespace se
47 {
48 class ChannelSelection;
49 class SelectedChannel;
50 }
51
52 namespace rst
53 {
54 class BandProperty;
55 }
56
57 namespace qt
58 {
59 namespace widgets
60 {
61// Forward declarations
62 class SelectedChannelWidget;
63
64
65 /*!
66 \class ChannelSelectionWidget
67
68 \brief A dialog used to build a ChannelSelection element.
69 */
71 {
72 Q_OBJECT
73
74 public:
75
76 /** @name Initializer Methods
77 * Methods related to instantiation and destruction.
78 */
79 //@{
80
81 /*! \brief Constructs a ChannelSelectionWidget dialog which is a child of parent, with widget flags set to f. */
82 ChannelSelectionWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
83
84 /*! \brief Destructor. */
86
87 //@}
88
89 public:
90
92
94
95 /*!
96 \brief Sets the band information
97
98 \param p Vector with band property
99
100 \note The class will NOT take the ownership of the pointer.
101 */
102 void setProperty(std::vector<te::rst::BandProperty*>& p);
103
104 protected:
105
106
107 /*! \brief Internal method to initialize the widget (e.g.: color, combos, icons, etc.) */
109
110 /*! \brief Updates the widget form based on internal mark element. */
111 void updateUi();
112
113 protected slots:
114
117
122
123
125
126 signals:
127
128
129 private:
130
131 std::unique_ptr<Ui::ChannelSelectionWidgetForm> m_ui; //!< Dialog form.
133
134 te::se::SelectedChannel* m_scRed; //!< SE Selected Channel element for red band.
135 te::se::SelectedChannel* m_scGreen; //!< SE Selected Channel element for red band.
136 te::se::SelectedChannel* m_scBlue; //!< SE Selected Channel element for red band.
137 te::se::SelectedChannel* m_scMono; //!< SE Selected Channel element for red band.
138
139 te::se::ChannelSelection* m_cs; //!< SE Channel Selection element.
140
141 std::vector<te::rst::BandProperty*> m_bands; //!< A vector of bands description.
142
143 };
144
145 } // end namespace widgets
146 } // end namespace qt
147} // end namespace te
148
149#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_CHANNELSELECTIONWIDGET_H
A dialog used to build a ChannelSelection element.
ChannelSelectionWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a ChannelSelectionWidget dialog which is a child of parent, with widget flags set to f.
te::se::ChannelSelection * m_cs
SE Channel Selection element.
std::vector< te::rst::BandProperty * > m_bands
A vector of bands description.
te::se::SelectedChannel * m_scGreen
SE Selected Channel element for red band.
te::se::SelectedChannel * m_scBlue
SE Selected Channel element for red band.
void setProperty(std::vector< te::rst::BandProperty * > &p)
Sets the band information.
te::se::SelectedChannel * m_scRed
SE Selected Channel element for red band.
void updateUi()
Updates the widget form based on internal mark element.
te::se::ChannelSelection * getChannelSelection() const
te::se::SelectedChannel * m_scMono
SE Selected Channel element for red band.
void initialize()
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
te::qt::widgets::SelectedChannelWidget * m_sCWidget
Selected Channel Widget.
void setChannelSelection(const te::se::ChannelSelection *cs)
std::unique_ptr< Ui::ChannelSelectionWidgetForm > m_ui
Dialog form.
A dialog used to build a SelectedChannelWidget element.
ChannelSelection specifies the false-color channel selection for a multi-spectral raster source (such...
A selected channel to be display.
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