23#ifndef __qMRMLSubjectHierarchyComboBox_h
24#define __qMRMLSubjectHierarchyComboBox_h
27#include <ctkComboBox.h>
28#include <ctkVTKObject.h>
31#include "qSlicerSubjectHierarchyModuleWidgetsExport.h"
35class qMRMLSubjectHierarchyComboBoxPrivate;
161 Q_INVOKABLE
void addNodeAttributeFilter(QString attributeName, QVariant attributeValue=QString(),
bool include=true, QString className=QString());
208 qWarning(
"qMRMLSubjectHierarchyComboBox::setPluginWhitelist is deprecated. Use setPluginAllowlist instead.");
214 qWarning(
"qMRMLSubjectHierarchyComboBox::setPluginBlacklist is deprecated. Use setPluginBlocklist instead.");
241 QScopedPointer<qMRMLSubjectHierarchyComboBoxPrivate>
d_ptr;
qMRMLSubjectHierarchyComboBox(QWidget *parent=nullptr)
void setExcludeItemAttributeNamesFilter(QStringList filter)
void hidePopup() override
Q_INVOKABLE vtkMRMLSubjectHierarchyNode * subjectHierarchyNode() const
virtual void setMRMLScene(vtkMRMLScene *scene)
Set MRML scene.
Q_INVOKABLE vtkMRMLScene * mrmlScene() const
void setPluginBlacklist(QStringList blocklist)
Deprecated. Use setPluginBlocklist instead.
virtual void onMRMLSceneCloseEnded(vtkObject *sceneObject)
bool showEmptyHierarchyItems
void setPluginAllowlist(QStringList allowlist)
void setIncludeNodeAttributeNamesFilter(QStringList filter)
QStringList excludeNodeAttributeNamesFilter
bool alignPopupVertically
void showPopup() override
Provides customized popup window for the tree view.
void disablePlugin(QString plugin)
void mousePressEvent(QMouseEvent *event) override
Handle mouse press event (disable context menu)
void setHighlightReferencedItems(bool highlightOn)
void currentItemModified(vtkIdType)
void setNoneEnabled(bool enable)
void updateComboBoxTitleAndIcon(vtkIdType selectedShItemID)
void setIncludeItemAttributeNamesFilter(QStringList filter)
QVTK_OBJECTbool showRootItem
void setNoneDisplay(const QString &displayName)
Q_INVOKABLE void removeNodeAttributeFilter(QString attributeName, QVariant attributeValue, bool include, QString className)
Remove single node attribute filter specifying each attribute.
void setExcludeNodeAttributeNamesFilter(QStringList filter)
Q_INVOKABLE void clearSelection()
void setPluginBlocklist(QStringList blocklist)
void setAttributeValueFilter(QString &filter)
QScopedPointer< qMRMLSubjectHierarchyComboBoxPrivate > d_ptr
void setAttributeNameFilter(QString &filter)
Q_INVOKABLE void setNodeTypes(const QStringList &types)
Set node type filter that allows showing only data nodes of a certain type. Show all data nodes if em...
Q_INVOKABLE vtkIdType currentItem() const
void setShowCurrentItemParents(bool enable)
Q_INVOKABLE void setLevelFilter(QStringList &levelFilter)
Set level filter that allows showing only items at a specified level and their parents....
void currentItemChanged(vtkIdType)
QStringList includeNodeAttributeNamesFilter
Filter to show only items for data nodes that contain any of the given attributes with this name....
void setAlignPopupVertically(bool align)
Q_INVOKABLE vtkIdType rootItem() const
QStringList excludeItemAttributeNamesFilter
Q_INVOKABLE void addNodeAttributeFilter(QString attributeName, QVariant attributeValue=QString(), bool include=true, QString className=QString())
QString attributeNameFilter
void setShowRootItem(bool show)
virtual void setCurrentItem(vtkIdType itemID)
Set current (=selected) subject hierarchy item.
Q_INVOKABLE void setHideChildNodeTypes(const QStringList &types)
bool highlightReferencedItems
virtual void setRootItem(vtkIdType itemID)
Set subject hierarchy item to be the root in the shown tree.
void setPluginWhitelist(QStringList allowlist)
Deprecated. Use setPluginAllowlist instead.
bool showCurrentItemParents
QStringList includeItemAttributeNamesFilter
Filter to show only items that contain any of the given attributes with this name....
QString attributeValueFilter
Q_INVOKABLE qMRMLSubjectHierarchyModel * model() const
Q_INVOKABLE void removeItemAttributeFilter(QString attributeName, QVariant attributeValue, bool include)
Remove single item attribute filter specifying each attribute.
Q_INVOKABLE qMRMLSortFilterSubjectHierarchyProxyModel * sortFilterProxyModel() const
void setShowEmptyHierarchyItems(bool show)
Q_INVOKABLE void addItemAttributeFilter(QString attributeName, QVariant attributeValue=QString(), bool include=true)
void setMaximumNumberOfShownItems(int maxNumberOfShownItems)
int maximumNumberOfShownItems
Property determining the maximum number of items (rows) shown in the popup tree.
Item model for subject hierarchy.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent a complete subject hierarchy tree.