Medical Imaging Interaction Toolkit  2024.06.99-5ec2019b
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 context 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.

Remarks
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.
Warning
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 ( )
inlinevirtual

Definition at line 44 of file mitkQMAPAlgorithmModel.h.

Member Function Documentation

◆ columnCount()

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

◆ data()

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

◆ flags()

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

◆ headerData()

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

◆ rowCount()

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

◆ SetAlgorithm() [1/2]

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

◆ SetAlgorithm() [2/2]

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

◆ setData()

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

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