Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkDataStorageFilterProxyModel Class Reference

#include <QmitkDataStorageFilterProxyModel.h>

Inheritance diagram for QmitkDataStorageFilterProxyModel:
Collaboration diagram for QmitkDataStorageFilterProxyModel:

Public Member Functions

 QmitkDataStorageFilterProxyModel (QObject *parent=nullptr)
 
 ~QmitkDataStorageFilterProxyModel () override
 
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 26 of file QmitkDataStorageFilterProxyModel.h.

Member Typedef Documentation

◆ FilterPredicatesCollection

Constructor & Destructor Documentation

◆ QmitkDataStorageFilterProxyModel()

QmitkDataStorageFilterProxyModel::QmitkDataStorageFilterProxyModel ( QObject *  parent = nullptr)

◆ ~QmitkDataStorageFilterProxyModel()

QmitkDataStorageFilterProxyModel::~QmitkDataStorageFilterProxyModel ( )
override

Member Function Documentation

◆ AddFilterPredicate()

void QmitkDataStorageFilterProxyModel::AddFilterPredicate ( mitk::NodePredicateBase::Pointer  pred)

If the predicate pred returns true, the node will be hidden in the data manager view

◆ filterAcceptsRow()

bool QmitkDataStorageFilterProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
overrideprotected

◆ HasFilterPredicate()

bool QmitkDataStorageFilterProxyModel::HasFilterPredicate ( mitk::NodePredicateBase::Pointer  pred)

Check if predicate is present in the list of filtering predicates.

◆ RemoveFilterPredicate()

bool QmitkDataStorageFilterProxyModel::RemoveFilterPredicate ( mitk::NodePredicateBase::Pointer  pred)

Remove a predicate from the list of filters. Returns true if pred was found and removed.

Member Data Documentation

◆ m_Predicates

FilterPredicatesCollection QmitkDataStorageFilterProxyModel::m_Predicates
protected

Definition at line 55 of file QmitkDataStorageFilterProxyModel.h.


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