Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkMAPAlgorithmModel Class Reference

#include <QmitkMAPAlgorithmModel.h>

Inheritance diagram for QmitkMAPAlgorithmModel:
Collaboration diagram for QmitkMAPAlgorithmModel:

Public Member Functions

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

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 36 of file QmitkMAPAlgorithmModel.h.

Constructor & Destructor Documentation

◆ QmitkMAPAlgorithmModel()

QmitkMAPAlgorithmModel::QmitkMAPAlgorithmModel ( QObject *  parent = nullptr)

◆ ~QmitkMAPAlgorithmModel()

QmitkMAPAlgorithmModel::~QmitkMAPAlgorithmModel ( )
inlineoverride

Definition at line 42 of file QmitkMAPAlgorithmModel.h.

Member Function Documentation

◆ columnCount()

int QmitkMAPAlgorithmModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

QVariant QmitkMAPAlgorithmModel::data ( const QModelIndex &  index,
int  role 
) const
override

◆ flags()

Qt::ItemFlags QmitkMAPAlgorithmModel::flags ( const QModelIndex &  index) const
override

◆ headerData()

QVariant QmitkMAPAlgorithmModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

◆ rowCount()

int QmitkMAPAlgorithmModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ SetAlgorithm() [1/2]

void QmitkMAPAlgorithmModel::SetAlgorithm ( map::algorithm::facet::MetaPropertyAlgorithmInterface *  pMetaInterface)

◆ SetAlgorithm() [2/2]

void QmitkMAPAlgorithmModel::SetAlgorithm ( map::algorithm::RegistrationAlgorithmBase *  pAlgorithm)

◆ setData()

bool QmitkMAPAlgorithmModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

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