All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ProxyProject.h
Go to the documentation of this file.
1 /* Copyright (C) 2013-2014 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 ProxyProject.h
22 
23  \brief Provide a surrogate or placeholder for te::qt::af::Project to control access to it.
24  A wrapper to access without complexity. This proxy is required because module not must have dependence te::qt::af.
25  Useful to access the Layers belonging to the project.
26 
27  \ingroup layout
28 */
29 
30 #ifndef __TE_QT_PLUGINS_LAYOUT_INTERNAL_PROXY_PROJECT_H
31 #define __TE_QT_PLUGINS_LAYOUT_INTERNAL_PROXY_PROJECT_H
32 
33 // TerraLib
34 #include "../../../layout/core/pattern/proxy/AbstractProxyProject.h"
35 
36 // Qt
37 #include <QObject>
38 
39 // STL
40 #include <string>
41 
42 namespace te
43 {
44  namespace qt
45  {
46  namespace plugins
47  {
48  namespace layout
49  {
50  /*!
51  \brief Provide a surrogate or placeholder for te::qt::af::Project to control access to it.
52  A wrapper to access without complexity. This proxy is required because module not must have dependence te::qt::af.
53  Useful to access the Layers belonging to the project.
54 
55  \ingroup layout
56 
57  \sa te::layout::AbstractProxyProject
58  */
59  class ProxyProject : public QObject, public te::layout::AbstractProxyProject
60  {
61  Q_OBJECT //for slots/signals
62 
63  public:
64 
65  /*!
66  \brief Constructor
67  */
68  ProxyProject();
69 
70  /*!
71  \brief Destructor
72  */
73  virtual ~ProxyProject();
74 
75  /*!
76  \brief Reimplemented from AbstractProxyProject
77  */
78  std::list<te::map::AbstractLayerPtr> getAllLayers(bool invalid = true);
79 
80  /*!
81  \brief Reimplemented from AbstractProxyProject
82  */
83  const std::list<te::map::AbstractLayerPtr> getSelectedLayers(bool invalid = true) const;
84 
85  /*!
86  \brief Reimplemented from AbstractProxyProject
87  */
88  te::map::AbstractLayerPtr contains(std::string name);
89  };
90  }
91  }
92  }
93 }
94 
95 #endif
std::list< te::map::AbstractLayerPtr > getAllLayers(bool invalid=true)
Reimplemented from AbstractProxyProject.
te::map::AbstractLayerPtr contains(std::string name)
Reimplemented from AbstractProxyProject.
Provide a surrogate or placeholder for te::qt::af::Project to control access to it. A wrapper to access without complexity. This proxy is required because module not must have dependence te::qt::af. Useful to access the Layers belonging to the project.
Definition: ProxyProject.h:59
const std::list< te::map::AbstractLayerPtr > getSelectedLayers(bool invalid=true) const
Reimplemented from AbstractProxyProject.
Abstract class to provide a surrogate or placeholder for te::qt::af::Project to control access to it...
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr