#include <Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyComboBox.h>
|
QScopedPointer< qMRMLSubjectHierarchyComboBoxPrivate > | d_ptr |
|
◆ Superclass
◆ alignPopupVertically
bool qMRMLSubjectHierarchyComboBox::alignPopupVertically |
|
readwrite |
Property determining the vertical alignement 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 |
◆ 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.
◆ 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 |
◆ 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: