Medical Imaging Interaction Toolkit
2023.04.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 "
mitkImageStatisticsContainer.h
"
20
25
class
QmitkImageStatisticsTreeItem
26
{
27
public
:
28
using
ImageStatisticsObject
=
mitk::ImageStatisticsContainer::ImageStatisticsObject
;
29
using
StatisticNameVector
=
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector
;
30
QmitkImageStatisticsTreeItem
();
31
explicit
QmitkImageStatisticsTreeItem
(
ImageStatisticsObject
statisticsData,
32
StatisticNameVector
statisticNames, QVariant label,
bool
isWIP
,
QmitkImageStatisticsTreeItem
*
parentItem
=
nullptr
);
33
explicit
QmitkImageStatisticsTreeItem
(
StatisticNameVector
statisticNames,
34
QVariant label,
bool
isWIP
,
QmitkImageStatisticsTreeItem
*
parentItem
=
nullptr
);
35
~QmitkImageStatisticsTreeItem
();
36
37
void
appendChild
(
QmitkImageStatisticsTreeItem
*
child
);
38
39
QmitkImageStatisticsTreeItem
*
child
(
int
row
);
40
int
childCount
()
const
;
41
int
columnCount
()
const
;
42
QVariant
data
(
int
column)
const
;
43
int
row
()
const
;
44
QmitkImageStatisticsTreeItem
*
parentItem
();
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::columnCount
int columnCount() const
QmitkImageStatisticsTreeItem::row
int row() const
QmitkImageStatisticsTreeItem::parentItem
QmitkImageStatisticsTreeItem * parentItem()
QmitkImageStatisticsTreeItem::child
QmitkImageStatisticsTreeItem * child(int row)
QmitkImageStatisticsTreeItem
Definition:
QmitkImageStatisticsTreeItem.h:25
QmitkImageStatisticsTreeItem::childCount
int childCount() const
QmitkImageStatisticsTreeItem::~QmitkImageStatisticsTreeItem
~QmitkImageStatisticsTreeItem()
mitk::ImageStatisticsContainer::ImageStatisticsObject
Container class for storing the computed image statistics.
Definition:
mitkImageStatisticsContainer.h:62
QmitkImageStatisticsTreeItem::QmitkImageStatisticsTreeItem
QmitkImageStatisticsTreeItem()
QmitkImageStatisticsTreeItem::StatisticNameVector
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector StatisticNameVector
Definition:
QmitkImageStatisticsTreeItem.h:29
QmitkImageStatisticsTreeItem::data
QVariant data(int column) const
QmitkImageStatisticsTreeItem::appendChild
void appendChild(QmitkImageStatisticsTreeItem *child)
QmitkImageStatisticsTreeItem::isWIP
bool isWIP() const
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector
std::vector< std::string > StatisticNameVector
Definition:
mitkImageStatisticsContainer.h:71
mitkImageStatisticsContainer.h
src
MITK
Modules
ImageStatisticsUI
Qmitk
QmitkImageStatisticsTreeItem.h
Generated on Wed May 17 2023 16:26:14 for Medical Imaging Interaction Toolkit by
1.8.17