13 #ifndef mitkQMAPAlgorithmModel_h
14 #define mitkQMAPAlgorithmModel_h
16 #include <QAbstractTableModel>
17 #include <QStringList>
23 #include <mapRegistrationAlgorithmBase.h>
24 #include <mapMetaPropertyAlgorithmInterface.h>
46 void SetAlgorithm(map::algorithm::RegistrationAlgorithmBase *pAlgorithm);
47 void SetAlgorithm(map::algorithm::facet::MetaPropertyAlgorithmInterface *pMetaInterface);
49 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
50 virtual QVariant data(
const QModelIndex &index,
int role)
const;
51 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
52 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
53 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
54 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
58 void UpdateMetaProperties()
const ;
63 QVariant GetPropertyValue(
const map::algorithm::MetaPropertyInfo* pInfo,
int role)
const;
65 template <
typename TValueType>
bool CheckCastAndSetProp(
const map::algorithm::MetaPropertyInfo* pInfo,
const QVariant& value);
67 bool SetPropertyValue(
const map::algorithm::MetaPropertyInfo* pInfo,
const QVariant& value);
69 map::algorithm::facet::MetaPropertyAlgorithmInterface *m_pMetaInterface;
70 mutable map::algorithm::facet::MetaPropertyAlgorithmInterface::MetaPropertyVectorType m_MetaProperties;