GeometriesUpdateTool.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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
22 
23  \brief
24 */
25 
26 #ifndef __TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
27 #define __TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
28 
29 #include "../Config.h"
30 #include "../../../qt/widgets/tools/AbstractTool.h"
31 
32 
33 namespace te
34 {
35  namespace gm
36  {
37  class Geometry;
38  }
39 
40  namespace map
41  {
42  class AbstractLayer;
43  }
44 
45  namespace qt
46  {
47  namespace widgets
48  {
49  class MapDisplay;
50  }
51  }
52 
53  namespace edit
54  {
55  class Feature;
56 
58  {
59  Q_OBJECT
60 
61  public:
62 
63  GeometriesUpdateTool(te::qt::widgets::MapDisplay* display, te::map::AbstractLayer* layer, QObject* parent = 0);
64 
65  virtual ~GeometriesUpdateTool();
66 
67  void setLayer(te::map::AbstractLayer* layer);
68 
69  bool isInUse() const;
70 
71  void setInUse(const bool& status);
72 
73  virtual void cancelEditionTool();
74 
75  Q_SIGNALS:
76 
77  void geometriesEdited();
78 
79  void toolDeleted();
80 
81  void endSelectCell(const std::string&, const std::size_t&, std::size_t&);
82 
83  protected:
84 
85  virtual void saveGeometry(te::gm::Geometry* gm, const int& op);
86 
87  bool m_isInUse;
88 
91 
92  };
93  }
94 }
95 
96 
97 #endif //__TERRALIB_EDIT_QT_INTERNAL_GEOMETRIESUPDATETOOL_H
#define TEEDITQTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:60
This is the base class for layers.
Definition: AbstractLayer.h:76
A widget to control the display of a set of layers.
Definition: MapDisplay.h:66
This class defines an interface for objects that can receive application events and respond to them...
Definition: AbstractTool.h:62
URI C++ Library.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Definition: Geometry.h:73
te::map::AbstractLayer * m_layer