Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkInitialValuesManagerWidget.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 QmitkInitialValuesManagerWidget_h
15 #define QmitkInitialValuesManagerWidget_h
16 
17 #include <MitkModelFitUIExports.h>
18 
19 #include <QWidget>
20 
23 #include <mitkNodePredicateBase.h>
24 #include <memory>
25 
26 /*forward declarations*/
30 
31 namespace mitk
32 {
33  class DataStorage;
34  class BaseGeometry;
35 }
36 
37 namespace Ui
38 {
40 }
41 
59 {
60  Q_OBJECT
61 
62 public:
67  QmitkInitialValuesManagerWidget(QWidget* parent = nullptr);
68 
71 
81 
90 
98  bool hasValidInitialValues() const;
99 
100 signals:
103 
104 public Q_SLOTS:
118 
124 
133 
144 
145 protected:
146 
147  std::unique_ptr<Ui::QmitkInitialValuesManagerWidget> m_Controls;
149 
152 
153  mitk::NodePredicateBase::Pointer m_NoHiddenOrHelperPredicate;
154 
155 protected Q_SLOTS:
156  void OnModelReset();
157 
158 };
159 
160 #endif
#define MITKMODELFITUI_EXPORT
Widget that allows editing the initial parameter values of a model fit.
mitk::ModelTraitsInterface::ParametersType getInitialValues() const
Returns the current scalar initial values of the model parameters.
~QmitkInitialValuesManagerWidget() override
Destructor.
mitk::NodePredicateBase::Pointer m_NoHiddenOrHelperPredicate
bool hasValidInitialValues() const
Checks whether all initial values are valid.
void setInitialValues(const mitk::ModelTraitsInterface::ParameterNamesType &names)
Sets the parameter names with default initial values of zero.
QmitkInitialValuesManagerWidget(QWidget *parent=nullptr)
Constructs a QmitkInitialValuesManagerWidget.
QmitkInitialValuesTypeDelegate * m_TypeDelegate
std::unique_ptr< Ui::QmitkInitialValuesManagerWidget > m_Controls
void setReferenceImageGeometry(mitk::BaseGeometry *refgeo)
Sets the reference image geometry used to filter selectable images.
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.
void setDataStorage(mitk::DataStorage *storage)
Sets the data storage used for image-based initial value selection.
mitk::InitialParameterizationDelegateBase::Pointer getInitialParametrizationDelegate() const
Creates and returns a parameterization delegate representing the full initial configuration.
void initialValuesChanged()
Emitted whenever the initial values are modified by the user or reset programmatically.
Qt table model for defining and editing initial parameter values of a model fit.
Item delegate for rendering and editing the type of an initial parameter value.
Abstract base class describing the geometry of a data object.
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
std::map< ParameterNameType, std::string > ParamterUnitMapType
Map type associating parameter names to their unit strings.
itk::Array< ParameterValueType > ParametersType
Type representing a vector of parameter values.
std::vector< ParameterNameType > ParameterNamesType
Type for a list of parameter names.
Find image slices visible on a given plane.