Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
mitkTestModel.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 #ifndef __MITK_TEST_MODEL_H_
14 #define __MITK_TEST_MODEL_H_
15 
16 #include "mitkModelBase.h"
17 
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
22 
25  {
26 
27  public:
28  typedef TestModel Self;
32 
33  typedef Superclass::ParameterNameType ParameterNameType;
34  typedef Superclass::ParametersSizeType ParametersSizeType;
35 
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
41  itkTypeMacro(TestModel, ModelBase);
42 
43  ParamterScaleMapType GetParameterScales() const override;
44 
45  ParamterUnitMapType GetParameterUnits() const override;
46 
47  std::string GetModelDisplayName() const override;
48 
49  std::string GetModelType() const override;
50 
51  FunctionStringType GetFunctionString() const override;
52 
53  std::string GetXName() const override;
54 
55  std::string GetXAxisName() const override;
56 
57  std::string GetXAxisUnit() const override;
58 
59  std::string GetYAxisName() const override;
60 
61  std::string GetYAxisUnit() const override;
62 
63  ParameterNamesType GetParameterNames() const override;
64 
65  ParametersSizeType GetNumberOfParameters() const override;
66 
67  ParameterNamesType GetStaticParameterNames() const override;
68 
69  ParametersSizeType GetNumberOfStaticParameters() const override;
70 
71  ParameterNamesType GetDerivedParameterNames() const override;
72 
73  ParametersSizeType GetNumberOfDerivedParameters() const override;
74 
75  protected:
76  TestModel() {};
77  ~TestModel() override {};
78 
83  itk::LightObject::Pointer InternalClone() const override;
84 
85  ModelResultType ComputeModelfunction(const ParametersType& parameters) const override;
86  DerivedParameterMapType ComputeDerivedParameters(const mitk::ModelBase::ParametersType&
87  parameters) const override;
88 
89  void SetStaticParameter(const ParameterNameType& name,
90  const StaticParameterValuesType& values) override;
91  StaticParameterValuesType GetStaticParameterValue(const ParameterNameType& name) const
92  override;
93 
94  private:
95 
96  //No copy constructor allowed
97  TestModel(const Self& source);
98  void operator=(const Self&); //purposely not implemented
99 
100  };
101 }
102 
103 #endif
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:59
itk::SmartPointer< const Self > ConstPointer
Definition: mitkTestModel.h:31
Superclass::ParameterNameType ParameterNameType
Definition: mitkTestModel.h:33
itk::SmartPointer< Self > Pointer
Definition: mitkTestModel.h:30
std::map< ParameterNameType, double > ParamterScaleMapType
DataCollection - Class to facilitate loading/accessing structured data.
mitk::ModelBase Superclass
Definition: mitkTestModel.h:29
#define MITKMODELFIT_EXPORT
TestModel Self
Definition: mitkTestModel.h:28
std::vector< StaticParameterValueType > StaticParameterValuesType
Definition: mitkModelBase.h:71
std::map< ParameterNameType, DerivedParameterValueType > DerivedParameterMapType
Definition: mitkModelBase.h:75
ModelTraitsInterface::ModelResultType ModelResultType
Definition: mitkModelBase.h:55
ModelTraitsInterface::ParameterNamesType ParameterNamesType
Definition: mitkModelBase.h:64
Superclass::ParametersSizeType ParametersSizeType
Definition: mitkTestModel.h:34
std::map< ParameterNameType, std::string > ParamterUnitMapType
~TestModel() override
Definition: mitkTestModel.h:77