Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkSegmentationTaskListWidget Class Reference

Widget for managing segmentation task lists. More...

#include <QmitkSegmentationTaskListWidget.h>

Inheritance diagram for QmitkSegmentationTaskListWidget:
Collaboration diagram for QmitkSegmentationTaskListWidget:

Signals

void ActiveTaskChanged (const std::optional< size_t > &index)
 Emitted when the active task changes. The index is std::nullopt when no task is active. More...
 
void CurrentTaskChanged (const std::optional< size_t > &index)
 Emitted when the current (browsed) task changes. The index is std::nullopt when no task is current. More...
 

Public Member Functions

 QmitkSegmentationTaskListWidget (QWidget *parent=nullptr)
 Constructs the segmentation task list widget. More...
 
 ~QmitkSegmentationTaskListWidget () override
 
void SetDataStorage (mitk::DataStorage *dataStorage)
 Sets the data storage used for loading task data nodes. More...
 
void CheckDataStorage (const mitk::DataNode *removedNode=nullptr)
 Checks data storage consistency, optionally after a node removal. More...
 
bool ActiveTaskIsShown () const
 Returns true if the currently active task is shown in the widget. More...
 
void LoadNextUnfinishedTask ()
 Loads the next unfinished task from the task list. More...
 
void SaveActiveTask (bool saveAsInterimResult=false)
 Saves the currently active task, optionally as an interim result. More...
 
bool OnPreShutdown ()
 Called during application shutdown; prompts for unsaved changes if needed. Returns false to cancel shutdown. More...
 

Detailed Description

Widget for managing segmentation task lists.

Provides navigation through a list of segmentation tasks, loading/unloading of task images and segmentations, saving results, and tracking task progress.

See also
mitk::SegmentationTaskList

Definition at line 44 of file QmitkSegmentationTaskListWidget.h.

Constructor & Destructor Documentation

◆ QmitkSegmentationTaskListWidget()

QmitkSegmentationTaskListWidget::QmitkSegmentationTaskListWidget ( QWidget *  parent = nullptr)
explicit

Constructs the segmentation task list widget.

◆ ~QmitkSegmentationTaskListWidget()

QmitkSegmentationTaskListWidget::~QmitkSegmentationTaskListWidget ( )
override

Member Function Documentation

◆ ActiveTaskChanged

void QmitkSegmentationTaskListWidget::ActiveTaskChanged ( const std::optional< size_t > &  index)
signal

Emitted when the active task changes. The index is std::nullopt when no task is active.

◆ ActiveTaskIsShown()

bool QmitkSegmentationTaskListWidget::ActiveTaskIsShown ( ) const

Returns true if the currently active task is shown in the widget.

◆ CheckDataStorage()

void QmitkSegmentationTaskListWidget::CheckDataStorage ( const mitk::DataNode *  removedNode = nullptr)

Checks data storage consistency, optionally after a node removal.

◆ CurrentTaskChanged

void QmitkSegmentationTaskListWidget::CurrentTaskChanged ( const std::optional< size_t > &  index)
signal

Emitted when the current (browsed) task changes. The index is std::nullopt when no task is current.

◆ LoadNextUnfinishedTask()

void QmitkSegmentationTaskListWidget::LoadNextUnfinishedTask ( )

Loads the next unfinished task from the task list.

◆ OnPreShutdown()

bool QmitkSegmentationTaskListWidget::OnPreShutdown ( )

Called during application shutdown; prompts for unsaved changes if needed. Returns false to cancel shutdown.

◆ SaveActiveTask()

void QmitkSegmentationTaskListWidget::SaveActiveTask ( bool  saveAsInterimResult = false)

Saves the currently active task, optionally as an interim result.

◆ SetDataStorage()

void QmitkSegmentationTaskListWidget::SetDataStorage ( mitk::DataStorage *  dataStorage)

Sets the data storage used for loading task data nodes.


The documentation for this class was generated from the following file: