Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 QMITK_INITIAL_VALUES_MANAGER_WIDGET_H
15 #define QMITK_INITIAL_VALUES_MANAGER_WIDGET_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,
64  void setInitialValues(const mitk::ModelTraitsInterface::ParameterNamesType& names);
65 
66  void setDataStorage(mitk::DataStorage* storage);
67 
68  void setReferenceImageGeometry(mitk::BaseGeometry* refgeo);
69 
70 protected:
71 
73 
76 
77  Ui::QmitkInitialValuesManagerWidget m_Controls;
78 
79 protected Q_SLOTS:
80  void OnModelReset();
81 
82 };
83 
84 #endif // QmitkInitialValuesManagerWidget_H
Widget that allows to edit the initial values of an model.
Data management class that handles &#39;was created by&#39; relations.
DataCollection - Class to facilitate loading/accessing structured data.
Ui::QmitkInitialValuesManagerWidget m_Controls
itk::Array< ParameterValueType > ParametersType
An item delegate for rendering and editing the type of a initial value. It assumes that the type is e...
std::vector< ParameterNameType > ParameterNamesType
QmitkInitialValuesDelegate * m_ValuesDelegate
QmitkInitialValuesTypeDelegate * m_TypeDelegate
BaseGeometry Describes the geometry of a data object.
#define MITKMODELFITUI_EXPORT