#include <Modules/Loadable/Segmentations/qSlicerSegmentationsModuleWidget.h>
|
QScopedPointer< qSlicerSegmentationsModuleWidgetPrivate > | d_ptr |
|
QScopedPointer< qSlicerAbstractModuleWidgetPrivate > | d_ptr |
|
QScopedPointer< qSlicerWidgetPrivate > | d_ptr |
|
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
|
QScopedPointer< qSlicerAbstractModuleRepresentationPrivate > | d_ptr |
|
◆ Superclass
◆ qSlicerSegmentationsModuleWidget()
qSlicerSegmentationsModuleWidget::qSlicerSegmentationsModuleWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~qSlicerSegmentationsModuleWidget()
qSlicerSegmentationsModuleWidget::~qSlicerSegmentationsModuleWidget |
( |
| ) |
|
|
override |
◆ collapseLabelmapLayers
void qSlicerSegmentationsModuleWidget::collapseLabelmapLayers |
( |
| ) |
|
|
protectedslot |
◆ copySegmentBetweenSegmentations()
bool qSlicerSegmentationsModuleWidget::copySegmentBetweenSegmentations |
( |
vtkSegmentation * |
fromSegmentation, |
|
|
vtkSegmentation * |
toSegmentation, |
|
|
QString |
segmentId, |
|
|
bool |
removeFromSource = false |
|
) |
| |
|
protected |
Copy segment from one segmentation to another
- Parameters
-
fromSegmentation | Source segmentation |
toSegmentation | Target segmentation |
segmentId | ID of segment to copy |
removeFromSource | If true, then delete segment from source segmentation after copying. Default value is false. |
- Returns
- Success flag
◆ copySegmentsBetweenSegmentations()
bool qSlicerSegmentationsModuleWidget::copySegmentsBetweenSegmentations |
( |
bool |
copyFromCurrentSegmentation, |
|
|
bool |
removeFromSource = false |
|
) |
| |
|
protected |
Copy segments to/from current segmentation from/to other segmentation.
- Parameters
-
copyFromCurrentSegmentation | If true, then copy current->other; otherwise other->current. |
removeFromSource | If true, then delete segment from source segmentation after copying. Default value is false. |
- Returns
- Success flag
◆ enter()
void qSlicerSegmentationsModuleWidget::enter |
( |
| ) |
|
|
overridevirtual |
The enter and exit methods are called when the module panel changes. These give the module a chance to do any setup or shutdown operations as it becomes active and inactive. It is the responsibility of the module's manager to call the methods. enter() and exit() must be called when reimplementing these methods in order to have isEntered() valid.
Reimplemented from qSlicerAbstractModuleWidget.
◆ exit()
void qSlicerSegmentationsModuleWidget::exit |
( |
| ) |
|
|
overridevirtual |
◆ exportFromCurrentSegmentation()
bool qSlicerSegmentationsModuleWidget::exportFromCurrentSegmentation |
( |
| ) |
|
|
protected |
◆ importToCurrentSegmentation()
bool qSlicerSegmentationsModuleWidget::importToCurrentSegmentation |
( |
| ) |
|
|
protected |
◆ init()
void qSlicerSegmentationsModuleWidget::init |
( |
| ) |
|
|
protected |
Initialization function to enable automatic testing.
◆ onAddSegment
void qSlicerSegmentationsModuleWidget::onAddSegment |
( |
| ) |
|
|
protectedslot |
◆ onCopyFromCurrentSegmentation
void qSlicerSegmentationsModuleWidget::onCopyFromCurrentSegmentation |
( |
| ) |
|
|
protectedslot |
◆ onCopyToCurrentSegmentation
void qSlicerSegmentationsModuleWidget::onCopyToCurrentSegmentation |
( |
| ) |
|
|
protectedslot |
◆ onEditSelectedSegment
void qSlicerSegmentationsModuleWidget::onEditSelectedSegment |
( |
| ) |
|
|
protectedslot |
◆ onEnter()
void qSlicerSegmentationsModuleWidget::onEnter |
( |
| ) |
|
|
protected |
◆ onExportColorTableChanged
void qSlicerSegmentationsModuleWidget::onExportColorTableChanged |
( |
| ) |
|
|
protectedslot |
◆ onImportExportApply
void qSlicerSegmentationsModuleWidget::onImportExportApply |
( |
| ) |
|
|
protectedslot |
◆ onImportExportClearSelection
void qSlicerSegmentationsModuleWidget::onImportExportClearSelection |
( |
| ) |
|
|
protectedslot |
◆ onMoveFromCurrentSegmentation
void qSlicerSegmentationsModuleWidget::onMoveFromCurrentSegmentation |
( |
| ) |
|
|
protectedslot |
◆ onMoveToCurrentSegmentation
void qSlicerSegmentationsModuleWidget::onMoveToCurrentSegmentation |
( |
| ) |
|
|
protectedslot |
◆ onMRMLSceneEndBatchProcessEvent
void qSlicerSegmentationsModuleWidget::onMRMLSceneEndBatchProcessEvent |
( |
| ) |
|
|
protectedslot |
◆ onMRMLSceneEndCloseEvent
void qSlicerSegmentationsModuleWidget::onMRMLSceneEndCloseEvent |
( |
| ) |
|
|
protectedslot |
◆ onMRMLSceneEndImportEvent
void qSlicerSegmentationsModuleWidget::onMRMLSceneEndImportEvent |
( |
| ) |
|
|
protectedslot |
◆ onMRMLSceneEndRestoreEvent
void qSlicerSegmentationsModuleWidget::onMRMLSceneEndRestoreEvent |
( |
| ) |
|
|
protectedslot |
◆ onRemoveSelectedSegments
void qSlicerSegmentationsModuleWidget::onRemoveSelectedSegments |
( |
| ) |
|
|
protectedslot |
◆ onSegmentationNodeChanged
void qSlicerSegmentationsModuleWidget::onSegmentationNodeChanged |
( |
vtkMRMLNode * |
node | ) |
|
|
protectedslot |
Handle change of selected segmentation node.
◆ onSegmentationNodeReferenceChanged
void qSlicerSegmentationsModuleWidget::onSegmentationNodeReferenceChanged |
( |
| ) |
|
|
protectedslot |
Populate master volume label and combobox for export.
◆ onSegmentSelectionChanged
void qSlicerSegmentationsModuleWidget::onSegmentSelectionChanged |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
protectedslot |
Callback function for selection changes in the main segment table view.
◆ segmentationDisplayNode()
Get display node of current segmentation node
- Parameters
-
create | If on, then create a default display node if missing. False by default |
◆ selectSegmentationNode
Select segmentation node in module (workaround for issue that newly added nodes are not selected in the module)
◆ setEditedNode()
bool qSlicerSegmentationsModuleWidget::setEditedNode |
( |
vtkMRMLNode * |
node, |
|
|
QString |
role = QString() , |
|
|
QString |
context = QString() |
|
) |
| |
|
overridevirtual |
◆ setOtherSegmentationOrRepresentationNode
void qSlicerSegmentationsModuleWidget::setOtherSegmentationOrRepresentationNode |
( |
vtkMRMLNode * |
node | ) |
|
|
protectedslot |
Handle change of selection for the "other" node in copy/move/import/export.
◆ setup()
void qSlicerSegmentationsModuleWidget::setup |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ updateCopyMoveButtonStates
void qSlicerSegmentationsModuleWidget::updateCopyMoveButtonStates |
( |
| ) |
|
|
protectedslot |
Update copy/move/import/export buttons based on selection.
◆ updateExportColorWidgets
void qSlicerSegmentationsModuleWidget::updateExportColorWidgets |
( |
| ) |
|
|
protectedslot |
◆ updateImportExportWidgets
void qSlicerSegmentationsModuleWidget::updateImportExportWidgets |
( |
| ) |
|
|
protectedslot |
◆ updateLayerWidgets
void qSlicerSegmentationsModuleWidget::updateLayerWidgets |
( |
| ) |
|
|
protectedslot |
◆ updateWidgetFromMRML
void qSlicerSegmentationsModuleWidget::updateWidgetFromMRML |
( |
| ) |
|
|
slot |
Update widget GUI from parameter node.
◆ d_ptr
QScopedPointer<qSlicerSegmentationsModuleWidgetPrivate> qSlicerSegmentationsModuleWidget::d_ptr |
|
protected |
The documentation for this class was generated from the following file: