Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef QMITK_FREE_ISO_DOSE_LEVEL_WIDGET_H
19 #define QMITK_FREE_ISO_DOSE_LEVEL_WIDGET_H
20 
21 #include "MitkRTUIExports.h"
22 
23 #include "ui_QmitkFreeIsoDoseLevelWidget.h"
24 #include <QWidget>
25 
26 #include "mitkIsoDoseLevel.h"
27 
32 class MITKRTUI_EXPORT QmitkFreeIsoDoseLevelWidget : public QWidget, private Ui::QmitkFreeIsoDoseLevelWidget
33 {
34  Q_OBJECT
35 
36 public:
37  QmitkFreeIsoDoseLevelWidget(QWidget* parent=0);
38 
39  mitk::DoseValueAbs getReferenceDose() const;
40  mitk::IsoDoseLevel* getIsoDoseLevel() const;
41 
42 signals:
43  void ValueChanged(mitk::IsoDoseLevel*, mitk::DoseValueRel oldValue);
44  void ColorChanged(mitk::IsoDoseLevel*);
45  void VisualizationStyleChanged(mitk::IsoDoseLevel*);
46 
47  public Q_SLOTS:
51  void setReferenceDose(double newReferenceDose);
52 
56  void setIsoDoseLevel(mitk::IsoDoseLevel* level);
57 
58  void OnRelValueChanged(double newValue);
59  void OnAbsValueChanged(double newValue);
60  void OnSliderChanged(int newValue);
61  void OnVisibleClicked(bool checked);
62  void OnColorChanged(QColor color);
63 
64 protected:
65 
69  void update();
70  void updateValue(mitk::DoseValueRel newDose);
71 
75 
76 };
77 
78 #endif // QmitkFreeIsoDoseLevelWidget_H
itk::SmartPointer< Self > Pointer
Widget that allows to show and edit the content of an mitk::IsoDoseLevel instance.
Stores values needed for the representation/visualization of dose iso levels.
#define MITKRTUI_EXPORT
double DoseValueAbs
Represents absolute dose values (in Gy).
double DoseValueRel
Represents relative dose values (in %).
mitk::IsoDoseLevel::Pointer m_IsoDoseLevel