17 #ifndef QmitkMAPAlgorithmModel_h
18 #define QmitkMAPAlgorithmModel_h
20 #include <QAbstractTableModel>
21 #include <QStringList>
27 #include <mapMetaPropertyAlgorithmInterface.h>
28 #include <mapRegistrationAlgorithmBase.h>
48 void SetAlgorithm(map::algorithm::RegistrationAlgorithmBase *pAlgorithm);
49 void SetAlgorithm(map::algorithm::facet::MetaPropertyAlgorithmInterface *pMetaInterface);
51 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
52 virtual QVariant data(
const QModelIndex &index,
int role)
const;
53 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
54 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
55 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
56 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
59 void UpdateMetaProperties()
const;
65 QVariant GetPropertyValue(
const map::algorithm::MetaPropertyInfo *pInfo,
int role)
const;
67 template <
typename TValueType>
68 bool CheckCastAndSetProp(
const map::algorithm::MetaPropertyInfo *pInfo,
const QVariant &value);
70 bool SetPropertyValue(
const map::algorithm::MetaPropertyInfo *pInfo,
const QVariant &value);
72 map::algorithm::facet::MetaPropertyAlgorithmInterface *m_pMetaInterface;
73 mutable map::algorithm::facet::MetaPropertyAlgorithmInterface::MetaPropertyVectorType m_MetaProperties;
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
virtual ~QmitkMAPAlgorithmModel()