Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkImageStatisticsWidget.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 QmitkImageStatisticsWidget_h
13 #define QmitkImageStatisticsWidget_h
14 
16 
17 #include <mitkDataStorage.h>
18 #include <mitkDataNode.h>
19 
20 #include <QWidget>
21 
22 class QSortFilterProxyModel;
24 
25 namespace Ui
26 {
27  class QmitkImageStatisticsControls;
28 }
29 
31 {
32  Q_OBJECT
33 
34 public:
35  QmitkImageStatisticsWidget(QWidget *parent = nullptr);
36 
41  void SetDataStorage(mitk::DataStorage *newDataStorage);
42 
43  void SetImageNodes(const std::vector<mitk::DataNode::ConstPointer> &nodes);
44  void SetMaskNodes(const std::vector<mitk::DataNode::ConstPointer> &nodes);
45  void Reset();
46 
48  void SetIgnoreZeroValueVoxel(bool _arg);
50  bool GetIgnoreZeroValueVoxel() const;
51 
53  void SetHistogramNBins(unsigned int nbins);
55  unsigned int GetHistogramNBins() const;
56 
57 signals:
58  void IgnoreZeroValuedVoxelStateChanged(int status);
59 
60 private:
61  void CreateConnections();
62  void OnDataAvailable();
63 
65  void OnClipboardButtonClicked();
66 
67  Ui::QmitkImageStatisticsControls *m_Controls;
68  QmitkImageStatisticsTreeModel *m_imageStatisticsModel;
69  QSortFilterProxyModel *m_ProxyModel;
70 };
71 #endif
QmitkImageStatisticsTreeModel
Definition: QmitkImageStatisticsTreeModel.h:34
mitkDataStorage.h
MitkImageStatisticsUIExports.h
QmitkImageStatisticsWidget
Definition: QmitkImageStatisticsWidget.h:30
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
MITKIMAGESTATISTICSUI_EXPORT
#define MITKIMAGESTATISTICSUI_EXPORT
Definition: MitkImageStatisticsUIExports.h:15
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitkDataNode.h