Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkSimpleBarrierManagerWidget.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 
14 #ifndef QMITK_SIMPLE_BARRIER_MANAGER_WIDGET_H
15 #define QMITK_SIMPLE_BARRIER_MANAGER_WIDGET_H
16 
17 #include "MitkModelFitUIExports.h"
18 
19 #include "ui_QmitkSimpleBarrierManagerWidget.h"
20 #include <QWidget>
21 
23 
24 /*forward declarations*/
28 
34 {
35  Q_OBJECT
36 
37 public:
38  QmitkSimpleBarrierManagerWidget(QWidget* parent = nullptr);
40 
41 signals:
42  void ConstraintChanged(mitk::SimpleBarrierConstraintChecker::Constraint constraint);
43 
44 public Q_SLOTS:
49  void setChecker(mitk::SimpleBarrierConstraintChecker* pChecker,
51 
52 protected Q_SLOTS:
53  void OnShowContextMenuIsoSet(const QPoint& pos);
54  void OnAddConstraint(bool checked);
55  void OnDelConstraint(bool checked);
56 
57 protected:
58 
62  void update();
63 
66 
70 
72 
73  Ui::QmitkSimpleBarrierManagerWidget m_Controls;
74 
75 };
76 
77 #endif // QmitkSimpleBarrierManagerWidget_H
This class implements constraints as simple barrier functions.
QmitkSimpleBarrierTypeDelegate * m_TypeDelegate
Widget that allows to edit the constraints of SimpleBarrierConstraintChecker.
std::vector< ParameterNameType > ParameterNamesType
mitk::SimpleBarrierConstraintChecker::Pointer m_Checker
mitk::ModelTraitsInterface::ParameterNamesType m_ParameterNames
QmitkSimpleBarrierParametersDelegate * m_ParametersDelegate
An item delegate for rendering and editing the type of a simple barrier constraint. It assumes that the type is encoded as int. 0: lower border, 1: upper border.
#define MITKMODELFITUI_EXPORT
Ui::QmitkSimpleBarrierManagerWidget m_Controls