17 #ifndef mitkQMAPAlgorithmModel_h
18 #define mitkQMAPAlgorithmModel_h
20 #include <QAbstractTableModel>
21 #include <QStringList>
27 #include <mapRegistrationAlgorithmBase.h>
28 #include <mapMetaPropertyAlgorithmInterface.h>
50 void SetAlgorithm(map::algorithm::RegistrationAlgorithmBase *pAlgorithm);
51 void SetAlgorithm(map::algorithm::facet::MetaPropertyAlgorithmInterface *pMetaInterface);
53 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
54 virtual QVariant data(
const QModelIndex &index,
int role)
const;
55 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
56 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
57 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
58 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
62 void UpdateMetaProperties()
const ;
67 QVariant GetPropertyValue(
const map::algorithm::MetaPropertyInfo* pInfo,
int role)
const;
69 template <
typename TValueType>
bool CheckCastAndSetProp(
const map::algorithm::MetaPropertyInfo* pInfo,
const QVariant& value);
71 bool SetPropertyValue(
const map::algorithm::MetaPropertyInfo* pInfo,
const QVariant& value);
73 map::algorithm::facet::MetaPropertyAlgorithmInterface *m_pMetaInterface;
74 mutable map::algorithm::facet::MetaPropertyAlgorithmInterface::MetaPropertyVectorType m_MetaProperties;
79 #endif // mitkQMAPAlgorithmModel_h
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMATCHPOINTREGISTRATION_EXPORT
virtual ~QMAPAlgorithmModel()