13 #ifndef QmitkDataStorageTableModel_h 14 #define QmitkDataStorageTableModel_h 25 #include <QAbstractTableModel> 49 QObject *parent =
nullptr);
76 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
81 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
85 int rowCount(
const QModelIndex &parent)
const override;
89 int columnCount(
const QModelIndex &parent)
const override;
93 QVariant data(
const QModelIndex &index,
int role)
const override;
120 virtual std::vector<mitk::DataNode *> GetNodeSet()
const;
127 virtual void PropertyModified(
const itk::Object *caller,
const itk::EventObject &event);
131 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
135 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
185 virtual void Reset();
CompareCriteria
Specifies field of the property with which it will be sorted.
std::vector< mitk::DataNode * > m_NodeSet
CompareOperator m_CompareOperator
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
bool m_SortDescending
The property is true when the property list is sorted in descending order.
std::map< mitk::BaseProperty *, unsigned long > m_VisiblePropertyModifiedObserverTags
Maps a property to an observer tag.
A struct that inherits from std::binary_function. You can use it in std::sort algorithm for sorting t...
CompareCriteria m_CompareCriteria
std::map< mitk::BaseProperty *, unsigned long > m_NamePropertyModifiedObserverTags
Maps a property to an observer tag.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
mitk::NodePredicateBase::Pointer m_Predicate
Class for nodes of the DataTree.
CompareOperator
Specifies Ascending/descending ordering.