WMSLayerItem.h
Go to the documentation of this file.
1 /* Copyright (C) 2016 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/ws/ogc/wms/qt/WMSLayerItem.h
22 
23  \brief QTreeWidgetItem extension to WMS Layers.
24 
25  \author Emerson Moraes
26 */
27 
28 #ifndef __TERRALIB_WS_OGC_WMS_QT_WMSLAYERITEM_H
29 #define __TERRALIB_WS_OGC_WMS_QT_WMSLAYERITEM_H
30 
31 #include "Config.h"
32 
33 
34 //TerraLib
35 #include "../client/DataTypes.h"
36 
37 #include <QTreeWidget>
38 #include <QTreeWidgetItem>
39 
40 namespace te
41 {
42  namespace ws
43  {
44  namespace ogc
45  {
46  namespace wms
47  {
48 
49  namespace qt
50  {
51 
52  /*!
53  * \brief The WMSLayerItem class is an extension of QTreeWidgetItem
54  * to handle WMS Layer creation.
55  */
56  class WMSLayerItem : public QTreeWidgetItem
57  {
58  public:
59 
60  WMSLayerItem(const te::ws::ogc::wms::Layer& rootLayer, QTreeWidget* parent);
61 
63 
64  ~WMSLayerItem();
65 
66  const te::ws::ogc::wms::Layer& getLayer() const;
67 
69 
71 
72  private:
73 
74  void buildDefaultRequest();
75 
76  private:
77 
79 
81  };
82 
83  }
84  }
85  }
86  }
87 }
88 
89 #endif // __TERRALIB_WS_OGC_WMS_QT_WMSLAYERITEM_H
te::ws::ogc::wms::Layer m_layer
Definition: WMSLayerItem.h:78
const te::ws::ogc::wms::WMSGetMapRequest & getRequest() const
te::ws::ogc::wms::WMSGetMapRequest m_request
Definition: WMSLayerItem.h:80
URI C++ Library.
The Layer WMS 1.3.0 struct.
Definition: DataTypes.h:212
void setRequest(const te::ws::ogc::wms::WMSGetMapRequest &request)
const te::ws::ogc::wms::Layer & getLayer() const
The WMSLayerItem class is an extension of QTreeWidgetItem to handle WMS Layer creation.
Definition: WMSLayerItem.h:56
WMSLayerItem(const te::ws::ogc::wms::Layer &rootLayer, QTreeWidget *parent)
The WMSGetMapRequest WMS 1.3.0 struct.
Definition: DataTypes.h:286