17 #ifndef QmitkDataStorageTableModel_h
18 #define QmitkDataStorageTableModel_h
29 #include <QAbstractTableModel>
53 QObject *parent =
nullptr);
80 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
85 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const override;
89 virtual int rowCount(
const QModelIndex &parent)
const override;
93 virtual int columnCount(
const QModelIndex &parent)
const override;
97 virtual QVariant data(
const QModelIndex &index,
int role)
const override;
124 virtual std::vector<mitk::DataNode *> GetNodeSet()
const;
131 virtual void PropertyModified(
const itk::Object *caller,
const itk::EventObject &event);
135 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
139 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
172 DataNodeCompareFunction(CompareCriteria _CompareCriteria = CompareByName, CompareOperator _CompareOperator = Less);
189 virtual void Reset();
CompareCriteria
Specifies field of the property with which it will be sorted.
static mitk::DataStorage::Pointer GetDataStorage()
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.