DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
mapobject.h
Go to the documentation of this file.
1 /* --------------------------------------------------------------------------
2  * DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3  * AND EFFORT DISPLACEMENT
4  * Copyright (c) 2012, 2013, 2014 Francois Bastardie <fba@aqua.dtu.dk>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  * --------------------------------------------------------------------------
20  */
21 #ifndef MAPOBJECT_H
22 #define MAPOBJECT_H
23 
24 #include <memory>
25 
26 namespace qmapcontrol {
27 class Geometry;
28 }
29 
30 class MapObject
31 {
32 public:
33  MapObject();
34  virtual ~MapObject();
35 
36 
37  virtual std::shared_ptr<qmapcontrol::Geometry> getGeometryEntity() const = 0;
38  virtual bool showProperties();
39  virtual void updateProperties();
40 
41  virtual void toggleSelection() final;
42  virtual void setSelection(bool selection);
43 };
44 
45 #endif // MAPOBJECT_H
virtual void updateProperties()
Definition: mapobject.cpp:40
virtual std::shared_ptr< qmapcontrol::Geometry > getGeometryEntity() const =0
Definition: mapobject.h:30
virtual ~MapObject()
Definition: mapobject.cpp:30
MapObject()
Definition: mapobject.cpp:26
virtual bool showProperties()
Definition: mapobject.cpp:35
virtual void setSelection(bool selection)
Definition: mapobject.cpp:50
virtual void toggleSelection() final
Definition: mapobject.cpp:45
Definition: csvspecspage.h:20