Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 "ui_QmitkInitialValuesManagerWidget.h"
20 #include <QWidget>
21 
24 
25 /*forward declarations*/
29 
30 namespace mitk
31 {
32  class DataStorage;
33  class BaseGeometry;
34 }
35 
41 {
42  Q_OBJECT
43 
44 public:
45  QmitkInitialValuesManagerWidget(QWidget* parent = nullptr);
47 
49  mitk::ModelTraitsInterface::ParametersType getInitialValues() const;
50  mitk::InitialParameterizationDelegateBase::Pointer getInitialParametrizationDelegate() const;
51 
52  bool hasValidInitialValues() const;
53 
54 signals:
55  void initialValuesChanged();
56 
57 public Q_SLOTS:
62  void setInitialValues(const mitk::ModelTraitsInterface::ParameterNamesType& names,
65  void setInitialValues(const mitk::ModelTraitsInterface::ParameterNamesType& names);
66 
67  void setDataStorage(mitk::DataStorage* storage);
68 
69  void setReferenceImageGeometry(mitk::BaseGeometry* refgeo);
70 
71 protected:
72 
74 
77 
78  Ui::QmitkInitialValuesManagerWidget m_Controls;
79 
80 protected Q_SLOTS:
81  void OnModelReset();
82 
83 };
84 
85 #endif
mitk::ModelTraitsInterface::ParamterUnitMapType
std::map< ParameterNameType, std::string > ParamterUnitMapType
Definition: mitkModelTraitsInterface.h:40
mitkModelTraitsInterface.h
MITKMODELFITUI_EXPORT
#define MITKMODELFITUI_EXPORT
Definition: MitkModelFitUIExports.h:15
itk::SmartPointer< Self >
QmitkInitialValuesManagerWidget
Widget that allows to edit the initial values of an model.
Definition: QmitkInitialValuesManagerWidget.h:40
QmitkInitialValuesDelegate
Toolkit includes.
Definition: QmitkInitialValuesDelegate.h:32
QmitkInitialValuesManagerWidget::m_TypeDelegate
QmitkInitialValuesTypeDelegate * m_TypeDelegate
Definition: QmitkInitialValuesManagerWidget.h:75
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ModelTraitsInterface::ParameterNamesType
std::vector< ParameterNameType > ParameterNamesType
Definition: mitkModelTraitsInterface.h:34
QmitkInitialValuesModel
Definition: QmitkInitialValuesModel.h:30
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
QmitkInitialValuesManagerWidget::m_Controls
Ui::QmitkInitialValuesManagerWidget m_Controls
Definition: QmitkInitialValuesManagerWidget.h:78
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
MitkModelFitUIExports.h
QmitkInitialValuesTypeDelegate
An item delegate for rendering and editing the type of a initial value. It assumes that the type is e...
Definition: QmitkInitialValuesTypeDelegate.h:25
mitk::ModelTraitsInterface::ParametersType
itk::Array< ParameterValueType > ParametersType
Definition: mitkModelTraitsInterface.h:31
QmitkInitialValuesManagerWidget::m_ValuesDelegate
QmitkInitialValuesDelegate * m_ValuesDelegate
Definition: QmitkInitialValuesManagerWidget.h:76
mitkInitialParameterizationDelegateBase.h
QmitkInitialValuesManagerWidget::m_InternalModel
QmitkInitialValuesModel * m_InternalModel
Definition: QmitkInitialValuesManagerWidget.h:73