Medical Imaging Interaction Toolkit  2025.12.02
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 
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
#define MITKIMAGESTATISTICSUI_EXPORT
ColorTheme
enum of chart style (modifies background and line color).
QmitkIntensityProfileVisualizationWidget(QWidget *parent=nullptr)
void SetIntensityProfile(mitk::IntensityProfile::ConstPointer intensityProfile, const std::string &dataLabel)
void Reset()
Clears the intensity profile and disables all GUI elements.
void SetTheme(QmitkChartWidget::ColorTheme style)