DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
objecttree::LayerEntity Class Reference

Generic Entity for layer management. More...

#include <layerentity.h>

Inheritance diagram for objecttree::LayerEntity:
objecttree::ObjectTreeEntity objecttree::ShapefileLayerEntity

Public Member Functions

 LayerEntity (ObjectTreeModel::Category type, ObjectTreeModel *_model, int LayerEntity_idx=-1)
 
virtual ~LayerEntity ()
 
virtual ObjectTreeModel::Category getCategory () const
 
virtual QModelIndex parent (const QModelIndex &parent) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent) const
 
virtual int rowCount () const
 
virtual int columnCount () const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
virtual Qt::ItemFlags flags (Qt::ItemFlags defflags, const QModelIndex &index) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role)
 
int layerEntityIndex () const
 
ObjectTreeModel::Category layerEntityType () const
 
- Public Member Functions inherited from objecttree::ObjectTreeEntity
 ObjectTreeEntity (ObjectTreeModel *_model)
 
virtual ~ObjectTreeEntity ()
 
virtual QMenu * contextMenu () const
 
virtual void modelChanged (int)
 

Additional Inherited Members

- Protected Attributes inherited from objecttree::ObjectTreeEntity
ObjectTreeModelmodel
 

Detailed Description

Generic Entity for layer management.

Note
Any subclass MUST reimplement the index() method!

Constructor & Destructor Documentation

◆ LayerEntity()

objecttree::LayerEntity::LayerEntity ( ObjectTreeModel::Category  type,
ObjectTreeModel _model,
int  LayerEntity_idx = -1 
)

◆ ~LayerEntity()

objecttree::LayerEntity::~LayerEntity ( )
virtual

Member Function Documentation

◆ columnCount()

int objecttree::LayerEntity::columnCount ( ) const
virtual

◆ data()

QVariant objecttree::LayerEntity::data ( const QModelIndex &  index,
int  role 
) const
virtual

◆ flags()

Qt::ItemFlags objecttree::LayerEntity::flags ( Qt::ItemFlags  defflags,
const QModelIndex &  index 
) const
virtual

Reimplemented from objecttree::ObjectTreeEntity.

◆ getCategory()

virtual ObjectTreeModel::Category objecttree::LayerEntity::getCategory ( ) const
inlinevirtual

◆ index()

QModelIndex objecttree::LayerEntity::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
virtual

◆ layerEntityIndex()

int objecttree::LayerEntity::layerEntityIndex ( ) const
inline

◆ layerEntityType()

ObjectTreeModel::Category objecttree::LayerEntity::layerEntityType ( ) const
inline

◆ parent()

QModelIndex objecttree::LayerEntity::parent ( const QModelIndex &  parent) const
virtual

◆ rowCount()

int objecttree::LayerEntity::rowCount ( ) const
virtual

◆ setData()

bool objecttree::LayerEntity::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
virtual

Reimplemented from objecttree::ObjectTreeEntity.


The documentation for this class was generated from the following files: