Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkDataStorageFilterProxyModel.h>
Public Member Functions | |
QmitkDataStorageFilterProxyModel (QObject *parent=0) | |
~QmitkDataStorageFilterProxyModel () | |
void | AddFilterPredicate (mitk::NodePredicateBase::Pointer pred) |
bool | RemoveFilterPredicate (mitk::NodePredicateBase::Pointer pred) |
bool | HasFilterPredicate (mitk::NodePredicateBase::Pointer pred) |
Protected Types | |
typedef std::set< mitk::NodePredicateBase::Pointer > | FilterPredicatesCollection |
Protected Member Functions | |
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override |
Protected Attributes | |
FilterPredicatesCollection | m_Predicates |
Definition at line 30 of file QmitkDataStorageFilterProxyModel.h.
|
protected |
Definition at line 58 of file QmitkDataStorageFilterProxyModel.h.
QmitkDataStorageFilterProxyModel::QmitkDataStorageFilterProxyModel | ( | QObject * | parent = 0 | ) |
Definition at line 39 of file QmitkDataStorageFilterProxyModel.cpp.
QmitkDataStorageFilterProxyModel::~QmitkDataStorageFilterProxyModel | ( | ) |
Definition at line 43 of file QmitkDataStorageFilterProxyModel.cpp.
void QmitkDataStorageFilterProxyModel::AddFilterPredicate | ( | mitk::NodePredicateBase::Pointer | pred | ) |
If the predicate pred returns true, the node will be hidden in the data manager view
Definition at line 47 of file QmitkDataStorageFilterProxyModel.cpp.
References m_Predicates.
Referenced by QmitkDataManagerView::CreateQtPartControl(), and QmitkDataManagerView::OnPreferencesChanged().
|
overrideprotected |
Definition at line 68 of file QmitkDataStorageFilterProxyModel.cpp.
References QmitkDataStorageTreeModel::GetNode(), and m_Predicates.
bool QmitkDataStorageFilterProxyModel::HasFilterPredicate | ( | mitk::NodePredicateBase::Pointer | pred | ) |
Check if predicate is present in the list of filtering predicates.
Definition at line 63 of file QmitkDataStorageFilterProxyModel.cpp.
References m_Predicates.
Referenced by QmitkDataManagerView::OnPreferencesChanged().
bool QmitkDataStorageFilterProxyModel::RemoveFilterPredicate | ( | mitk::NodePredicateBase::Pointer | pred | ) |
Remove a predicate from the list of filters. Returns true if pred was found and removed.
Definition at line 53 of file QmitkDataStorageFilterProxyModel.cpp.
References m_Predicates.
Referenced by QmitkDataManagerView::OnPreferencesChanged().
|
protected |
Definition at line 59 of file QmitkDataStorageFilterProxyModel.h.
Referenced by AddFilterPredicate(), filterAcceptsRow(), HasFilterPredicate(), and RemoveFilterPredicate().