Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 mitkTestModel_h
14 #define mitkTestModel_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
mitk::ModelTraitsInterface::ParamterUnitMapType
std::map< ParameterNameType, std::string > ParamterUnitMapType
Definition: mitkModelTraitsInterface.h:40
mitk::ModelTraitsInterface::ParamterScaleMapType
std::map< ParameterNameType, double > ParamterScaleMapType
Definition: mitkModelTraitsInterface.h:39
mitk::ModelBase::ParameterNamesType
ModelTraitsInterface::ParameterNamesType ParameterNamesType
Definition: mitkModelBase.h:64
mitk::TestModel::ParametersSizeType
Superclass::ParametersSizeType ParametersSizeType
Definition: mitkTestModel.h:34
MitkModelFitExports.h
mitk::TestModel::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: mitkTestModel.h:31
mitk::ModelBase::ParametersType
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:59
mitk::TestModel::Superclass
mitk::ModelBase Superclass
Definition: mitkTestModel.h:29
itk::SmartPointer< Self >
mitk::TestModel::TestModel
TestModel()
Definition: mitkTestModel.h:76
MITKMODELFIT_EXPORT
#define MITKMODELFIT_EXPORT
Definition: MitkModelFitExports.h:15
mitkModelBase.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::TestModel::ParameterNameType
Superclass::ParameterNameType ParameterNameType
Definition: mitkTestModel.h:33
mitk::TestModel::Self
TestModel Self
Definition: mitkTestModel.h:28
mitk::ModelTraitsInterface::FunctionStringType
std::string FunctionStringType
Definition: mitkModelTraitsInterface.h:44
mitk::TestModel::~TestModel
~TestModel() override
Definition: mitkTestModel.h:77
mitk::ModelBase::ParametersSizeType
ModelTraitsInterface::ParametersSizeType ParametersSizeType
Definition: mitkModelBase.h:65
mitk::TestModel
Definition: mitkTestModel.h:24
mitk::TestModel::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkTestModel.h:30
mitk::ModelBase
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47