Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
qMRMLSortFilterHierarchyProxyModel Class Reference

#include <Libs/MRML/Widgets/qMRMLSortFilterHierarchyProxyModel.h>

Inheritance diagram for qMRMLSortFilterHierarchyProxyModel:
Inheritance graph
[legend]
Collaboration diagram for qMRMLSortFilterHierarchyProxyModel:
Collaboration graph
[legend]

Public Types

typedef qMRMLSortFilterProxyModel Superclass
 
- Public Types inherited from qMRMLSortFilterProxyModel
enum  FilterType { HideAll = 0, ShowAll, UseFilters }
 
typedef QSortFilterProxyModel Superclass
 

Public Member Functions

 qMRMLSortFilterHierarchyProxyModel (QObject *parent=0)
 
virtual ~qMRMLSortFilterHierarchyProxyModel ()
 
- Public Member Functions inherited from qMRMLSortFilterProxyModel
Q_INVOKABLE void addAttribute (const QString &nodeType, const QString &attributeName, const QVariant &attributeValue=QVariant())
 
Q_INVOKABLE QVariant attributeFilter (const QString &nodeType, const QString &attributeName) const
 
FilterType filterType () const
 
QStringList hiddenNodeIDs () const
 
bool hideAll () const
 
QStringList hideChildNodeTypes () const
 
QString hideNodesUnaffiliatedWithNodeID () const
 
Q_INVOKABLE QModelIndex indexFromMRMLNode (vtkMRMLNode *node, int column=0) const
 Retrieve an index for a given vtkMRMLNode. More...
 
Q_INVOKABLE vtkMRMLNodemrmlNodeFromIndex (const QModelIndex &index) const
 Retrieve the associated vtkMRMLNode. More...
 
vtkMRMLScenemrmlScene () const
 Retrieve the associated MRML scene. More...
 
Q_INVOKABLE QModelIndex mrmlSceneIndex () const
 Retrieve the MRML scene index. More...
 
QStringList nodeTypes () const
 
 qMRMLSortFilterProxyModel (QObject *parent=0)
 
Q_INVOKABLE void removeAttribute (const QString &nodeType, const QString &attributeName)
 
Q_INVOKABLE qMRMLSceneModelsceneModel () const
 Return the scene model used as input if any. More...
 
void setHiddenNodeIDs (const QStringList &nodeIDsToHide)
 
void setHideChildNodeTypes (const QStringList &nodeTypes)
 
void setHideNodesUnaffiliatedWithNodeID (const QString &nodeID)
 
void setNodeTypes (const QStringList &nodeTypes)
 
void setShowChildNodeTypes (bool show)
 
void setShowHiddenForTypes (const QStringList &nodeTypes)
 
void setVisibleNodeIDs (const QStringList &nodeIDsToShow)
 
bool showAll () const
 
bool showChildNodeTypes () const
 
bool showHidden () const
 
QStringList showHiddenForTypes () const
 
QStringList visibleNodeIDs () const
 
virtual ~qMRMLSortFilterProxyModel ()
 

Protected Member Functions

virtual AcceptType filterAcceptsNode (vtkMRMLNode *node) const
 
- Protected Member Functions inherited from qMRMLSortFilterProxyModel
virtual bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const
 
QStandardItem * sourceItem (const QModelIndex &index) const
 

Protected Attributes

QScopedPointer< qMRMLSortFilterHierarchyProxyModelPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLSortFilterProxyModel
QScopedPointer< qMRMLSortFilterProxyModelPrivate > d_ptr
 

Additional Inherited Members

- Properties inherited from qMRMLSortFilterProxyModel
FilterType filterType
 
QStringList hiddenNodeIDs
 
bool hideAll
 
QStringList hideChildNodeTypes
 
QString hideNodesUnaffiliatedWithNodeID
 
QStringList nodeTypes
 
bool showAll
 
bool showChildNodeTypes
 
bool showHidden
 
QStringList showHiddenForTypes
 
QStringList visibleNodeIDs
 
- Public Slots inherited from qMRMLSortFilterProxyModel
void setFilterType (FilterType filterType)
 
void setHideAll (bool hide)
 
void setShowAll (bool show)
 
void setShowHidden (bool)
 
- Protected Types inherited from qMRMLSortFilterProxyModel
enum  AcceptType { Reject = 0, Accept, RejectButPotentiallyAcceptable, AcceptButPotentiallyRejectable }
 

Detailed Description

Definition at line 30 of file qMRMLSortFilterHierarchyProxyModel.h.

Member Typedef Documentation

◆ Superclass

Definition at line 35 of file qMRMLSortFilterHierarchyProxyModel.h.

Constructor & Destructor Documentation

◆ qMRMLSortFilterHierarchyProxyModel()

qMRMLSortFilterHierarchyProxyModel::qMRMLSortFilterHierarchyProxyModel ( QObject *  parent = 0)

◆ ~qMRMLSortFilterHierarchyProxyModel()

virtual qMRMLSortFilterHierarchyProxyModel::~qMRMLSortFilterHierarchyProxyModel ( )
virtual

Member Function Documentation

◆ filterAcceptsNode()

virtual AcceptType qMRMLSortFilterHierarchyProxyModel::filterAcceptsNode ( vtkMRMLNode node) const
protectedvirtual

This method returns whether the node should be visible or hidden from the view. It returns the behavior of the node with regard to the filters.

See also
filterAcceptRow(), AcceptType

Reimplemented from qMRMLSortFilterProxyModel.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSortFilterHierarchyProxyModelPrivate> qMRMLSortFilterHierarchyProxyModel::d_ptr
protected

Definition at line 46 of file qMRMLSortFilterHierarchyProxyModel.h.


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