Medical Imaging Interaction Toolkit
2024.06.00
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
22
#include "
mitkImageStatisticsContainer.h
"
23
28
class
QmitkImageStatisticsTreeItem
29
{
30
public
:
31
using
ImageStatisticsObject
=
mitk::ImageStatisticsContainer::ImageStatisticsObject
;
32
using
StatisticNameVector
=
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector
;
33
34
QmitkImageStatisticsTreeItem
();
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
45
~QmitkImageStatisticsTreeItem
();
46
47
void
appendChild
(
QmitkImageStatisticsTreeItem
*
child
);
48
49
QmitkImageStatisticsTreeItem
*
child
(
int
row
);
50
int
childCount
()
const
;
51
int
columnCount
()
const
;
52
QVariant
data
(
int
column)
const
;
53
int
row
()
const
;
54
QmitkImageStatisticsTreeItem
*
parentItem
();
55
58
bool
isWIP
()
const
;
59
60
mitk::Label::ConstPointer
GetLabelInstance
()
const
;
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;
68
mitk::WeakPointer<const mitk::DataNode>
m_ImageNode;
69
mitk::WeakPointer<const mitk::DataNode>
m_MaskNode;
70
mitk::WeakPointer<const mitk::Label>
m_Label;
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
src
MITK
Modules
ImageStatisticsUI
Qmitk
QmitkImageStatisticsTreeItem.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17