DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
szgroupentity.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 SZGROUPENTITY_H
22 #define SZGROUPENTITY_H
23 
25 
26 namespace objecttree {
27 
29 {
30  int mGroupIndex;
31 
32 public:
35 
36  SzGroupEntity(ObjectTreeModel *_model, int idx = -1);
37  virtual ~SzGroupEntity();
38 
41  }
42 
43  virtual QModelIndex parent (const QModelIndex &parent) const;
44  virtual QModelIndex index (int row, int column, const QModelIndex &parent) const;
45  virtual int rowCount() const;
46  virtual int columnCount() const;
47  virtual QVariant data(const QModelIndex &index, int role) const;
48  virtual Qt::ItemFlags flags(Qt::ItemFlags defflags, const QModelIndex &index) const;
49  virtual bool setData(const QModelIndex &index, const QVariant &value, int role);
50 };
51 
52 }
53 
54 #endif // SZGROUPENTITY_H
virtual ObjectTreeModel::Category getCategory() const
Definition: szgroupentity.h:39
Definition: benthosentity.cpp:27
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
Definition: szgroupentity.cpp:118
virtual QVariant data(const QModelIndex &index, int role) const
Definition: szgroupentity.cpp:77
Definition: szgroupentity.h:34
Definition: szgroupentity.h:33
Definition: objecttreeentity.h:32
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: szgroupentity.cpp:50
virtual ~SzGroupEntity()
Definition: szgroupentity.cpp:39
SzGroupEntity(ObjectTreeModel *_model, int idx=-1)
Definition: szgroupentity.cpp:33
SpecialGroup
Definition: szgroupentity.h:33
Definition: objecttreemodel.h:39
virtual int rowCount() const
Definition: szgroupentity.cpp:62
Definition: szgroupentity.h:28
Definition: szgroupentity.h:33
std::pair< box, unsigned > value
Definition: diffusion.cpp:30
Category
Definition: objecttreemodel.h:44
Definition: objecttreemodel.h:50
virtual int columnCount() const
Definition: szgroupentity.cpp:72
Definition: szgroupentity.h:33
virtual QModelIndex parent(const QModelIndex &parent) const
Definition: szgroupentity.cpp:44
Definition: szgroupentity.h:33
virtual Qt::ItemFlags flags(Qt::ItemFlags defflags, const QModelIndex &index) const
Definition: szgroupentity.cpp:112