Medical Imaging Interaction Toolkit  2022.04.99-b2814023
Medical Imaging Interaction Toolkit
mitk::QMAPAlgorithmModel Class Reference

#include <mitkQMAPAlgorithmModel.h>

Inheritance diagram for mitk::QMAPAlgorithmModel:
Collaboration diagram for mitk::QMAPAlgorithmModel:

Public Member Functions

 QMAPAlgorithmModel (QObject *parent=nullptr)
virtual ~QMAPAlgorithmModel ()
void SetAlgorithm (map::algorithm::RegistrationAlgorithmBase *pAlgorithm)
void SetAlgorithm (map::algorithm::facet::MetaPropertyAlgorithmInterface *pMetaInterface)
virtual Qt::ItemFlags flags (const QModelIndex &index) const
virtual QVariant data (const QModelIndex &index, int role) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)

Detailed Description

Helper class that implements a model to handle the MetaProperty interface of a MatchPoint algorithm in contect of the QT view-model-concept. A algorithm can be set as data source for the model. The model retrieves all information through the MetaPropertyInterface. Changes in the view will be propagated by the model into the algorithm.

The model only keep a simple pointer to the MetaPropertyInterface of the algorithm. You have to ensure to reset the algorithm if the pointer goes invalid.
This class is not yet documented. Use "git blame" and ask the author to provide basic documentation.

Definition at line 38 of file mitkQMAPAlgorithmModel.h.

Constructor & Destructor Documentation

◆ QMAPAlgorithmModel()

mitk::QMAPAlgorithmModel::QMAPAlgorithmModel ( QObject *  parent = nullptr)

◆ ~QMAPAlgorithmModel()

virtual mitk::QMAPAlgorithmModel::~QMAPAlgorithmModel ( )

Definition at line 44 of file mitkQMAPAlgorithmModel.h.

Member Function Documentation

◆ columnCount()

virtual int mitk::QMAPAlgorithmModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

virtual QVariant mitk::QMAPAlgorithmModel::data ( const QModelIndex &  index,
int  role 
) const

◆ flags()

virtual Qt::ItemFlags mitk::QMAPAlgorithmModel::flags ( const QModelIndex &  index) const

◆ headerData()

virtual QVariant mitk::QMAPAlgorithmModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

◆ rowCount()

virtual int mitk::QMAPAlgorithmModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ SetAlgorithm() [1/2]

void mitk::QMAPAlgorithmModel::SetAlgorithm ( map::algorithm::RegistrationAlgorithmBase *  pAlgorithm)

◆ SetAlgorithm() [2/2]

void mitk::QMAPAlgorithmModel::SetAlgorithm ( map::algorithm::facet::MetaPropertyAlgorithmInterface *  pMetaInterface)

◆ setData()

virtual bool mitk::QMAPAlgorithmModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 

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