Medical Imaging Interaction Toolkit  2026.06.00
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 #include <memory>
23 
24 namespace Ui
25 {
26  class QmitkIntensityProfileControls;
27 };
28 
43 {
44  Q_OBJECT
45 
46 public:
51  QmitkIntensityProfileVisualizationWidget(QWidget* parent = nullptr);
52 
55 
65  void SetIntensityProfile(mitk::IntensityProfile::ConstPointer intensityProfile, const std::string& dataLabel);
66 
70  void Reset();
71 
80 
81 private:
82 
83  void CreateConnections();
84 
85  void SetGUIElementsEnabled(bool enabled);
86 
87  std::vector<double> ConvertIntensityProfileToVector(mitk::IntensityProfile::ConstPointer intensityProfile) const;
88 
90  void OnClipboardButtonClicked();
92  void OnShowSubchartCheckBoxChanged();
93 
94  void OnPageSuccessfullyLoaded();
95 
96 private:
97 
98  std::unique_ptr<Ui::QmitkIntensityProfileControls> m_Controls;
100 
101  std::vector<double> m_IntensityProfileList;
102 };
103 
104 #endif
#define MITKIMAGESTATISTICSUI_EXPORT
ColorTheme
Enumeration of chart color themes.
@ darkstyle
Dark gray background, white foreground.
Widget for displaying intensity profile line charts along a path.
QmitkIntensityProfileVisualizationWidget(QWidget *parent=nullptr)
Constructs the intensity profile visualization widget.
void SetIntensityProfile(mitk::IntensityProfile::ConstPointer intensityProfile, const std::string &dataLabel)
Displays an intensity profile as a line chart.
void Reset()
Clears the chart and disables all GUI elements.
~QmitkIntensityProfileVisualizationWidget() override
Destructor.
void SetTheme(QmitkChartWidget::ColorTheme style)
Sets the color theme for the chart widget.