Medical Imaging Interaction Toolkit  2016.11.0
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=NULL)
 
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.

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 42 of file mitkQMAPAlgorithmModel.h.

Constructor & Destructor Documentation

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

Definition at line 26 of file mitkQMAPAlgorithmModel.cpp.

virtual mitk::QMAPAlgorithmModel::~QMAPAlgorithmModel ( )
inlinevirtual

Definition at line 48 of file mitkQMAPAlgorithmModel.h.

Member Function Documentation

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

Definition at line 66 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 76 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 118 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 139 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 54 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 35 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 42 of file mitkQMAPAlgorithmModel.cpp.

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

Definition at line 158 of file mitkQMAPAlgorithmModel.cpp.


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