Medical Imaging Interaction Toolkit  2023.04.00
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 #include <ui_QmitkImageStatisticsWidget.h>
17 
18 #include <mitkDataStorage.h>
19 #include <mitkDataNode.h>
20 
21 class QSortFilterProxyModel;
23 
25 {
26  Q_OBJECT
27 
28 public:
29  QmitkImageStatisticsWidget(QWidget *parent = nullptr);
30 
35  void SetDataStorage(mitk::DataStorage *newDataStorage);
36 
37  void SetImageNodes(const std::vector<mitk::DataNode::ConstPointer> &nodes);
38  void SetMaskNodes(const std::vector<mitk::DataNode::ConstPointer> &nodes);
39  void Reset();
40 
42  void SetIgnoreZeroValueVoxel(bool _arg);
44  bool GetIgnoreZeroValueVoxel() const;
45 
47  void SetHistogramNBins(unsigned int nbins);
49  unsigned int GetHistogramNBins() const;
50 
51 signals:
52  void IgnoreZeroValuedVoxelStateChanged(int status);
53 
54 private:
55  void CreateConnections();
56  void OnDataAvailable();
57 
59  void OnClipboardButtonClicked();
60 
61  Ui::QmitkImageStatisticsControls m_Controls;
62  QmitkImageStatisticsTreeModel *m_imageStatisticsModel;
63  QSortFilterProxyModel *m_ProxyModel;
64 };
65 #endif
QmitkImageStatisticsTreeModel
Definition: QmitkImageStatisticsTreeModel.h:34
mitkDataStorage.h
MitkImageStatisticsUIExports.h
QmitkImageStatisticsWidget
Definition: QmitkImageStatisticsWidget.h:24
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