#include <Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyComboBox.h>
|
QScopedPointer< qMRMLSubjectHierarchyComboBoxPrivate > | d_ptr |
|
◆ Superclass
◆ alignPopupVertically
bool qMRMLSubjectHierarchyComboBox::alignPopupVertically |
|
readwrite |
Property determining the vertical alignment of the popup tree with the combobox. If aligned, the popup will shift vertically so that the selected item overlays above the combobox. Else, the popup tree appears below the combobox, like for a qMRMLNodeComboBox.
Definition at line 58 of file qMRMLSubjectHierarchyComboBox.h.
◆ highlightReferencedItems
bool qMRMLSubjectHierarchyComboBox::highlightReferencedItems |
|
readwrite |
◆ maximumNumberOfShownItems
int qMRMLSubjectHierarchyComboBox::maximumNumberOfShownItems |
|
readwrite |
◆ showRootItem
bool qMRMLSubjectHierarchyComboBox::showRootItem |
|
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.
- See also
- setShowRootItem(), showRootItem(), setRootItem(), setRootIndex()
Definition at line 48 of file qMRMLSubjectHierarchyComboBox.h.
◆ qMRMLSubjectHierarchyComboBox()
qMRMLSubjectHierarchyComboBox::qMRMLSubjectHierarchyComboBox |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~qMRMLSubjectHierarchyComboBox()
virtual qMRMLSubjectHierarchyComboBox::~qMRMLSubjectHierarchyComboBox |
( |
| ) |
|
|
virtual |
◆ alignPopupVertically()
bool qMRMLSubjectHierarchyComboBox::alignPopupVertically |
( |
| ) |
const |
◆ clearSelection()
Q_INVOKABLE void qMRMLSubjectHierarchyComboBox::clearSelection |
( |
| ) |
|
◆ currentItem()
Q_INVOKABLE vtkIdType qMRMLSubjectHierarchyComboBox::currentItem |
( |
| ) |
const |
◆ currentItemChanged
void qMRMLSubjectHierarchyComboBox::currentItemChanged |
( |
vtkIdType |
| ) |
|
|
signal |
◆ currentItemModified
void qMRMLSubjectHierarchyComboBox::currentItemModified |
( |
vtkIdType |
| ) |
|
|
signal |
◆ disablePlugin
void qMRMLSubjectHierarchyComboBox::disablePlugin |
( |
QString |
plugin | ) |
|
|
slot |
Disable subject hierarchy plugin by adding it to the blacklist
- See also
- setPluginBlacklist
- Parameters
-
plugin | Name of the plugin to disable |
◆ highlightReferencedItems()
bool qMRMLSubjectHierarchyComboBox::highlightReferencedItems |
( |
| ) |
const |
◆ maximumNumberOfShownItems()
int qMRMLSubjectHierarchyComboBox::maximumNumberOfShownItems |
( |
| ) |
const |
◆ model()
◆ mousePressEvent()
virtual void qMRMLSubjectHierarchyComboBox::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Handle mouse press event (disable context menu)
◆ mrmlScene()
Q_INVOKABLE vtkMRMLScene* qMRMLSubjectHierarchyComboBox::mrmlScene |
( |
| ) |
const |
◆ removeAttributeFilter()
Q_INVOKABLE void qMRMLSubjectHierarchyComboBox::removeAttributeFilter |
( |
| ) |
|
Remove item attribute filtering.
- See also
- setAttribute
◆ rootItem()
Q_INVOKABLE vtkIdType qMRMLSubjectHierarchyComboBox::rootItem |
( |
| ) |
const |
◆ setAlignPopupVertically()
void qMRMLSubjectHierarchyComboBox::setAlignPopupVertically |
( |
bool |
align | ) |
|
◆ setAttributeFilter()
Q_INVOKABLE void qMRMLSubjectHierarchyComboBox::setAttributeFilter |
( |
const QString & |
attributeName, |
|
|
const QVariant & |
attributeValue = QVariant() |
|
) |
| |
Set attribute filter that allows showing only items that have the specified attribute and their parents.
- Parameters
-
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 |
◆ setCurrentItem
virtual void qMRMLSubjectHierarchyComboBox::setCurrentItem |
( |
vtkIdType |
itemID | ) |
|
|
virtualslot |
Set current (=selected) subject hierarchy item.
◆ setHideChildNodeTypes()
Q_INVOKABLE void qMRMLSubjectHierarchyComboBox::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
◆ setHighlightReferencedItems()
void qMRMLSubjectHierarchyComboBox::setHighlightReferencedItems |
( |
bool |
highlightOn | ) |
|
◆ setLevelFilter()
Q_INVOKABLE void qMRMLSubjectHierarchyComboBox::setLevelFilter |
( |
QString & |
levelFilter | ) |
|
Set level filter that allows showing only items at a specified level and their parents. Show all items if empty.
◆ setMaximumNumberOfShownItems()
void qMRMLSubjectHierarchyComboBox::setMaximumNumberOfShownItems |
( |
int |
maxNumberOfShownItems | ) |
|
◆ setMRMLScene
virtual void qMRMLSubjectHierarchyComboBox::setMRMLScene |
( |
vtkMRMLScene * |
scene | ) |
|
|
virtualslot |
◆ setNodeTypes()
Q_INVOKABLE void qMRMLSubjectHierarchyComboBox::setNodeTypes |
( |
const QStringList & |
types | ) |
|
Set node type filter that allows showing only data nodes of a certain type. Show all data nodes if empty.
◆ setPluginBlacklist
void qMRMLSubjectHierarchyComboBox::setPluginBlacklist |
( |
QStringList |
blacklist | ) |
|
|
slot |
Set list of subject hierarchy plugins that are disabled.
- Parameters
-
blacklist | List of blacklisted subject hierarchy plugin names. Empty blacklist means all plugins are enabled. That is the default. |
◆ setPluginWhitelist
void qMRMLSubjectHierarchyComboBox::setPluginWhitelist |
( |
QStringList |
whitelist | ) |
|
|
slot |
Set list of subject hierarchy plugins that are enabled.
- Parameters
-
whitelist | List of whitelisted subject hierarchy plugin names. Empty whitelist means all plugins are enabled. That is the default. |
◆ setRootItem
virtual void qMRMLSubjectHierarchyComboBox::setRootItem |
( |
vtkIdType |
itemID | ) |
|
|
virtualslot |
Set subject hierarchy item to be the root in the shown tree.
◆ setShowRootItem()
void qMRMLSubjectHierarchyComboBox::setShowRootItem |
( |
bool |
show | ) |
|
◆ showPopup()
virtual void qMRMLSubjectHierarchyComboBox::showPopup |
( |
| ) |
|
|
virtual |
Provides customized popup window for the tree view.
◆ showRootItem()
bool qMRMLSubjectHierarchyComboBox::showRootItem |
( |
| ) |
const |
◆ sortFilterProxyModel()
◆ subjectHierarchyNode()
◆ updateComboBoxTitleAndIcon
void qMRMLSubjectHierarchyComboBox::updateComboBoxTitleAndIcon |
( |
vtkIdType |
selectedShItemID | ) |
|
|
protectedslot |
◆ d_ptr
QScopedPointer<qMRMLSubjectHierarchyComboBoxPrivate> qMRMLSubjectHierarchyComboBox::d_ptr |
|
protected |
The documentation for this class was generated from the following file: