Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyTreeView.h>
Public Types | |
typedef QTreeView | Superclass |
Properties | |
QString | attributeNameFilter |
QString | attributeValueFilter |
bool | colorColumnVisible |
bool | contextMenuEnabled |
Flag determining whether context menu is enabled. More... | |
bool | descriptionColumnVisible |
bool | editMenuActionVisible |
This property controls whether the Edit properties context menu action is visible. Visible by default. More... | |
QStringList | excludeItemAttributeNamesFilter |
QStringList | excludeNodeAttributeNamesFilter |
QStringList | hideChildNodeTypes |
bool | highlightReferencedItems |
bool | idColumnVisible |
QStringList | includeItemAttributeNamesFilter |
Filter to show only items that contain any of the given attributes with this name. Empty by default. More... | |
QStringList | includeNodeAttributeNamesFilter |
Filter to show only items for data nodes that contain any of the given attributes with this name. Empty by default. More... | |
QStringList | levelFilter |
bool | multiSelection |
Flag determining whether multiple items can be selected. More... | |
QString | nameFilter |
QStringList | nodeTypes |
QString | noneDisplay |
bool | noneEnabled |
bool | selectRoleSubMenuVisible |
This property controls whether the Select role context menu sub-menu is visible. Visible by default. More... | |
bool | showRootItem |
bool | transformColumnVisible |
bool | visibilityColumnVisible |
Public Slots | |
virtual void | collapseItem (vtkIdType itemID) |
Handle collapse item requests in the subject hierarchy tree. Collapses branch. More... | |
void | deleteSelectedItems () |
Delete selected subject hierarchy items and associated data nodes. More... | |
void | disablePlugin (QString plugin) |
virtual void | editCurrentItem () |
Edit properties of current item. More... | |
virtual void | expandItem (vtkIdType itemID) |
Handle expand item requests in the subject hierarchy tree. Expands branch. More... | |
void | renameCurrentItem () |
Rename currently selected one item by popping up a dialog. More... | |
void | resetColumnSizesToDefault () |
Resets column sizes and size policies to default. More... | |
virtual void | selectPluginForCurrentItem () |
Handle manual selection of a plugin as the new owner of a subject hierarchy node. More... | |
void | setAttributeNameFilter (QString &filter) |
void | setAttributeValueFilter (QString &filter) |
void | setContextMenuEnabled (bool enabled) |
virtual void | setCurrentItem (vtkIdType itemID) |
Set current (=selected) subject hierarchy item. More... | |
virtual void | setCurrentItems (QList< vtkIdType > items) |
Set current (=selected) subject hierarchy items. More... | |
virtual void | setCurrentItems (vtkIdList *items) |
Python compatibility function to set current (=selected) subject hierarchy items. More... | |
virtual void | setCurrentNode (vtkMRMLNode *node) |
Convenience method to set current item by associated data node. More... | |
void | setEditMenuActionVisible (bool visible) |
void | setExcludeItemAttributeNamesFilter (QStringList filter) |
void | setExcludeNodeAttributeNamesFilter (QStringList filter) |
void | setHighlightReferencedItems (bool highlightOn) |
void | setIncludeItemAttributeNamesFilter (QStringList filter) |
void | setIncludeNodeAttributeNamesFilter (QStringList filter) |
virtual void | setMRMLScene (vtkMRMLScene *scene) |
Set MRML scene. More... | |
virtual void | setMultiSelection (bool multiSelectionOn) |
Set multi-selection. More... | |
void | setNoneDisplay (const QString &displayName) |
void | setNoneEnabled (bool enable) |
void | setPluginBlacklist (QStringList blacklist) |
void | setPluginWhitelist (QStringList whitelist) |
virtual void | setRootItem (vtkIdType itemID) |
Set subject hierarchy item to be the root in the shown tree. More... | |
void | setSelectRoleSubMenuVisible (bool visible) |
void | setShowRootItem (bool show) |
Set root item visibility. More... | |
bool | showContextMenuHint (bool visibility=false) |
void | toggleVisibilityOfSelectedItems () |
Toggle visibility of selected subject hierarchy items. More... | |
virtual void | updateSelectPluginActions () |
Signals | |
void | currentItemChanged (vtkIdType) |
void | currentItemModified (vtkIdType) |
void | currentItemsChanged (QList< vtkIdType >) |
Public Member Functions | |
Q_INVOKABLE void | addItemAttributeFilter (QString attributeName, QVariant attributeValue=QString(), bool include=true) |
Q_INVOKABLE void | addNodeAttributeFilter (QString attributeName, QVariant attributeValue=QString(), bool include=true, QString className=QString()) |
QString | attributeNameFilter () const |
QString | attributeValueFilter () const |
bool | colorColumnVisible () |
bool | contextMenuEnabled () const |
Q_INVOKABLE vtkIdType | currentItem () const |
Get current (=selected) item. If there are multiple items selected, then the first one is returned. More... | |
QList< vtkIdType > | currentItems () |
Get current (=selected) items. More... | |
Q_INVOKABLE void | currentItems (vtkIdList *selectedItems) |
virtual vtkMRMLNode * | currentNode () const |
Convenience method to set current item by associated data node. More... | |
bool | descriptionColumnVisible () |
Q_INVOKABLE int | displayedItemCount () const |
Determine the number of shown items. More... | |
bool | editMenuActionVisible () const |
QStringList | excludeItemAttributeNamesFilter () const |
QStringList | excludeNodeAttributeNamesFilter () const |
QStringList | hideChildNodeTypes () const |
bool | highlightReferencedItems () const |
bool | idColumnVisible () |
QStringList | includeItemAttributeNamesFilter () const |
QStringList | includeNodeAttributeNamesFilter () const |
QStringList | levelFilter () const |
Q_INVOKABLE qMRMLSubjectHierarchyModel * | model () const |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
bool | multiSelection () |
Get whether multi-selection is enabled. More... | |
QString | nameFilter () const |
QStringList | nodeTypes () const |
QString | noneDisplay () const |
bool | noneEnabled () const |
qMRMLSubjectHierarchyTreeView (QWidget *parent=nullptr) | |
Q_INVOKABLE void | removeAttributeFilter () |
Remove item attribute filtering. More... | |
Q_INVOKABLE void | removeItemAttributeFilter (QString attributeName, QVariant attributeValue, bool include) |
Remove single item attribute filter specifying each attribute. More... | |
Q_INVOKABLE void | removeItemAttributeFilter (QString attributeName, bool include) |
Remove all item attribute filters specifying a given attribute name and include flag. More... | |
Q_INVOKABLE void | removeNodeAttributeFilter (QString attributeName, QVariant attributeValue, bool include, QString className) |
Remove single node attribute filter specifying each attribute. More... | |
Q_INVOKABLE void | removeNodeAttributeFilter (QString attributeName, bool include) |
Remove all node attribute filters specifying a given attribute name and include flag. More... | |
Q_INVOKABLE vtkIdType | rootItem () const |
Get root item of the tree. More... | |
bool | selectRoleSubMenuVisible () const |
Q_INVOKABLE void | setAttributeFilter (const QString &attributeName, const QVariant &attributeValue=QVariant()) |
void | setColorColumnVisible (bool visible) |
Set color column visibility. More... | |
void | setDescriptionColumnVisible (bool visible) |
Set description column visibility. More... | |
void | setHideChildNodeTypes (const QStringList &types) |
void | setIdColumnVisible (bool visible) |
Set ID column visibility. More... | |
void | setLevelFilter (QStringList &levelFilter) |
Set level filter that allows showing only items at a specified level and their parents. Show all items if empty. More... | |
void | setNameFilter (QString &nameFilter) |
Set name filter that allows showing only items containing a specified string (case-insensitive). Show all items if empty. More... | |
void | setNodeTypes (const QStringList &types) |
Set node type filter that allows showing only data nodes of a certain type. Show all data nodes if empty. More... | |
void | setTransformColumnVisible (bool visible) |
Set transform column visibility. More... | |
void | setVisibilityColumnVisible (bool visible) |
Set visibility column visibility. More... | |
bool | showRootItem () const |
Get root item visibility. More... | |
Q_INVOKABLE qMRMLSortFilterSubjectHierarchyProxyModel * | sortFilterProxyModel () const |
Q_INVOKABLE vtkMRMLSubjectHierarchyNode * | subjectHierarchyNode () const |
bool | transformColumnVisible () |
bool | visibilityColumnVisible () |
~qMRMLSubjectHierarchyTreeView () override | |
Protected Slots | |
virtual void | expandToDepthFromContextMenu () |
Expand tree to depth specified by the clicked context menu action. More... | |
virtual void | onCreateNewTransform () |
virtual void | onCurrentSelection (const QModelIndex ¤tItemIndex) |
void | onCustomContextMenu (const QPoint &point) |
virtual void | onItemCollapsed (const QModelIndex &collapsedItemIndex) |
Updates subject hierarchy item expanded property when item is collapsed. More... | |
virtual void | onItemExpanded (const QModelIndex &expandedItemIndex) |
Updates subject hierarchy item expanded property when item is expanded. More... | |
virtual void | onMRMLSceneEndBatchProcess (vtkObject *sceneObject) |
Called when batch processing ends. Restores selection, which is lost when the hierarchy is rebuilt. More... | |
virtual void | onMRMLSceneEndClose (vtkObject *sceneObject) |
Called when scene close is finished. Hierarchy is cleared in that case. More... | |
virtual void | onMRMLSceneStartBatchProcess (vtkObject *sceneObject) |
Called when batch processing starts. Makes sure stored selection does not get emptied before restoring. More... | |
virtual void | onMRMLSceneStartClose (vtkObject *sceneObject) |
Called when scene close is started. More... | |
virtual void | onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
virtual void | onSubjectHierarchyItemModified (vtkObject *caller, void *callData) |
Propagate item modified event. More... | |
virtual void | onSubjectHierarchyItemTransformModified (vtkObject *caller, void *callData) |
Propagate item transform modified event. More... | |
virtual void | onTransformActionSelected () |
virtual void | onTransformEditProperties () |
virtual void | onTransformInteractionInViewToggled (bool show) |
virtual void | updateRootItem () |
Protected Member Functions | |
void | applyReferenceHighlightForItems (QList< vtkIdType > itemIDs) |
void | changeEvent (QEvent *e) override |
virtual bool | clickDecoration (QMouseEvent *e) |
vtkIdType | firstSelectedSubjectHierarchyItemInBranch (vtkIdType itemID) |
void | keyPressEvent (QKeyEvent *e) override |
Handle key press event. More... | |
void | mousePressEvent (QMouseEvent *e) override |
Handle mouse press event. More... | |
virtual void | populateContextMenuForItem (vtkIdType itemID) |
virtual void | populateTransformContextMenuForItem (vtkIdType itemID) |
Populate transform context menu for given subject hierarchy item. More... | |
virtual void | populateVisibilityContextMenuForItem (vtkIdType itemID) |
Populate visibility context menu for given subject hierarchy item. More... | |
virtual void | setSubjectHierarchyNode (vtkMRMLSubjectHierarchyNode *shNode) |
Set the subject hierarchy node found in the given scene. Called only internally. More... | |
void | toggleSubjectHierarchyItemVisibility (vtkIdType itemID) |
Toggle visibility for given subject hierarchy item. More... | |
Protected Attributes | |
QScopedPointer< qMRMLSubjectHierarchyTreeViewPrivate > | d_ptr |
Friends | |
class | qMRMLSubjectHierarchyComboBox |
Definition at line 44 of file qMRMLSubjectHierarchyTreeView.h.
typedef QTreeView qMRMLSubjectHierarchyTreeView::Superclass |
Definition at line 105 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Filter to show only items that contain an attribute with this name. Empty by default Note: Deprecated, kept only for backwards compatibility. Sets and returns the first attribute in
Definition at line 97 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Filter to show only items that contain any attribute given in
Definition at line 102 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 72 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Flag determining whether context menu is enabled.
Definition at line 59 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 74 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
This property controls whether the Edit properties context menu action is visible. Visible by default.
Definition at line 61 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Filter to hide items that contain any of the given attributes with this name. Empty by default Overrides
Definition at line 90 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Filter to hide items for data nodes that contain any of the given attributes with this name. Empty by default Overrides
Definition at line 93 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 69 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Flag determining whether to highlight items referenced by DICOM. Storing DICOM references: Referenced SOP instance UIDs (in attribute named vtkMRMLSubjectHierarchyConstants::GetDICOMReferencedInstanceUIDsAttributeName()) -> SH item instance UIDs (serialized string lists in subject hierarchy UID vtkMRMLSubjectHierarchyConstants::GetDICOMInstanceUIDName())
Definition at line 57 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 71 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Filter to show only items that contain any of the given attributes with this name. Empty by default.
Definition at line 85 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Filter to show only items for data nodes that contain any of the given attributes with this name. Empty by default.
Definition at line 87 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 66 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Flag determining whether multiple items can be selected.
Definition at line 65 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 67 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 68 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
This property controls the name that is displayed for the None item. "None" by default.
Definition at line 82 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
This property controls whether an extra item is added before any subject hierarchy item under the scene item for indicating 'None' selection.
Definition at line 78 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
This property controls whether the Select role context menu sub-menu is visible. Visible by default.
Definition at line 63 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
This property controls whether the root item (folder, an item for a data node, or the scene itself), if any is visible. When the root item is visible, it appears as a top-level item, if it is hidden only its children are top-level items. It doesn't have any effect if rootItem() is invalid. Shown by default.
Definition at line 53 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 73 of file qMRMLSubjectHierarchyTreeView.h.
|
readwrite |
Definition at line 70 of file qMRMLSubjectHierarchyTreeView.h.
qMRMLSubjectHierarchyTreeView::qMRMLSubjectHierarchyTreeView | ( | QWidget * | parent = nullptr | ) |
|
override |
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::addItemAttributeFilter | ( | QString | attributeName, |
QVariant | attributeValue = QString() , |
||
bool | include = true |
||
) |
Add single item attribute filter specifying attribute name, value, include/exclude, and class name
attributeName | Name of the item attribute to filter |
attributeValue | Value of the item attribute to filter |
include | Flag indicating whether this is an include filter or exclude filter.
|
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::addNodeAttributeFilter | ( | QString | attributeName, |
QVariant | attributeValue = QString() , |
||
bool | include = true , |
||
QString | className = QString() |
||
) |
Add single node attribute filter specifying attribute name, value, include/exclude, and class name
attributeName | Name of the node attribute to filter |
attributeValue | Value of the node attribute to filter |
include | Flag indicating whether this is an include filter or exclude filter.
|
className | Only filter attributes on a certain type. Empty by default (i.e. allow all classes) |
|
protected |
Apply highlight for subject hierarchy items referenced by argument items by DICOM
QString qMRMLSubjectHierarchyTreeView::attributeNameFilter | ( | ) | const |
QString qMRMLSubjectHierarchyTreeView::attributeValueFilter | ( | ) | const |
|
overrideprotected |
|
protectedvirtual |
Handles clicks on the decoration of items (i.e. icon). In visibility column this means either toggle visibility or show visibility context menu.
|
virtualslot |
Handle collapse item requests in the subject hierarchy tree. Collapses branch.
bool qMRMLSubjectHierarchyTreeView::colorColumnVisible | ( | ) |
bool qMRMLSubjectHierarchyTreeView::contextMenuEnabled | ( | ) | const |
Q_INVOKABLE vtkIdType qMRMLSubjectHierarchyTreeView::currentItem | ( | ) | const |
Get current (=selected) item. If there are multiple items selected, then the first one is returned.
|
signal |
|
signal |
QList<vtkIdType> qMRMLSubjectHierarchyTreeView::currentItems | ( | ) |
Get current (=selected) items.
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::currentItems | ( | vtkIdList * | selectedItems | ) |
Get current (=selected) items.
vtkIdList | for python compatibility |
|
signal |
|
virtual |
Convenience method to set current item by associated data node.
|
slot |
Delete selected subject hierarchy items and associated data nodes.
bool qMRMLSubjectHierarchyTreeView::descriptionColumnVisible | ( | ) |
|
slot |
Disable subject hierarchy plugin by adding it to the blacklist
plugin | Name of the plugin to disable |
Q_INVOKABLE int qMRMLSubjectHierarchyTreeView::displayedItemCount | ( | ) | const |
Determine the number of shown items.
|
virtualslot |
Edit properties of current item.
bool qMRMLSubjectHierarchyTreeView::editMenuActionVisible | ( | ) | const |
QStringList qMRMLSubjectHierarchyTreeView::excludeItemAttributeNamesFilter | ( | ) | const |
QStringList qMRMLSubjectHierarchyTreeView::excludeNodeAttributeNamesFilter | ( | ) | const |
|
virtualslot |
Handle expand item requests in the subject hierarchy tree. Expands branch.
|
protectedvirtualslot |
Expand tree to depth specified by the clicked context menu action.
|
protected |
Return the id of the first subject hierarchy item that is found to be selected within the branch that has the input item id as its root
QStringList qMRMLSubjectHierarchyTreeView::hideChildNodeTypes | ( | ) | const |
bool qMRMLSubjectHierarchyTreeView::highlightReferencedItems | ( | ) | const |
bool qMRMLSubjectHierarchyTreeView::idColumnVisible | ( | ) |
QStringList qMRMLSubjectHierarchyTreeView::includeItemAttributeNamesFilter | ( | ) | const |
QStringList qMRMLSubjectHierarchyTreeView::includeNodeAttributeNamesFilter | ( | ) | const |
|
overrideprotected |
Handle key press event.
QStringList qMRMLSubjectHierarchyTreeView::levelFilter | ( | ) | const |
Q_INVOKABLE qMRMLSubjectHierarchyModel* qMRMLSubjectHierarchyTreeView::model | ( | ) | const |
|
overrideprotected |
Handle mouse press event.
Q_INVOKABLE vtkMRMLScene* qMRMLSubjectHierarchyTreeView::mrmlScene | ( | ) | const |
bool qMRMLSubjectHierarchyTreeView::multiSelection | ( | ) |
Get whether multi-selection is enabled.
QString qMRMLSubjectHierarchyTreeView::nameFilter | ( | ) | const |
QStringList qMRMLSubjectHierarchyTreeView::nodeTypes | ( | ) | const |
QString qMRMLSubjectHierarchyTreeView::noneDisplay | ( | ) | const |
bool qMRMLSubjectHierarchyTreeView::noneEnabled | ( | ) | const |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedslot |
|
protectedvirtualslot |
Updates subject hierarchy item expanded property when item is collapsed.
|
protectedvirtualslot |
Updates subject hierarchy item expanded property when item is expanded.
|
protectedvirtualslot |
Called when batch processing ends. Restores selection, which is lost when the hierarchy is rebuilt.
|
protectedvirtualslot |
Called when scene close is finished. Hierarchy is cleared in that case.
|
protectedvirtualslot |
Called when batch processing starts. Makes sure stored selection does not get emptied before restoring.
|
protectedvirtualslot |
Called when scene close is started.
|
protectedvirtualslot |
|
protectedvirtualslot |
Propagate item modified event.
|
protectedvirtualslot |
Propagate item transform modified event.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Populate general context menu for given subject hierarchy item
itemID | Subject hierarchy item ID of the item to show context menu for. It is only used to determine whether empty area or scene was clicked. If not, then use the current items vector so that multi-selection can also be handled. |
|
protectedvirtual |
Populate transform context menu for given subject hierarchy item.
|
protectedvirtual |
Populate visibility context menu for given subject hierarchy item.
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::removeAttributeFilter | ( | ) |
Remove item attribute filtering.
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::removeItemAttributeFilter | ( | QString | attributeName, |
QVariant | attributeValue, | ||
bool | include | ||
) |
Remove single item attribute filter specifying each attribute.
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::removeItemAttributeFilter | ( | QString | attributeName, |
bool | include | ||
) |
Remove all item attribute filters specifying a given attribute name and include flag.
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::removeNodeAttributeFilter | ( | QString | attributeName, |
QVariant | attributeValue, | ||
bool | include, | ||
QString | className | ||
) |
Remove single node attribute filter specifying each attribute.
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::removeNodeAttributeFilter | ( | QString | attributeName, |
bool | include | ||
) |
Remove all node attribute filters specifying a given attribute name and include flag.
|
slot |
Rename currently selected one item by popping up a dialog.
|
slot |
Resets column sizes and size policies to default.
Q_INVOKABLE vtkIdType qMRMLSubjectHierarchyTreeView::rootItem | ( | ) | const |
Get root item of the tree.
|
virtualslot |
Handle manual selection of a plugin as the new owner of a subject hierarchy node.
bool qMRMLSubjectHierarchyTreeView::selectRoleSubMenuVisible | ( | ) | const |
Q_INVOKABLE void qMRMLSubjectHierarchyTreeView::setAttributeFilter | ( | const QString & | attributeName, |
const QVariant & | attributeValue = QVariant() |
||
) |
Set attribute filter that allows showing only items that have the specified attribute and their parents.
attributeName | Name of the attribute by which the items are filtered |
attributeValue | Value of the specified attribute that needs to match this given value in order for it to be shown. If empty, then existence of the attribute is enough to show. Empty by default |
|
slot |
|
slot |
void qMRMLSubjectHierarchyTreeView::setColorColumnVisible | ( | bool | visible | ) |
Set color column visibility.
|
slot |
|
virtualslot |
Set current (=selected) subject hierarchy item.
|
virtualslot |
Set current (=selected) subject hierarchy items.
|
virtualslot |
Python compatibility function to set current (=selected) subject hierarchy items.
|
virtualslot |
Convenience method to set current item by associated data node.
void qMRMLSubjectHierarchyTreeView::setDescriptionColumnVisible | ( | bool | visible | ) |
Set description column visibility.
|
slot |
|
slot |
|
slot |
void qMRMLSubjectHierarchyTreeView::setHideChildNodeTypes | ( | const QStringList & | types | ) |
Set child node types filter that allows hiding certain data node subclasses that would otherwise be accepted by the data node type filter. Show all data nodes if empty
|
slot |
void qMRMLSubjectHierarchyTreeView::setIdColumnVisible | ( | bool | visible | ) |
Set ID column visibility.
|
slot |
|
slot |
void qMRMLSubjectHierarchyTreeView::setLevelFilter | ( | QStringList & | levelFilter | ) |
Set level filter that allows showing only items at a specified level and their parents. Show all items if empty.
|
virtualslot |
Set MRML scene.
|
virtualslot |
Set multi-selection.
void qMRMLSubjectHierarchyTreeView::setNameFilter | ( | QString & | nameFilter | ) |
Set name filter that allows showing only items containing a specified string (case-insensitive). Show all items if empty.
void qMRMLSubjectHierarchyTreeView::setNodeTypes | ( | const QStringList & | types | ) |
Set node type filter that allows showing only data nodes of a certain type. Show all data nodes if empty.
|
slot |
|
slot |
|
slot |
Set list of subject hierarchy plugins that are disabled.
blacklist | List of blacklisted subject hierarchy plugin names. Empty blacklist means all plugins are enabled. That is the default. |
|
slot |
Set list of subject hierarchy plugins that are enabled.
whitelist | List of whitelisted subject hierarchy plugin names. Empty whitelist means all plugins are enabled. That is the default. |
|
virtualslot |
Set subject hierarchy item to be the root in the shown tree.
|
slot |
|
slot |
Set root item visibility.
|
protectedvirtual |
Set the subject hierarchy node found in the given scene. Called only internally.
void qMRMLSubjectHierarchyTreeView::setTransformColumnVisible | ( | bool | visible | ) |
Set transform column visibility.
void qMRMLSubjectHierarchyTreeView::setVisibilityColumnVisible | ( | bool | visible | ) |
Set visibility column visibility.
|
slot |
Show hint to user about context menus
visibility | True if visibility context menu hint is to be shown, false for general context menu. False by default |
bool qMRMLSubjectHierarchyTreeView::showRootItem | ( | ) | const |
Get root item visibility.
Q_INVOKABLE qMRMLSortFilterSubjectHierarchyProxyModel* qMRMLSubjectHierarchyTreeView::sortFilterProxyModel | ( | ) | const |
Q_INVOKABLE vtkMRMLSubjectHierarchyNode* qMRMLSubjectHierarchyTreeView::subjectHierarchyNode | ( | ) | const |
|
protected |
Toggle visibility for given subject hierarchy item.
|
slot |
Toggle visibility of selected subject hierarchy items.
bool qMRMLSubjectHierarchyTreeView::transformColumnVisible | ( | ) |
|
protectedvirtualslot |
Update root item to restore view (e.g. after tree was updated in the model from the subject hierarchy)
|
virtualslot |
Update select plugin actions. Is called when the plugin selection sub-menu is opened, and when the user manually changes the owner plugin of a node. It sets checked state and update confidence values in the select plugin actions in the node context menu for the currently selected node.
bool qMRMLSubjectHierarchyTreeView::visibilityColumnVisible | ( | ) |
|
friend |
Definition at line 380 of file qMRMLSubjectHierarchyTreeView.h.
|
protected |
Definition at line 375 of file qMRMLSubjectHierarchyTreeView.h.