Medical Imaging Interaction Toolkit  2018.4.99-9a29ffc6
Medical Imaging Interaction Toolkit
QmitkImageStatisticsTreeItem.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 
13 #ifndef QmitkImageStatisticsTreeItem_h
14 #define QmitkImageStatisticsTreeItem_h
15 
16 #include <QList>
17 #include <QVariant>
18 
20 
26 {
27 public:
32  StatisticNameVector statisticNames, QVariant label, bool isWIP, QmitkImageStatisticsTreeItem *parentItem = nullptr);
33  explicit QmitkImageStatisticsTreeItem(StatisticNameVector statisticNames,
34  QVariant label, bool isWIP, QmitkImageStatisticsTreeItem *parentItem = nullptr);
36 
38 
40  int childCount() const;
41  int columnCount() const;
42  QVariant data(int column) const;
43  int row() const;
45 
48  bool isWIP() const;
49 
50 private:
51  ImageStatisticsObject m_statistics;
52  StatisticNameVector m_statisticNames;
53  QVariant m_label;
54  QmitkImageStatisticsTreeItem *m_parentItem = nullptr;
55  QList<QmitkImageStatisticsTreeItem *> m_childItems;
56  bool m_IsWIP;
57 };
58 
59 #endif // QmitkImageStatisticsTreeItem_h
QmitkImageStatisticsTreeItem * parentItem()
QmitkImageStatisticsTreeItem * child(int row)
void appendChild(QmitkImageStatisticsTreeItem *child)
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector StatisticNameVector
Container class for storing the computed image statistics.