Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 
19 #include <mitkWeakPointer.h>
20 #include <mitkDataNode.h>
21 
23 
29 {
30 public:
33 
35 
36  explicit QmitkImageStatisticsTreeItem(const ImageStatisticsObject& statisticsData,
37  const StatisticNameVector& statisticNames, QVariant itemText, bool isWIP,
38  QmitkImageStatisticsTreeItem* parentItem = nullptr, const mitk::DataNode* imageNode = nullptr,
39  const mitk::DataNode* maskNode = nullptr, const mitk::Label* label = nullptr);
40 
41  explicit QmitkImageStatisticsTreeItem(const StatisticNameVector& statisticNames,
42  QVariant itemText, bool isWIP, bool isNA, QmitkImageStatisticsTreeItem *parentItem = nullptr, const mitk::DataNode* imageNode = nullptr,
43  const mitk::DataNode* maskNode = nullptr, const mitk::Label* label = nullptr);
44 
46 
48 
50  int childCount() const;
51  int columnCount() const;
52  QVariant data(int column) const;
53  int row() const;
55 
58  bool isWIP() const;
59 
61 
62 private:
63  ImageStatisticsObject m_statistics;
64  StatisticNameVector m_statisticNames;
65  QVariant m_ItemText;
66  QmitkImageStatisticsTreeItem *m_parentItem = nullptr;
67  QList<QmitkImageStatisticsTreeItem *> m_childItems;
71 
72  bool m_IsWIP;
73  bool m_NA;
74 };
75 
76 #endif
QmitkImageStatisticsTreeItem::columnCount
int columnCount() const
QmitkImageStatisticsTreeItem::row
int row() const
QmitkImageStatisticsTreeItem::parentItem
QmitkImageStatisticsTreeItem * parentItem()
itk::SmartPointer< const Self >
QmitkImageStatisticsTreeItem::child
QmitkImageStatisticsTreeItem * child(int row)
QmitkImageStatisticsTreeItem
Definition: QmitkImageStatisticsTreeItem.h:28
mitk::Label
A data structure describing a label.
Definition: mitkLabel.h:29
QmitkImageStatisticsTreeItem::childCount
int childCount() const
QmitkImageStatisticsTreeItem::GetLabelInstance
mitk::Label::ConstPointer GetLabelInstance() const
QmitkImageStatisticsTreeItem::~QmitkImageStatisticsTreeItem
~QmitkImageStatisticsTreeItem()
mitk::ImageStatisticsContainer::ImageStatisticsObject
Container class for storing the computed image statistics.
Definition: mitkImageStatisticsContainer.h:57
QmitkImageStatisticsTreeItem::QmitkImageStatisticsTreeItem
QmitkImageStatisticsTreeItem()
mitkDataNode.h
mitkWeakPointer.h
QmitkImageStatisticsTreeItem::StatisticNameVector
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector StatisticNameVector
Definition: QmitkImageStatisticsTreeItem.h:32
QmitkImageStatisticsTreeItem::data
QVariant data(int column) const
QmitkImageStatisticsTreeItem::appendChild
void appendChild(QmitkImageStatisticsTreeItem *child)
mitk::WeakPointer< const mitk::DataNode >
QmitkImageStatisticsTreeItem::isWIP
bool isWIP() const
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector
std::vector< std::string > StatisticNameVector
Definition: mitkImageStatisticsContainer.h:73
mitkImageStatisticsContainer.h