Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
QmitkNewSegmentationDialog.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 QmitkNewSegmentationDialog_h_Included
14 #define QmitkNewSegmentationDialog_h_Included
15 
16 #include "mitkColorProperty.h"
18 
19 #include <qdialog.h>
20 
21 #include <QCompleter>
22 
23 class QLabel;
24 class QLineEdit;
25 class Q3ListBox;
26 class QPushButton;
27 
28 #include <mitkCommon.h>
29 
39 {
40  Q_OBJECT
41 
42 public:
43  QmitkNewSegmentationDialog(QWidget *parent = nullptr);
44 
45  ~QmitkNewSegmentationDialog() override;
46 
47  const QString GetSegmentationName();
48  mitk::Color GetColor();
49  const char *GetOrganType();
50 
51  void SetSegmentationName(const QString &segmentationName);
52  void SetColor(const mitk::Color &color);
53  void SetSuggestionList(QStringList organColorList);
54 
55 signals:
56 
57 public slots:
58 
59  void setPrompt(const QString &prompt);
60 
61 protected slots:
62 
63  void onAcceptClicked();
64  void onNewOrganNameChanged(const QString &);
65  void onColorBtnClicked();
66  void onColorChange(const QString &completedWord);
67 
68 protected:
69 
70  QLabel *lblPrompt;
71  Q3ListBox *lstOrgans;
72  QLineEdit *lineEditName;
73 
74  QPushButton *btnColor;
75  QPushButton *btnOk;
76 
77  QLineEdit *edtNewOrgan;
78 
79  QString selectedOrgan;
80 
82 
83  QColor m_Color;
84 
85  QCompleter *completer;
86 
88 
89  QStringList organList;
90  QList<QColor> colorList;
91 };
92 
93 #endif
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Dialog for QmitkInteractiveSegmentation.
#define MITKSEGMENTATIONUI_EXPORT