Medical Imaging Interaction Toolkit  2025.12.02
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 QmitkSimpleBarrierManagerWidget_h
15 #define QmitkSimpleBarrierManagerWidget_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:
43 
44 public Q_SLOTS:
52 
53 protected Q_SLOTS:
54  void OnShowContextMenuIsoSet(const QPoint& pos);
55  void OnAddConstraint(bool checked);
56  void OnDelConstraint(bool checked);
57 
58 protected:
59 
63  void update();
64 
68 
69 
73 
75 
76  Ui::QmitkSimpleBarrierManagerWidget m_Controls;
77 
78 };
79 
80 #endif
#define MITKMODELFITUI_EXPORT
Widget that allows to edit the constraints of SimpleBarrierConstraintChecker.
void ConstraintChanged(mitk::SimpleBarrierConstraintChecker::Constraint constraint)
void OnShowContextMenuIsoSet(const QPoint &pos)
void update()
Updates the widget according to its current settings.
Ui::QmitkSimpleBarrierManagerWidget m_Controls
void OnAddConstraint(bool checked)
QmitkSimpleBarrierManagerWidget(QWidget *parent=nullptr)
QmitkSimpleBarrierParametersDelegate * m_ParametersDelegate
QmitkSimpleBarrierTypeDelegate * m_TypeDelegate
mitk::ModelTraitsInterface::ParameterNamesType m_ParameterNames
void OnDelConstraint(bool checked)
mitk::ModelTraitsInterface::ParamterUnitMapType m_ParameterUnits
mitk::SimpleBarrierConstraintChecker::Pointer m_Checker
void setChecker(mitk::SimpleBarrierConstraintChecker *pChecker, const mitk::ModelTraitsInterface::ParameterNamesType &names, const mitk::ModelTraitsInterface::ParamterUnitMapType &units)
An item delegate for rendering and editing the type of a simple barrier constraint....
std::map< ParameterNameType, std::string > ParamterUnitMapType
std::vector< ParameterNameType > ParameterNamesType
This class implements constraints as simple barrier functions.