Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 <QWidget>
17 
19 #include <ui_QmitkIntensityProfileVisualizationWidget.h>
20 
21 //mitk
22 #include <mitkIntensityProfile.h>
23 
29 {
30  Q_OBJECT
31 
32 public:
33  QmitkIntensityProfileVisualizationWidget(QWidget* parent = nullptr);
34 
35  void SetIntensityProfile(mitk::IntensityProfile::ConstPointer intensityProfile, const std::string& dataLabel);
37  void Reset();
38 
39  void SetTheme(QmitkChartWidget::ColorTheme style);
40 
41 private:
42 
43  void CreateConnections();
44 
45  void SetGUIElementsEnabled(bool enabled);
46 
47  std::vector<double> ConvertIntensityProfileToVector(mitk::IntensityProfile::ConstPointer intensityProfile) const;
48 
50  void OnClipboardButtonClicked();
52  void OnShowSubchartCheckBoxChanged();
53 
54  void OnPageSuccessfullyLoaded();
55 
56 private:
57 
58  Ui::QmitkIntensityProfileControls m_Controls;
60 
61  std::vector<double> m_IntensityProfileList;
62 };
63 
64 #endif
QmitkIntensityProfileVisualizationWidget
Widget for displaying intensity profiles.
Definition: QmitkIntensityProfileVisualizationWidget.h:28
MitkImageStatisticsUIExports.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