Widget that represents a node selection of (max) one node. It acts like a button. Clicking on it allows to change the selection.
More...
#include <QmitkSingleNodeSelectionWidget.h>
Widget that represents a node selection of (max) one node. It acts like a button. Clicking on it allows to change the selection.
Definition at line 40 of file QmitkSingleNodeSelectionWidget.h.
◆ NodeList
◆ QmitkSingleNodeSelectionWidget()
QmitkSingleNodeSelectionWidget::QmitkSingleNodeSelectionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ AutoSelectNodes()
void QmitkSingleNodeSelectionWidget::AutoSelectNodes |
( |
| ) |
|
|
protected |
◆ DetermineAutoSelectNode()
Helper function that gets a suitable auto selected node from the datastorage that fits to the predicate settings.
- Parameters
-
ignoreNodes | You may pass a list of nodes that must not be chosen as auto selected node. |
◆ EditSelection()
void QmitkSingleNodeSelectionWidget::EditSelection |
( |
| ) |
|
|
protected |
◆ eventFilter()
bool QmitkSingleNodeSelectionWidget::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
ev |
|
) |
| |
|
overrideprotected |
◆ GetAutoSelectNewNodes()
bool QmitkSingleNodeSelectionWidget::GetAutoSelectNewNodes |
( |
| ) |
const |
◆ GetSelectedNode()
◆ OnClearSelection
virtual void QmitkSingleNodeSelectionWidget::OnClearSelection |
( |
| ) |
|
|
protectedvirtualslot |
◆ OnDataStorageChanged()
void QmitkSingleNodeSelectionWidget::OnDataStorageChanged |
( |
| ) |
|
|
overrideprotectedvirtual |
Method is called if the data storage has changed. The selection will be automatically be reset afterwards. The default implementation does nothing.
Reimplemented from QmitkAbstractNodeSelectionWidget.
◆ OnNodeAddedToStorage()
void QmitkSingleNodeSelectionWidget::OnNodeAddedToStorage |
( |
const mitk::DataNode * |
node | ) |
|
|
overrideprotectedvirtual |
Method is called when a node is added to the storage. Default implementation does nothing. Derived widgets can override the method if they want to react on new nodes in the storage.
Reimplemented from QmitkAbstractNodeSelectionWidget.
◆ OnNodePredicateChanged()
void QmitkSingleNodeSelectionWidget::OnNodePredicateChanged |
( |
| ) |
|
|
overrideprotectedvirtual |
Method is called if the predicate has changed, before the selection will be updated according to the new predicate. The default implementation does nothing.
Reimplemented from QmitkAbstractNodeSelectionWidget.
◆ ReviseSelectionChanged()
void QmitkSingleNodeSelectionWidget::ReviseSelectionChanged |
( |
const NodeList & |
oldInternalSelection, |
|
|
NodeList & |
newInternalSelection |
|
) |
| |
|
overrideprotectedvirtual |
This member function is called if the internal selection is about to be changed by the base implementation. This is the slot where derived classes can revise and change the internal selection before widget updates, signal emissions and other things are triggered. Default implementation does nothing, thus it keeps the passed internal selection as compiled by the base implementation.
Reimplemented from QmitkAbstractNodeSelectionWidget.
◆ SetAutoSelectNewNodes
void QmitkSingleNodeSelectionWidget::SetAutoSelectNewNodes |
( |
bool |
autoSelect | ) |
|
|
slot |
Sets the auto selection mode (default is false). If auto select is true and the following conditions are fulfilled, the widget will select a node automatically from the data storage:
- a data storage is set
- data storage contains at least one node that matches the given predicate
- no selection is set
◆ SetCurrentSelectedNode
void QmitkSingleNodeSelectionWidget::SetCurrentSelectedNode |
( |
mitk::DataNode * |
selectedNode | ) |
|
|
slot |
◆ UpdateInfo()
void QmitkSingleNodeSelectionWidget::UpdateInfo |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ m_AutoSelectNodes
bool QmitkSingleNodeSelectionWidget::m_AutoSelectNodes |
|
protected |
◆ m_Controls
Ui_QmitkSingleNodeSelectionWidget QmitkSingleNodeSelectionWidget::m_Controls |
|
protected |
The documentation for this class was generated from the following file: