Qt widget for selecting a single segment from a segmentation. If multiple segments are needed, then use.
More...
#include <Libs/MRML/Widgets/qMRMLSegmentSelectorWidget.h>
|
QScopedPointer< qMRMLSegmentSelectorWidgetPrivate > | d_ptr |
|
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
|
Qt widget for selecting a single segment from a segmentation. If multiple segments are needed, then use.
- See also
- qMRMLSegmentsTableView instead in SimpleListMode
Definition at line 43 of file qMRMLSegmentSelectorWidget.h.
◆ Superclass
◆ editEnabled
bool qMRMLSegmentSelectorWidget::editEnabled |
|
readwrite |
◆ horizontalLayout
bool qMRMLSegmentSelectorWidget::horizontalLayout |
|
readwrite |
◆ multiSelection
bool qMRMLSegmentSelectorWidget::multiSelection |
|
readwrite |
◆ noneEnabled
bool qMRMLSegmentSelectorWidget::noneEnabled |
|
readwrite |
◆ segmentationNodeSelectorVisible
bool qMRMLSegmentSelectorWidget::segmentationNodeSelectorVisible |
|
readwrite |
◆ selectNodeUponCreation
bool qMRMLSegmentSelectorWidget::selectNodeUponCreation |
|
readwrite |
◆ qMRMLSegmentSelectorWidget()
qMRMLSegmentSelectorWidget::qMRMLSegmentSelectorWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~qMRMLSegmentSelectorWidget()
qMRMLSegmentSelectorWidget::~qMRMLSegmentSelectorWidget |
( |
| ) |
|
|
override |
◆ currentNode()
Q_INVOKABLE vtkMRMLNode* qMRMLSegmentSelectorWidget::currentNode |
( |
| ) |
|
Get currently selected segmentation MRML node.
◆ currentNodeChanged [1/2]
void qMRMLSegmentSelectorWidget::currentNodeChanged |
( |
vtkMRMLNode * |
| ) |
|
|
signal |
◆ currentNodeChanged [2/2]
void qMRMLSegmentSelectorWidget::currentNodeChanged |
( |
bool |
validNode | ) |
|
|
signal |
Signal emitted just after currentNodeChanged(vtkMRMLNode*) is.
- Parameters
-
validNode | set to True when the current node is changed. Set to False when the list is empty. Useful to enable/disable/show/hide other widgets depending on the validity of the current node. |
◆ currentNodeID()
Q_INVOKABLE QString qMRMLSegmentSelectorWidget::currentNodeID |
( |
| ) |
|
Get currently selected segmentation node's ID.
◆ currentSegmentChanged
void qMRMLSegmentSelectorWidget::currentSegmentChanged |
( |
QString |
| ) |
|
|
signal |
◆ currentSegmentID()
Q_INVOKABLE QString qMRMLSegmentSelectorWidget::currentSegmentID |
( |
| ) |
|
Get segment ID of selected segment. Returns empty string if multi-selection is enabled (when
- See also
- multiSelection is true)
◆ editEnabled()
bool qMRMLSegmentSelectorWidget::editEnabled |
( |
| ) |
const |
◆ horizontalLayout()
bool qMRMLSegmentSelectorWidget::horizontalLayout |
( |
| ) |
const |
◆ multiSelection()
bool qMRMLSegmentSelectorWidget::multiSelection |
( |
| ) |
const |
◆ nodeAboutToBeEdited
void qMRMLSegmentSelectorWidget::nodeAboutToBeEdited |
( |
vtkMRMLNode * |
node | ) |
|
|
signal |
Signal emitted when edit node menu action is selected in the segmentation node combobox.
◆ noneEnabled()
bool qMRMLSegmentSelectorWidget::noneEnabled |
( |
| ) |
const |
◆ onCurrentNodeChanged
Q_INVOKABLE void qMRMLSegmentSelectorWidget::onCurrentNodeChanged |
( |
vtkMRMLNode * |
node | ) |
|
|
protectedslot |
Handles changing of current segmentation MRML node.
◆ onCurrentSegmentChanged
void qMRMLSegmentSelectorWidget::onCurrentSegmentChanged |
( |
int |
index | ) |
|
|
protectedslot |
Handles changing of selection in the segment combobox.
◆ onSegmentMultiSelectionChanged
void qMRMLSegmentSelectorWidget::onSegmentMultiSelectionChanged |
( |
| ) |
|
|
protectedslot |
Handles selection change in case of multi-selection.
◆ populateSegmentCombobox
void qMRMLSegmentSelectorWidget::populateSegmentCombobox |
( |
| ) |
|
|
protectedslot |
Populate segment combobox according to the segmentation node.
◆ segmentationNodeSelectorVisible()
bool qMRMLSegmentSelectorWidget::segmentationNodeSelectorVisible |
( |
| ) |
const |
◆ segmentSelectionChanged
void qMRMLSegmentSelectorWidget::segmentSelectionChanged |
( |
QStringList |
| ) |
|
|
signal |
◆ selectedSegmentIDs()
Q_INVOKABLE QStringList qMRMLSegmentSelectorWidget::selectedSegmentIDs |
( |
| ) |
|
Get segment IDs of selected segments. Returns empty string in case of single selection (when
- See also
- multiSelection is false)
◆ selectNodeUponCreation()
bool qMRMLSegmentSelectorWidget::selectNodeUponCreation |
( |
| ) |
const |
if true, when the user create a node using "Add node", the node will be automatically selected. It doesn't apply if the node is programmatically added (when the combobox is populated by the scene).
◆ setCurrentNode
Q_INVOKABLE void qMRMLSegmentSelectorWidget::setCurrentNode |
( |
vtkMRMLNode * |
node | ) |
|
|
slot |
Set segmentation MRML node.
◆ setCurrentNodeID
Q_INVOKABLE void qMRMLSegmentSelectorWidget::setCurrentNodeID |
( |
const QString & |
nodeID | ) |
|
|
slot |
Set segmentation MRML node by its ID.
◆ setCurrentSegmentID
Q_INVOKABLE void qMRMLSegmentSelectorWidget::setCurrentSegmentID |
( |
QString |
segmentID | ) |
|
|
slot |
Select segment with given ID. Does nothing in case multi-selection is enabled (when
- See also
- multiSelection is true)
◆ setEditEnabled()
void qMRMLSegmentSelectorWidget::setEditEnabled |
( |
bool |
enable | ) |
|
◆ setHorizontalLayout()
void qMRMLSegmentSelectorWidget::setHorizontalLayout |
( |
bool |
horizontal | ) |
|
◆ setMultiSelection()
void qMRMLSegmentSelectorWidget::setMultiSelection |
( |
bool |
multi | ) |
|
◆ setNoneEnabled()
void qMRMLSegmentSelectorWidget::setNoneEnabled |
( |
bool |
enable | ) |
|
◆ setSegmentationNodeSelectorVisible()
void qMRMLSegmentSelectorWidget::setSegmentationNodeSelectorVisible |
( |
bool |
visible | ) |
|
◆ setSelectedSegmentIDs
Q_INVOKABLE void qMRMLSegmentSelectorWidget::setSelectedSegmentIDs |
( |
QStringList |
segmentIDList | ) |
|
|
slot |
Select segments with given IDs. Does nothing in case of single selection (when
- See also
- multiSelection is false)
◆ setSelectNodeUponCreation()
void qMRMLSegmentSelectorWidget::setSelectNodeUponCreation |
( |
bool |
value | ) |
|
◆ d_ptr
QScopedPointer<qMRMLSegmentSelectorWidgetPrivate> qMRMLSegmentSelectorWidget::d_ptr |
|
protected |
The documentation for this class was generated from the following file: