Loading...
Searching...
No Matches
RasterSymbolizerDialog.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/SelectedChannelWidget.h
22
23 \brief A widget used to build SelectedChannel element.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_RASTERSYMBOLIZERDIALOG_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_RASTERSYMBOLIZERDIALOG_H
28
29// TerraLib
30#include "../Config.h"
31
32// Qt
33#include <QDialog>
34
35// STL
36#include <memory>
37#include <string>
38#include <vector>
39
40// Forward declaraion
41namespace Ui { class RasterSymbolizerDialogForm; }
42
43namespace te
44{
45// Forward declarations
46 namespace se
47 {
48 class RasterSymbolizer;
49 class Symbolizer;
50 class ColorMap;
51 }
52
53 namespace rst
54 {
55 class RasterProperty;
56 class Raster;
57 }
58
59 namespace qt
60 {
61 namespace widgets
62 {
63// Forward declarations
64 class ChannelSelectionWidget;
65 class ColorMapWidget;
66 class OverlapBehaviorWidget;
67 class ContrastEnhancementWidget;
68 class ShadedReliefWidget;
69 class ImageOutlineWidget;
70 class HorizontalSliderWidget;
71 class RasterSymbolizerWidget;
72
73
74 /*!
75 \class RasterSymbolizerDialog
76
77 \brief A dialog used to build a RasterSymbolizerDialog element.
78 */
80 {
81 Q_OBJECT
82
83 public:
84
85 /** @name Initializer Methods
86 * Methods related to instantiation and destruction.
87 */
88 //@{
89
90 /*! \brief Constructs a RasterSymbolizerDialog dialog which is a child of parent, with widget flags set to f. */
91 RasterSymbolizerDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
92
93 /*! \brief Destructor. */
95
96 //@}
97
98 public:
99
100 /*!
101 \brief Sets the raster information
102
103 \param p Raster property
104
105 \note The class will NOT take the ownership of the pointer.
106 */
108
110
112
113 protected:
114
115 /*! \brief Updates the widget form based on internal mark element. */
116 void updateUi();
117
118 protected slots:
119
128
129 signals:
130
131
132
133 private:
134
135 std::unique_ptr<Ui::RasterSymbolizerDialogForm> m_ui; //!< Dialog form.
142 te::qt::widgets::HorizontalSliderWidget* m_sliderWidget; //!< Slider widget used for opacity information.
144
145 te::se::RasterSymbolizer* m_symbolizer; //!< SE Raster Symbolizer element.
146 te::se::ColorMap* m_colorMap; //!< SE Color Map element.
147
148 te::rst::RasterProperty* m_property; //!< Raster Property object.
149 te::rst::Raster* m_raster; //!< Raster Object.
150 };
151
152 } // end namespace widgets
153 } // end namespace qt
154} // end namespace te
155
156#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_RASTERSYMBOLIZERDIALOG_H
A dialog used to build a ChannelSelection element.
A dialog used to build a ColorMap element.
A dialog used to build a ContrastEnhancementWidget element.
A dialog used to build a ImageOutlineWidget element.
A dialog used to build a OverlapBehaviorWidget element.
A dialog used to build a RasterSymbolizerDialog element.
te::qt::widgets::ColorMapWidget * m_colorMapWidget
Color Map Widget form.
te::rst::RasterProperty * m_property
Raster Property object.
te::se::Symbolizer * getRasterSymbolizer() const
void updateUi()
Updates the widget form based on internal mark element.
te::qt::widgets::RasterSymbolizerWidget * m_rasterWidget
Raster Symbolizer widget.
void setRasterProperty(te::rst::Raster *r, te::rst::RasterProperty *p)
Sets the raster information.
te::se::ColorMap * m_colorMap
SE Color Map element.
std::unique_ptr< Ui::RasterSymbolizerDialogForm > m_ui
Dialog form.
te::qt::widgets::HorizontalSliderWidget * m_sliderWidget
Slider widget used for opacity information.
te::qt::widgets::ShadedReliefWidget * m_shadedReliefWidget
Shaded Relief Widget form.
RasterSymbolizerDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a RasterSymbolizerDialog dialog which is a child of parent, with widget flags set to f.
te::qt::widgets::ChannelSelectionWidget * m_channelSelectionWidget
Channel Selection Widget form.
te::qt::widgets::ContrastEnhancementWidget * m_contrastWidget
Constrast Widget form.
te::se::RasterSymbolizer * m_symbolizer
SE Raster Symbolizer element.
void setRasterSymbolizer(const te::se::RasterSymbolizer *rs)
te::rst::Raster * m_raster
Raster Object.
te::qt::widgets::OverlapBehaviorWidget * m_overlapBehaviorWidget
Overlap Behavior Widget form.
te::qt::widgets::ImageOutlineWidget * m_imageOutlineWidget
Image Outline Widget form.
A widget used to configure a Raster Symbolizer SE element.
A dialog used to build a ShadedRelief element.
Raster property.
An abstract class for raster data strucutures.
Definition: Raster.h:72
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...
Definition: ColorMap.h:62
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos,...
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:81
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