Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 #include "mitkNodePredicateBase.h"
25 
26 /*forward declarations*/
30 
31 namespace mitk
32 {
33  class DataStorage;
34  class BaseGeometry;
35 }
36 
42 {
43  Q_OBJECT
44 
45 public:
46  QmitkInitialValuesManagerWidget(QWidget* parent = nullptr);
48 
50  mitk::ModelTraitsInterface::ParametersType getInitialValues() const;
51  mitk::InitialParameterizationDelegateBase::Pointer getInitialParametrizationDelegate() const;
52 
53  bool hasValidInitialValues() const;
54 
55 signals:
56  void initialValuesChanged();
57 
58 public Q_SLOTS:
63  void setInitialValues(const mitk::ModelTraitsInterface::ParameterNamesType& names,
66  void setInitialValues(const mitk::ModelTraitsInterface::ParameterNamesType& names);
67 
68  void setDataStorage(mitk::DataStorage* storage);
69 
70  void setReferenceImageGeometry(mitk::BaseGeometry* refgeo);
71 
72 protected:
73 
75 
78 
79  Ui::QmitkInitialValuesManagerWidget m_Controls;
80 
82 
83 protected Q_SLOTS:
84  void OnModelReset();
85 
86 };
87 
88 #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:41
QmitkInitialValuesDelegate
Toolkit includes.
Definition: QmitkInitialValuesDelegate.h:32
mitkNodePredicateBase.h
QmitkInitialValuesManagerWidget::m_TypeDelegate
QmitkInitialValuesTypeDelegate * m_TypeDelegate
Definition: QmitkInitialValuesManagerWidget.h:76
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
QmitkInitialValuesManagerWidget::m_NoHiddenOrHelperPredicate
mitk::NodePredicateBase::Pointer m_NoHiddenOrHelperPredicate
Definition: QmitkInitialValuesManagerWidget.h:81
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:79
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:77
mitkInitialParameterizationDelegateBase.h
QmitkInitialValuesManagerWidget::m_InternalModel
QmitkInitialValuesModel * m_InternalModel
Definition: QmitkInitialValuesManagerWidget.h:74