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