|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Widget that allows editing the initial parameter values of a model fit. More...
#include <QmitkInitialValuesManagerWidget.h>


Public Slots | |
| void | setInitialValues (const mitk::ModelTraitsInterface::ParameterNamesType &names, const mitk::ModelTraitsInterface::ParametersType values, const mitk::ModelTraitsInterface::ParamterUnitMapType units) |
| Sets the parameter names, default values, and units for the model. More... | |
| void | setInitialValues (const mitk::ModelTraitsInterface::ParameterNamesType &names) |
| Sets the parameter names with default initial values of zero. More... | |
| void | setDataStorage (mitk::DataStorage *storage) |
| Sets the data storage used for image-based initial value selection. More... | |
| void | setReferenceImageGeometry (mitk::BaseGeometry *refgeo) |
| Sets the reference image geometry used to filter selectable images. More... | |
Signals | |
| void | initialValuesChanged () |
| Emitted whenever the initial values are modified by the user or reset programmatically. More... | |
Public Member Functions | |
| QmitkInitialValuesManagerWidget (QWidget *parent=nullptr) | |
| Constructs a QmitkInitialValuesManagerWidget. More... | |
| ~QmitkInitialValuesManagerWidget () override | |
| Destructor. More... | |
| mitk::ModelTraitsInterface::ParametersType | getInitialValues () const |
| Returns the current scalar initial values of the model parameters. More... | |
| mitk::InitialParameterizationDelegateBase::Pointer | getInitialParametrizationDelegate () const |
| Creates and returns a parameterization delegate representing the full initial configuration. More... | |
| bool | hasValidInitialValues () const |
| Checks whether all initial values are valid. More... | |
Protected Slots | |
| void | OnModelReset () |
Protected Attributes | |
| std::unique_ptr< Ui::QmitkInitialValuesManagerWidget > | m_Controls |
| QmitkInitialValuesModel * | m_InternalModel |
| QmitkInitialValuesTypeDelegate * | m_TypeDelegate |
| QmitkInitialValuesDelegate * | m_ValuesDelegate |
| mitk::NodePredicateBase::Pointer | m_NoHiddenOrHelperPredicate |
Widget that allows editing the initial parameter values of a model fit.
This widget provides a table view for configuring the initial values used in model fitting. Each parameter can be initialized either with a scalar value or with an image from the data storage. The widget manages the appropriate delegates for type selection and value editing.
When a reference image geometry is provided, the image selection is filtered to only show 3D images with matching geometry.
Definition at line 58 of file QmitkInitialValuesManagerWidget.h.
| QmitkInitialValuesManagerWidget::QmitkInitialValuesManagerWidget | ( | QWidget * | parent = nullptr | ) |
Constructs a QmitkInitialValuesManagerWidget.
| [in] | parent | Optional parent widget. |
|
override |
Destructor.
| mitk::InitialParameterizationDelegateBase::Pointer QmitkInitialValuesManagerWidget::getInitialParametrizationDelegate | ( | ) | const |
Creates and returns a parameterization delegate representing the full initial configuration.
The returned delegate encapsulates both scalar values and image-based parameterizations.
| mitk::ModelTraitsInterface::ParametersType QmitkInitialValuesManagerWidget::getInitialValues | ( | ) | const |
Returns the current scalar initial values of the model parameters.
| bool QmitkInitialValuesManagerWidget::hasValidInitialValues | ( | ) | const |
Checks whether all initial values are valid.
Returns false if any image-based parameter has a null data node.
|
signal |
Emitted whenever the initial values are modified by the user or reset programmatically.
|
protectedslot |
|
slot |
Sets the data storage used for image-based initial value selection.
Also resets any currently selected initial parameter images.
| [in] | storage | Pointer to the DataStorage instance. |
|
slot |
Sets the parameter names with default initial values of zero.
| [in] | names | List of parameter names. |
|
slot |
Sets the parameter names, default values, and units for the model.
| [in] | names | List of parameter names. The index corresponds to the parameter index in the fitting model. |
| [in] | values | Default initial values for the parameters. |
| [in] | units | Map of parameter names to their unit strings. |
|
slot |
Sets the reference image geometry used to filter selectable images.
When a valid geometry is provided, only 3D images matching that geometry are offered for selection. When nullptr is passed, all 3D images are available. Resets any currently selected initial parameter images.
| [in] | refgeo | Pointer to the reference geometry, or nullptr to clear the filter. |
|
protected |
Definition at line 147 of file QmitkInitialValuesManagerWidget.h.
|
protected |
Definition at line 148 of file QmitkInitialValuesManagerWidget.h.
|
protected |
Definition at line 153 of file QmitkInitialValuesManagerWidget.h.
|
protected |
Definition at line 150 of file QmitkInitialValuesManagerWidget.h.
|
protected |
Definition at line 151 of file QmitkInitialValuesManagerWidget.h.