Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkFindSegmentationTaskDialog.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef QmitkFindSegmentationTaskDialog_h
14
#define QmitkFindSegmentationTaskDialog_h
15
16
#include <QDialog>
17
#include <
mitkSegmentationTaskList.h
>
18
19
class
QTableWidgetItem;
20
21
namespace
Ui
22
{
23
class
QmitkFindSegmentationTaskDialog
;
24
}
25
26
class
QmitkFindSegmentationTaskDialog
:
public
QDialog
27
{
28
Q_OBJECT
29
30
public
:
31
explicit
QmitkFindSegmentationTaskDialog
(QWidget* parent =
nullptr
);
32
~QmitkFindSegmentationTaskDialog
()
override
;
33
34
void
SetTaskList
(
const
mitk::SegmentationTaskList
* taskList);
35
std::optional<size_t>
GetSelectedTask
()
const
;
36
bool
LoadSelectedTask
()
const
;
37
38
private
:
39
enum
Column
40
{
41
Number,
42
Name,
43
Status,
44
Image,
45
Segmentation,
46
Result,
47
Description
48
};
49
50
void
OnItemSelectionChanged();
51
void
OnItemDoubleClicked(QTableWidgetItem* item);
52
void
OnFinished(
int
result);
53
54
void
ApplyFilter();
55
bool
ContainsNumber(
int
row)
const
;
56
bool
ContainsName(
int
row)
const
;
57
bool
HasStatus(
int
row)
const
;
58
59
Ui::QmitkFindSegmentationTaskDialog* m_Ui;
60
mitk::SegmentationTaskList::ConstPointer
m_TaskList;
61
std::optional<size_t> m_SelectedTask;
62
};
63
64
#endif
QmitkFindSegmentationTaskDialog
Definition:
QmitkFindSegmentationTaskDialog.h:26
mitk::SegmentationTaskList
A list of segmentation tasks.
Definition:
mitkSegmentationTaskList.h:30
itk::SmartPointer< const Self >
QmitkFindSegmentationTaskDialog::QmitkFindSegmentationTaskDialog
QmitkFindSegmentationTaskDialog(QWidget *parent=nullptr)
Ui
Definition:
BlueBerryExampleLauncherDialog.h:21
QmitkFindSegmentationTaskDialog::LoadSelectedTask
bool LoadSelectedTask() const
mitkSegmentationTaskList.h
QmitkFindSegmentationTaskDialog::~QmitkFindSegmentationTaskDialog
~QmitkFindSegmentationTaskDialog() override
QmitkFindSegmentationTaskDialog::GetSelectedTask
std::optional< size_t > GetSelectedTask() const
QmitkFindSegmentationTaskDialog::SetTaskList
void SetTaskList(const mitk::SegmentationTaskList *taskList)
src
MITK
Modules
SegmentationUI
Qmitk
QmitkFindSegmentationTaskDialog.h
Generated on Tue Dec 24 2024 02:12:30 for Medical Imaging Interaction Toolkit by
1.8.17