Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkInitialValuesDelegate.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 QmitkInitialValuesDelegate_h
14
#define QmitkInitialValuesDelegate_h
15
16
18
#include <
mitkDataStorage.h
>
19
#include <
mitkNodePredicateBase.h
>
20
21
#include <QStyledItemDelegate>
22
23
#include "
MitkModelFitUIExports.h
"
24
25
32
class
MITKMODELFITUI_EXPORT
QmitkInitialValuesDelegate
:
public
QStyledItemDelegate
33
{
34
Q_OBJECT
35
36
public
:
37
38
QmitkInitialValuesDelegate
(QObject* parent =
nullptr
);
39
40
QWidget* createEditor(QWidget* parent,
const
QStyleOptionViewItem& option
41
,
const
QModelIndex& index)
const override
;
42
43
void
setEditorData(QWidget* editor,
const
QModelIndex& index)
const override
;
44
45
void
setModelData(QWidget* editor, QAbstractItemModel* model,
const
QModelIndex& index)
const override
;
46
47
void
setDataStorage(
mitk::DataStorage
* storage);
48
void
setNodePredicate(
mitk::NodePredicateBase
* predicate);
49
50
protected
:
51
int
valueType(
const
QModelIndex& index)
const
;
52
54
mitk::DataStorage::Pointer
m_Storage
;
56
mitk::NodePredicateBase::Pointer
m_Predicate
;
57
58
};
59
60
#endif
QmitkInitialValuesDelegate::m_Predicate
mitk::NodePredicateBase::Pointer m_Predicate
Definition:
QmitkInitialValuesDelegate.h:56
mitkDataStorage.h
MITKMODELFITUI_EXPORT
#define MITKMODELFITUI_EXPORT
Definition:
MitkModelFitUIExports.h:15
itk::SmartPointer< Self >
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition:
mitkNodePredicateBase.h:35
QmitkInitialValuesDelegate
Toolkit includes.
Definition:
QmitkInitialValuesDelegate.h:32
mitkNodePredicateBase.h
QmitkInitialValuesDelegate::m_Storage
mitk::DataStorage::Pointer m_Storage
Definition:
QmitkInitialValuesDelegate.h:54
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition:
mitkDataStorage.h:43
MitkModelFitUIExports.h
src
MITK
Modules
ModelFitUI
Qmitk
QmitkInitialValuesDelegate.h
Generated on Sat Nov 23 2024 02:13:16 for Medical Imaging Interaction Toolkit by
1.8.17