Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkSimpleBarrierModel.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 QmitkSimpleBarrierModel_h
14
#define QmitkSimpleBarrierModel_h
15
16
#include <QAbstractTableModel>
17
18
#include "
mitkSimpleBarrierConstraintChecker.h
"
19
#include "
mitkModelTraitsInterface.h
"
20
21
#include "
MitkModelFitUIExports.h
"
22
23
30
class
MITKMODELFITUI_EXPORT
QmitkSimpleBarrierModel
:
public
QAbstractTableModel
31
{
32
Q_OBJECT
33
34
public
:
35
QmitkSimpleBarrierModel
(QObject* parent =
nullptr
);
36
~QmitkSimpleBarrierModel
()
override
{};
37
43
void
setChecker(
mitk::SimpleBarrierConstraintChecker
* pChecker,
44
const
mitk::ModelTraitsInterface::ParameterNamesType
& names,
45
const
mitk::ModelTraitsInterface::ParamterUnitMapType
units);
46
47
Qt::ItemFlags flags(
const
QModelIndex& index)
const override
;
48
QVariant data(
const
QModelIndex& index,
int
role)
const override
;
49
QVariant headerData(
int
section, Qt::Orientation orientation,
int
role)
const override
;
50
int
rowCount(
const
QModelIndex& parent = QModelIndex())
const override
;
51
int
columnCount(
const
QModelIndex& parent = QModelIndex())
const override
;
52
bool
setData(
const
QModelIndex& index,
const
QVariant& value,
int
role = Qt::EditRole)
override
;
53
54
void
addConstraint();
55
void
deleteConstraint(
const
QModelIndex& index);
56
58
bool
isModified();
59
60
private
:
61
mitk::SimpleBarrierConstraintChecker::Pointer
m_Checker;
62
mitk::ModelTraitsInterface::ParameterNamesType
m_ParameterNames;
63
mitk::ModelTraitsInterface::ParamterUnitMapType
m_ParameterUnits;
64
66
bool
m_modified;
67
68
};
69
70
#endif
mitk::ModelTraitsInterface::ParamterUnitMapType
std::map< ParameterNameType, std::string > ParamterUnitMapType
Definition:
mitkModelTraitsInterface.h:40
mitkModelTraitsInterface.h
mitkSimpleBarrierConstraintChecker.h
QmitkSimpleBarrierModel::~QmitkSimpleBarrierModel
~QmitkSimpleBarrierModel() override
Definition:
QmitkSimpleBarrierModel.h:36
mitk::SimpleBarrierConstraintChecker
This class implements constraints as simple barrier functions.
Definition:
mitkSimpleBarrierConstraintChecker.h:42
MITKMODELFITUI_EXPORT
#define MITKMODELFITUI_EXPORT
Definition:
MitkModelFitUIExports.h:15
itk::SmartPointer< Self >
mitk::ModelTraitsInterface::ParameterNamesType
std::vector< ParameterNameType > ParameterNamesType
Definition:
mitkModelTraitsInterface.h:34
QmitkSimpleBarrierModel
Definition:
QmitkSimpleBarrierModel.h:30
MitkModelFitUIExports.h
src
MITK
Modules
ModelFitUI
Qmitk
QmitkSimpleBarrierModel.h
Generated on Tue Dec 24 2024 02:12:30 for Medical Imaging Interaction Toolkit by
1.8.17