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

#include <vesselentity.h>

Inheritance diagram for objecttree::VesselEntity:
objecttree::ObjectTreeEntity

Public Member Functions

 VesselEntity (ObjectTreeModel *_model, int id=-1)
 
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 getVesselId () 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
 

Constructor & Destructor Documentation

◆ VesselEntity()

objecttree::VesselEntity::VesselEntity ( ObjectTreeModel _model,
int  id = -1 
)

Member Function Documentation

◆ columnCount()

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

◆ data()

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

◆ flags()

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

Reimplemented from objecttree::ObjectTreeEntity.

◆ getCategory()

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

◆ getVesselId()

int objecttree::VesselEntity::getVesselId ( ) const
inline

◆ index()

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

◆ parent()

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

◆ rowCount()

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

◆ setData()

bool objecttree::VesselEntity::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: