Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkFreeIsoDoseLevelWidget.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 
14 #ifndef QmitkFreeIsoDoseLevelWidget_h
15 #define QmitkFreeIsoDoseLevelWidget_h
16 
17 #include "MitkRTUIExports.h"
18 
19 #include "ui_QmitkFreeIsoDoseLevelWidget.h"
20 #include <QWidget>
21 
22 #include "mitkIsoDoseLevel.h"
23 
28 class MITKRTUI_EXPORT QmitkFreeIsoDoseLevelWidget : public QWidget, private Ui::QmitkFreeIsoDoseLevelWidget
29 {
30  Q_OBJECT
31 
32 public:
33  explicit QmitkFreeIsoDoseLevelWidget(QWidget* parent=nullptr);
34 
35  mitk::DoseValueAbs getReferenceDose() const;
36  mitk::IsoDoseLevel* getIsoDoseLevel() const;
37 
38 signals:
39  void ValueChanged(mitk::IsoDoseLevel*, mitk::DoseValueRel oldValue);
40  void ColorChanged(mitk::IsoDoseLevel*);
41  void VisualizationStyleChanged(mitk::IsoDoseLevel*);
42 
43  public Q_SLOTS:
47  void setReferenceDose(double newReferenceDose);
48 
52  void setIsoDoseLevel(mitk::IsoDoseLevel* level);
53 
54  void OnRelValueChanged(double newValue);
55  void OnAbsValueChanged(double newValue);
56  void OnSliderChanged(int newValue);
57  void OnVisibleClicked(bool checked);
58  void OnColorChanged(QColor color);
59 
60 protected:
61 
65  void update();
66  void updateValue(mitk::DoseValueRel newDose);
67 
69  mitk::IsoDoseLevel::Pointer m_IsoDoseLevel;
71 
72 };
73 
74 #endif
mitk::DoseValueAbs
double DoseValueAbs
Represents absolute dose values (in Gy).
Definition: mitkDoseValueType.h:23
QmitkFreeIsoDoseLevelWidget
Widget that allows to show and edit the content of an mitk::IsoDoseLevel instance.
Definition: QmitkFreeIsoDoseLevelWidget.h:28
mitk::DoseValueRel
double DoseValueRel
Represents relative dose values (in %).
Definition: mitkDoseValueType.h:28
QmitkFreeIsoDoseLevelWidget::m_ReferenceDose
mitk::DoseValueAbs m_ReferenceDose
Definition: QmitkFreeIsoDoseLevelWidget.h:68
QmitkFreeIsoDoseLevelWidget::m_IsoDoseLevel
mitk::IsoDoseLevel::Pointer m_IsoDoseLevel
Definition: QmitkFreeIsoDoseLevelWidget.h:69
MitkRTUIExports.h
MITKRTUI_EXPORT
#define MITKRTUI_EXPORT
Definition: MitkRTUIExports.h:15
QmitkFreeIsoDoseLevelWidget::m_InternalUpdate
bool m_InternalUpdate
Definition: QmitkFreeIsoDoseLevelWidget.h:70
mitkIsoDoseLevel.h
mitk::IsoDoseLevel
Stores values needed for the representation/visualization of dose iso levels.
Definition: mitkIsoDoseLevel.h:36