Widget for viewing and editing the barrier constraints of a SimpleBarrierConstraintChecker.
More...
#include <QmitkSimpleBarrierManagerWidget.h>
|
| void | update () |
| | Updates the widget according to its current settings. More...
|
| |
Widget for viewing and editing the barrier constraints of a SimpleBarrierConstraintChecker.
This widget presents the constraints of a mitk::SimpleBarrierConstraintChecker in a table view. Users can add and remove constraints via buttons or a context menu. Each constraint row shows the affected parameters, constraint type (upper/lower), barrier value, and penalty zone width. Editing is handled through dedicated delegates for parameter selection and type selection.
- See also
- QmitkSimpleBarrierModel
-
QmitkSimpleBarrierTypeDelegate
-
QmitkSimpleBarrierParametersDelegate
-
mitk::SimpleBarrierConstraintChecker
Definition at line 48 of file QmitkSimpleBarrierManagerWidget.h.
◆ QmitkSimpleBarrierManagerWidget()
| QmitkSimpleBarrierManagerWidget::QmitkSimpleBarrierManagerWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QmitkSimpleBarrierManagerWidget()
| QmitkSimpleBarrierManagerWidget::~QmitkSimpleBarrierManagerWidget |
( |
| ) |
|
|
override |
Destructor. Deletes the internal model and delegates.
◆ ConstraintChanged
Emitted when a constraint is changed.
- Parameters
-
| [in] | constraint | The modified constraint. |
◆ OnAddConstraint
| void QmitkSimpleBarrierManagerWidget::OnAddConstraint |
( |
bool |
checked | ) |
|
|
protectedslot |
Adds a new default constraint to the checker.
- Parameters
-
| [in] | checked | The checked state of the triggering action (unused). |
◆ OnDelConstraint
| void QmitkSimpleBarrierManagerWidget::OnDelConstraint |
( |
bool |
checked | ) |
|
|
protectedslot |
Deletes the currently selected constraint from the checker.
If no index is selected, attempts to delete the constraint at position (1,1).
- Parameters
-
| [in] | checked | The checked state of the triggering action (unused). |
◆ OnShowContextMenuIsoSet
| void QmitkSimpleBarrierManagerWidget::OnShowContextMenuIsoSet |
( |
const QPoint & |
pos | ) |
|
|
protectedslot |
Shows a context menu with options to add or delete constraints.
- Parameters
-
| [in] | pos | The position in widget coordinates where the menu was requested. |
◆ setChecker
Sets the constraint checker and parameter metadata to manage.
Configures the internal model with the provided checker, parameter names, and units. The modified flag is reset.
- Parameters
-
| [in] | pChecker | Pointer to the SimpleBarrierConstraintChecker to manage. If nullptr, a new empty checker is created internally. |
| [in] | names | List of all parameter names. The index corresponds to the parameter index in the fitting model. |
| [in] | units | Map of parameter names to their unit strings. |
◆ update()
| void QmitkSimpleBarrierManagerWidget::update |
( |
| ) |
|
|
protected |
Updates the widget according to its current settings.
◆ m_Checker
◆ m_Controls
| std::unique_ptr<Ui::QmitkSimpleBarrierManagerWidget> QmitkSimpleBarrierManagerWidget::m_Controls |
|
protected |
◆ m_InternalModel
◆ m_InternalUpdate
| bool QmitkSimpleBarrierManagerWidget::m_InternalUpdate |
|
protected |
◆ m_ParameterNames
◆ m_ParametersDelegate
◆ m_ParameterUnits
◆ m_TypeDelegate
The documentation for this class was generated from the following file: