Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkMAPAlgorithmModel Class Reference

#include <QmitkMAPAlgorithmModel.h>

Inheritance diagram for QmitkMAPAlgorithmModel:
Collaboration diagram for QmitkMAPAlgorithmModel:

Public Member Functions

 QmitkMAPAlgorithmModel (QObject *parent=NULL)
 
virtual ~QmitkMAPAlgorithmModel ()
 
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.

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

Constructor & Destructor Documentation

QmitkMAPAlgorithmModel::QmitkMAPAlgorithmModel ( QObject *  parent = NULL)

Definition at line 21 of file QmitkMAPAlgorithmModel.cpp.

virtual QmitkMAPAlgorithmModel::~QmitkMAPAlgorithmModel ( )
inlinevirtual

Definition at line 46 of file QmitkMAPAlgorithmModel.h.

Member Function Documentation

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

Definition at line 50 of file QmitkMAPAlgorithmModel.cpp.

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

Definition at line 58 of file QmitkMAPAlgorithmModel.cpp.

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

Definition at line 98 of file QmitkMAPAlgorithmModel.cpp.

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

Definition at line 117 of file QmitkMAPAlgorithmModel.cpp.

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

Definition at line 40 of file QmitkMAPAlgorithmModel.cpp.

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

Definition at line 30 of file QmitkMAPAlgorithmModel.cpp.

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

Definition at line 133 of file QmitkMAPAlgorithmModel.cpp.


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