Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkConcreteModelFactoryBase.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 mitkConcreteModelFactoryBase_h
14 #define mitkConcreteModelFactoryBase_h
15 
16 #include "mitkModelFactoryBase.h"
17 
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
22  template <class TModel>
24  {
25  public:
26 /* typedef ConcreteModelFactoryBase Self;
27  typedef ModelFactoryBase Superclass;
28  typedef itk::SmartPointer< Self > Pointer;
29  typedef itk::SmartPointer< const Self > ConstPointer;
30 */
32 
35 
36  typedef TModel ModelType;
37  typedef typename ModelType::Pointer ModelPointer;
38 
50 
52  {
53  return ModelType::New();
54  }
55 
56  ModelBasePointer CreateModel() const override
57  {
58  return CreateConcreteModel().GetPointer();
59  };
60 
62  {
63  ConstraintCheckerBase::Pointer noConstraints;
64  return noConstraints;
65  };
66 
68  {
69  return m_Reference->GetParameterNames();
70  };
71 
73  {
74  return m_Reference->GetNumberOfParameters();
75  };
76 
78  {
79  return m_Reference->GetParameterScales();
80  };
81 
83  {
84  return m_Reference->GetParameterUnits();
85  };
86 
88  {
89  return m_Reference->GetDerivedParameterNames();
90  };
91 
93  {
94  return m_Reference->GetNumberOfDerivedParameters();
95  };
96 
98  {
99  return m_Reference->GetDerivedParameterScales();
100  };
101 
103  {
104  return m_Reference->GetDerivedParameterUnits();
105  };
106 
107  std::string GetModelDisplayName() const override
108  {
109  return m_Reference->GetModelDisplayName();
110  };
111 
112  std::string GetModelType() const override
113  {
114  return m_Reference->GetModelType();
115  };
116 
118  {
119  return m_Reference->GetFunctionString();
120  };
121 
122  ModellClassIDType GetClassID() const override
123  {
124  return m_Reference->GetClassID();
125  };
126 
127  std::string GetXName() const override
128  {
129  return m_Reference->GetXName();
130  };
131 
132  std::string GetXAxisName() const override
133  {
134  return m_Reference->GetXAxisName();
135  };
136 
137  std::string GetXAxisUnit() const override
138  {
139  return m_Reference->GetXAxisUnit();
140  };
141 
142  std::string GetYAxisName() const override
143  {
144  return m_Reference->GetYAxisName();
145  };
146 
147  std::string GetYAxisUnit() const override
148  {
149  return m_Reference->GetYAxisUnit();
150  }
151 
152  protected:
154  {
155  m_Reference = ModelType::New();
156  };
157 
159  {
160  };
161 
163 
164  private:
165 
166  //No copy constructor allowed
167  ConcreteModelFactoryBase(const Self& source);
168  void operator=(const Self&); //purposely not implemented
169  };
170 }
171 
172 #endif
mitk::ConcreteModelFactoryBase::CreateModel
ModelBasePointer CreateModel() const override
Definition: mitkConcreteModelFactoryBase.h:56
mitk::ConcreteModelFactoryBase::CreateConcreteModel
static ModelPointer CreateConcreteModel()
Definition: mitkConcreteModelFactoryBase.h:51
mitk::ConcreteModelFactoryBase::ModelPointer
ModelType::Pointer ModelPointer
Definition: mitkConcreteModelFactoryBase.h:37
mitk::ConcreteModelFactoryBase::GetModelDisplayName
std::string GetModelDisplayName() const override
Definition: mitkConcreteModelFactoryBase.h:107
mitkModelFactoryBase.h
MitkModelFitExports.h
mitk::ConcreteModelFactoryBase::ParamterScaleMapType
ModelFactoryBase::ParamterScaleMapType ParamterScaleMapType
Definition: mitkConcreteModelFactoryBase.h:42
mitk::ModelFactoryBase::ParameterNameType
ModelTraitsInterface::ParameterNameType ParameterNameType
Definition: mitkModelFactoryBase.h:45
mitk::ConcreteModelFactoryBase::DerivedParamterScaleMapType
ModelFactoryBase::DerivedParamterScaleMapType DerivedParamterScaleMapType
Definition: mitkConcreteModelFactoryBase.h:46
mitk::ConcreteModelFactoryBase::DerivedParamterUnitMapType
ModelFactoryBase::DerivedParamterUnitMapType DerivedParamterUnitMapType
Definition: mitkConcreteModelFactoryBase.h:47
mitk::ConcreteModelFactoryBase
Definition: mitkConcreteModelFactoryBase.h:23
mitk::ModelFactoryBase::DerivedParamterUnitMapType
ModelTraitsInterface::DerivedParamterUnitMapType DerivedParamterUnitMapType
Definition: mitkModelFactoryBase.h:57
mitk::ConcreteModelFactoryBase::ParameterNameType
ModelFactoryBase::ParameterNameType ParameterNameType
Definition: mitkConcreteModelFactoryBase.h:39
mitk::ConcreteModelFactoryBase::GetNumberOfParameters
ParametersSizeType GetNumberOfParameters() const override
Definition: mitkConcreteModelFactoryBase.h:72
itk::SmartPointer< Self >
mitk::ConcreteModelFactoryBase::GetModelType
std::string GetModelType() const override
Definition: mitkConcreteModelFactoryBase.h:112
mitk::ConcreteModelFactoryBase::FunctionStringType
ModelFactoryBase::FunctionStringType FunctionStringType
Definition: mitkConcreteModelFactoryBase.h:48
mitk::ConcreteModelFactoryBase::ModelType
TModel ModelType
Definition: mitkConcreteModelFactoryBase.h:36
mitk::ConcreteModelFactoryBase::GetDerivedParameterScales
DerivedParamterScaleMapType GetDerivedParameterScales() const override
Definition: mitkConcreteModelFactoryBase.h:97
mitk::ConcreteModelFactoryBase::ParametersSizeType
ModelFactoryBase::ParametersSizeType ParametersSizeType
Definition: mitkConcreteModelFactoryBase.h:41
mitk::ModelFactoryBase::ParameterNamesType
ModelTraitsInterface::ParameterNamesType ParameterNamesType
Definition: mitkModelFactoryBase.h:46
mitk::ConcreteModelFactoryBase::ModellClassIDType
ModelFactoryBase::ModellClassIDType ModellClassIDType
Definition: mitkConcreteModelFactoryBase.h:49
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ConcreteModelFactoryBase::ParameterNamesType
ModelFactoryBase::ParameterNamesType ParameterNamesType
Definition: mitkConcreteModelFactoryBase.h:40
mitk::ConcreteModelFactoryBase::GetXName
std::string GetXName() const override
Definition: mitkConcreteModelFactoryBase.h:127
mitk::ModelFactoryBase::DerivedParametersSizeType
ModelTraitsInterface::DerivedParametersSizeType DerivedParametersSizeType
Definition: mitkModelFactoryBase.h:55
mitk::ConcreteModelFactoryBase::~ConcreteModelFactoryBase
~ConcreteModelFactoryBase() override
Definition: mitkConcreteModelFactoryBase.h:158
mitk::ConcreteModelFactoryBase::GetParameterScales
ParamterScaleMapType GetParameterScales() const override
Definition: mitkConcreteModelFactoryBase.h:77
mitk::ConcreteModelFactoryBase::GetYAxisName
std::string GetYAxisName() const override
Definition: mitkConcreteModelFactoryBase.h:142
mitk::ConcreteModelFactoryBase::ParamterUnitMapType
ModelFactoryBase::ParamterUnitMapType ParamterUnitMapType
Definition: mitkConcreteModelFactoryBase.h:43
mitk::ConcreteModelFactoryBase::GetParameterNames
ParameterNamesType GetParameterNames() const override
Definition: mitkConcreteModelFactoryBase.h:67
mitk::ConcreteModelFactoryBase::DerivedParameterNamesType
ModelFactoryBase::DerivedParameterNamesType DerivedParameterNamesType
Definition: mitkConcreteModelFactoryBase.h:44
mitk::ModelFactoryBase
Definition: mitkModelFactoryBase.h:32
mitk::ConcreteModelFactoryBase::ModelBaseType
ModelFactoryBase::ModelBaseType ModelBaseType
Definition: mitkConcreteModelFactoryBase.h:33
mitk::ConcreteModelFactoryBase::CreateDefaultConstraints
ConstraintCheckerBase::Pointer CreateDefaultConstraints() const override
Definition: mitkConcreteModelFactoryBase.h:61
mitk::ModelFactoryBase::FunctionStringType
ModelTraitsInterface::FunctionStringType FunctionStringType
Definition: mitkModelFactoryBase.h:51
mitk::ConcreteModelFactoryBase::DerivedParametersSizeType
ModelFactoryBase::DerivedParametersSizeType DerivedParametersSizeType
Definition: mitkConcreteModelFactoryBase.h:45
mitk::ConcreteModelFactoryBase::GetClassID
ModellClassIDType GetClassID() const override
Definition: mitkConcreteModelFactoryBase.h:122
mitk::ModelFactoryBase::ParamterUnitMapType
ModelTraitsInterface::ParamterUnitMapType ParamterUnitMapType
Definition: mitkModelFactoryBase.h:50
mitk::ConcreteModelFactoryBase::mitkClassMacro
mitkClassMacro(ConcreteModelFactoryBase, ModelFactoryBase)
mitk::ConcreteModelFactoryBase::ConcreteModelFactoryBase
ConcreteModelFactoryBase()
Definition: mitkConcreteModelFactoryBase.h:153
mitk::ModelFactoryBase::ParamterScaleMapType
ModelTraitsInterface::ParamterScaleMapType ParamterScaleMapType
Definition: mitkModelFactoryBase.h:49
mitk::ConcreteModelFactoryBase::GetXAxisName
std::string GetXAxisName() const override
Definition: mitkConcreteModelFactoryBase.h:132
mitk::ConcreteModelFactoryBase::GetDerivedParameterNames
ParameterNamesType GetDerivedParameterNames() const override
Definition: mitkConcreteModelFactoryBase.h:87
mitk::ModelFactoryBase::ParametersSizeType
ModelTraitsInterface::ParametersSizeType ParametersSizeType
Definition: mitkModelFactoryBase.h:47
mitk::ConcreteModelFactoryBase::GetXAxisUnit
std::string GetXAxisUnit() const override
Definition: mitkConcreteModelFactoryBase.h:137
mitk::ConcreteModelFactoryBase::GetYAxisUnit
std::string GetYAxisUnit() const override
Definition: mitkConcreteModelFactoryBase.h:147
mitk::ConcreteModelFactoryBase::m_Reference
ModelPointer m_Reference
Definition: mitkConcreteModelFactoryBase.h:160
mitk::ConcreteModelFactoryBase::ModelBasePointer
ModelFactoryBase::ModelBasePointer ModelBasePointer
Definition: mitkConcreteModelFactoryBase.h:34
mitk::ConcreteModelFactoryBase::GetParameterUnits
ParamterUnitMapType GetParameterUnits() const override
Definition: mitkConcreteModelFactoryBase.h:82
mitk::ModelBase
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47
mitk::ModelFactoryBase::DerivedParamterScaleMapType
ModelTraitsInterface::DerivedParamterScaleMapType DerivedParamterScaleMapType
Definition: mitkModelFactoryBase.h:56
mitk::ModelFactoryBase::DerivedParameterNamesType
ModelTraitsInterface::DerivedParameterNamesType DerivedParameterNamesType
Definition: mitkModelFactoryBase.h:54
mitk::ConcreteModelFactoryBase::GetFunctionString
FunctionStringType GetFunctionString() const override
Definition: mitkConcreteModelFactoryBase.h:117
mitk::ConcreteModelFactoryBase::GetDerivedParameterUnits
DerivedParamterUnitMapType GetDerivedParameterUnits() const override
Definition: mitkConcreteModelFactoryBase.h:102
mitk::ModelFactoryBase::ModellClassIDType
ModelTraitsInterface::ModellClassIDType ModellClassIDType
Definition: mitkModelFactoryBase.h:52
mitk::ConcreteModelFactoryBase::GetNumberOfDerivedParameters
ParametersSizeType GetNumberOfDerivedParameters() const override
Definition: mitkConcreteModelFactoryBase.h:92