Slicer
5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/Widgets/qMRMLSortFilterHierarchyProxyModel.h>
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=nullptr) | |
~qMRMLSortFilterHierarchyProxyModel () override | |
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 vtkMRMLNode * | mrmlNodeFromIndex (const QModelIndex &index) const |
Retrieve the associated vtkMRMLNode. More... | |
vtkMRMLScene * | mrmlScene () const |
Retrieve the associated MRML scene. More... | |
Q_INVOKABLE QModelIndex | mrmlSceneIndex () const |
Retrieve the MRML scene index. More... | |
QStringList | nodeTypes () const |
qMRMLSortFilterProxyModel (QObject *parent=nullptr) | |
Q_INVOKABLE void | removeAttribute (const QString &nodeType, const QString &attributeName) |
Q_INVOKABLE qMRMLSceneModel * | sceneModel () 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 |
~qMRMLSortFilterProxyModel () override | |
Protected Member Functions | |
AcceptType | filterAcceptsNode (vtkMRMLNode *node) const override |
Protected Member Functions inherited from qMRMLSortFilterProxyModel | |
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override |
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 } |
Definition at line 30 of file qMRMLSortFilterHierarchyProxyModel.h.
Definition at line 35 of file qMRMLSortFilterHierarchyProxyModel.h.
qMRMLSortFilterHierarchyProxyModel::qMRMLSortFilterHierarchyProxyModel | ( | QObject * | parent = nullptr | ) |
|
override |
|
overrideprotectedvirtual |
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.
Reimplemented from qMRMLSortFilterProxyModel.
|
protected |
Definition at line 46 of file qMRMLSortFilterHierarchyProxyModel.h.