Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDataStorageFilterProxyModel Class Reference

#include <QmitkDataStorageFilterProxyModel.h>

Inheritance diagram for QmitkDataStorageFilterProxyModel:
Collaboration diagram for QmitkDataStorageFilterProxyModel:

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::PointerFilterPredicatesCollection
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 

Protected Attributes

FilterPredicatesCollection m_Predicates
 

Detailed Description

Definition at line 30 of file QmitkDataStorageFilterProxyModel.h.

Member Typedef Documentation

Constructor & Destructor Documentation

QmitkDataStorageFilterProxyModel::QmitkDataStorageFilterProxyModel ( QObject *  parent = 0)

Definition at line 39 of file QmitkDataStorageFilterProxyModel.cpp.

QmitkDataStorageFilterProxyModel::~QmitkDataStorageFilterProxyModel ( )

Definition at line 43 of file QmitkDataStorageFilterProxyModel.cpp.

Member Function Documentation

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().

bool QmitkDataStorageFilterProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
overrideprotected
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().

Member Data Documentation

FilterPredicatesCollection QmitkDataStorageFilterProxyModel::m_Predicates
protected

The documentation for this class was generated from the following files: