Medical Imaging Interaction Toolkit  2026.06.00
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 <QWidget>
20 
22 
23 /*forward declarations*/
27 
28 namespace Ui
29 {
31 }
32 
49 {
50  Q_OBJECT
51 
52 public:
57  QmitkSimpleBarrierManagerWidget(QWidget* parent = nullptr);
58 
61 
62 signals:
68 
69 public Q_SLOTS:
85 
86 protected Q_SLOTS:
91  void OnShowContextMenuIsoSet(const QPoint& pos);
92 
97  void OnAddConstraint(bool checked);
98 
106  void OnDelConstraint(bool checked);
107 
108 protected:
109 
113  void update();
114 
118 
119 
123 
125 
126  std::unique_ptr<Ui::QmitkSimpleBarrierManagerWidget> m_Controls;
127 
128 };
129 
130 #endif
#define MITKMODELFITUI_EXPORT
Widget for viewing and editing the barrier constraints of a SimpleBarrierConstraintChecker.
void ConstraintChanged(mitk::SimpleBarrierConstraintChecker::Constraint constraint)
Emitted when a constraint is changed.
void OnShowContextMenuIsoSet(const QPoint &pos)
Shows a context menu with options to add or delete constraints.
void update()
Updates the widget according to its current settings.
~QmitkSimpleBarrierManagerWidget() override
Destructor. Deletes the internal model and delegates.
void OnAddConstraint(bool checked)
Adds a new default constraint to the checker.
QmitkSimpleBarrierManagerWidget(QWidget *parent=nullptr)
Constructs a QmitkSimpleBarrierManagerWidget.
QmitkSimpleBarrierParametersDelegate * m_ParametersDelegate
QmitkSimpleBarrierTypeDelegate * m_TypeDelegate
std::unique_ptr< Ui::QmitkSimpleBarrierManagerWidget > m_Controls
mitk::ModelTraitsInterface::ParameterNamesType m_ParameterNames
void OnDelConstraint(bool checked)
Deletes the currently selected constraint from the checker.
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)
Sets the constraint checker and parameter metadata to manage.
Qt table model for viewing and editing the constraints of a SimpleBarrierConstraintChecker.
Item delegate for rendering and editing the type of a simple barrier constraint.
std::map< ParameterNameType, std::string > ParamterUnitMapType
Map type associating parameter names to their unit strings.
std::vector< ParameterNameType > ParameterNamesType
Type for a list of parameter names.
This class implements constraints as simple barrier functions.