Medical Imaging Interaction Toolkit  2022.04.99-2e1e005b
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__INCLUDED
13 #define QmitkIntensityProfileVisualizationWidget_H__INCLUDED
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_H__INCLUDED
#define MITKIMAGESTATISTICSUI_EXPORT
ColorTheme
enum of chart style (modifies background and line color).