13 #ifndef QmitkDataStorageFilterProxyModel_h
14 #define QmitkDataStorageFilterProxyModel_h
21 #include <QSortFilterProxyModel>
69 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const override;
A QSortFilterProxyModel that hides data nodes matching one or more predicates.
std::set< mitk::NodePredicateBase::Pointer > FilterPredicatesCollection
~QmitkDataStorageFilterProxyModel() override
bool RemoveFilterPredicate(mitk::NodePredicateBase::Pointer pred)
Removes a filter predicate from the filter list.
void AddFilterPredicate(mitk::NodePredicateBase::Pointer pred)
Adds a filter predicate. Nodes matching this predicate will be hidden.
QmitkDataStorageFilterProxyModel(QObject *parent=nullptr)
Constructs the filter proxy model.
FilterPredicatesCollection m_Predicates
bool HasFilterPredicate(mitk::NodePredicateBase::Pointer pred)
Checks whether a predicate is currently in the filter list.
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override