Loading...
Searching...
No Matches
GroupingDialog.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/GroupingDialog.h
22
23 \brief A dialog used to build a grouping.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGDIALOG_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGDIALOG_H
28
29// TerraLib
30#ifndef Q_MOC_RUN
31#include "../../../maptools/AbstractLayer.h"
32#endif
33#include "../../../maptools/Grouping.h"
34#include "../Config.h"
35
36// Qt
37#include <QDialog>
38
39// STL
40#include <memory>
41
42// Forward declaraion
43namespace Ui { class GroupingDialogForm; }
44
45namespace te
46{
47 namespace map { class Grouping; }
48
49 namespace rst { class Raster; }
50
51 namespace se { class RasterSymbolizer; }
52
53 namespace qt
54 {
55 namespace widgets
56 {
57// Forward declarations
58 class ColorMapWidget;
59 class GroupingWidget;
60
61 /*!
62 \class GroupingDialog
63
64 \brief A dialog used to build a grouping.
65
66 */
67 class TEQTWIDGETSEXPORT GroupingDialog : public QDialog
68 {
69 Q_OBJECT
70
71 public:
72
73 /** @name Initializer Methods
74 * Methods related to instantiation and destruction.
75 */
76 //@{
77
78 /*! \brief Constructs a basic fill dialog which is a child of parent, with widget flags set to f. */
79 GroupingDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
80
81 /*! \brief Destructor. */
83
84 //@}
85
86 public:
87
88 void setLayers(te::map::AbstractLayerPtr selectedLayer, std::vector<te::map::AbstractLayerPtr> allLayers);
89
90 protected:
91
93
95
96 protected slots:
97
99
101
102 private:
103
104 std::unique_ptr<Ui::GroupingDialogForm> m_ui; //!< Dialog form.
105 te::qt::widgets::GroupingWidget* m_groupingWidget; //!< Grouping Widget used to configure the grouping operation.
106 te::qt::widgets::ColorMapWidget* m_colorMapWidget; //!< Color Map Widget used to configure the grouping operation over a raster.
107
109 std::unique_ptr<te::rst::Raster> m_raster;
111
112 std::vector<te::map::AbstractLayerPtr> m_allLayers; //!< All Project Layers with Grouping.
113 };
114
115 } // end namespace widgets
116 } // end namespace qt
117} // end namespace te
118
119#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGDIALOG_H
A dialog used to build a ColorMap element.
A dialog used to build a grouping.
std::vector< te::map::AbstractLayerPtr > m_allLayers
All Project Layers with Grouping.
te::qt::widgets::GroupingWidget * m_groupingWidget
Grouping Widget used to configure the grouping operation.
void setLayers(te::map::AbstractLayerPtr selectedLayer, std::vector< te::map::AbstractLayerPtr > allLayers)
std::unique_ptr< Ui::GroupingDialogForm > m_ui
Dialog form.
std::unique_ptr< te::rst::Raster > m_raster
te::map::AbstractLayerPtr m_layer
Layer ptr.
te::se::RasterSymbolizer * m_rasterSymb
te::qt::widgets::ColorMapWidget * m_colorMapWidget
Color Map Widget used to configure the grouping operation over a raster.
GroupingDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a basic fill dialog which is a child of parent, with widget flags set to f.
A widget used to build a grouping.
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos,...
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
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