Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkIntensityProfileVisualizationWidget.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 #ifndef QmitkIntensityProfileVisualizationWidget_h
13 #define QmitkIntensityProfileVisualizationWidget_h
14 
15 //Qt
16 #include <QmitkChartWidget.h>
17 
19 
20 //mitk
21 #include <mitkIntensityProfile.h>
22 
23 namespace Ui
24 {
25  class QmitkIntensityProfileControls;
26 };
27 
33 {
34  Q_OBJECT
35 
36 public:
37  QmitkIntensityProfileVisualizationWidget(QWidget* parent = nullptr);
38 
39  void SetIntensityProfile(mitk::IntensityProfile::ConstPointer intensityProfile, const std::string& dataLabel);
41  void Reset();
42 
43  void SetTheme(QmitkChartWidget::ColorTheme style);
44 
45 private:
46 
47  void CreateConnections();
48 
49  void SetGUIElementsEnabled(bool enabled);
50 
51  std::vector<double> ConvertIntensityProfileToVector(mitk::IntensityProfile::ConstPointer intensityProfile) const;
52 
54  void OnClipboardButtonClicked();
56  void OnShowSubchartCheckBoxChanged();
57 
58  void OnPageSuccessfullyLoaded();
59 
60 private:
61 
62  Ui::QmitkIntensityProfileControls *m_Controls;
64 
65  std::vector<double> m_IntensityProfileList;
66 };
67 
68 #endif
QmitkIntensityProfileVisualizationWidget
Widget for displaying intensity profiles.
Definition: QmitkIntensityProfileVisualizationWidget.h:32
MitkImageStatisticsUIExports.h
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkChartWidget.h
MITKIMAGESTATISTICSUI_EXPORT
#define MITKIMAGESTATISTICSUI_EXPORT
Definition: MitkImageStatisticsUIExports.h:15
mitkIntensityProfile.h
QmitkChartWidget::ColorTheme
ColorTheme
enum of chart style (modifies background and line color).
Definition: QmitkChartWidget.h:60
QmitkChartWidget::ColorTheme::darkstyle
@ darkstyle