Medical Imaging Interaction Toolkit  2018.4.99-1640525a
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 __CONCRETE_MODEL_FACTORY_BASE_H
14 #define __CONCRETE_MODEL_FACTORY_BASE_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 
51  static ModelPointer CreateConcreteModel()
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 
67  ParameterNamesType GetParameterNames() const override
68  {
69  return m_Reference->GetParameterNames();
70  };
71 
72  ParametersSizeType GetNumberOfParameters() const override
73  {
74  return m_Reference->GetNumberOfParameters();
75  };
76 
77  ParamterScaleMapType GetParameterScales() const override
78  {
79  return m_Reference->GetParameterScales();
80  };
81 
82  ParamterUnitMapType GetParameterUnits() const override
83  {
84  return m_Reference->GetParameterUnits();
85  };
86 
87  ParameterNamesType GetDerivedParameterNames() const override
88  {
89  return m_Reference->GetDerivedParameterNames();
90  };
91 
92  ParametersSizeType GetNumberOfDerivedParameters() const override
93  {
94  return m_Reference->GetNumberOfDerivedParameters();
95  };
96 
97  DerivedParamterScaleMapType GetDerivedParameterScales() const override
98  {
99  return m_Reference->GetDerivedParameterScales();
100  };
101 
102  DerivedParamterUnitMapType GetDerivedParameterUnits() const override
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 
117  FunctionStringType GetFunctionString() const override
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 
162  ModelPointer m_Reference;
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 // __CONCRETE_MODEL_FACTORY_BASE_H
ModelFactoryBase::DerivedParameterNamesType DerivedParameterNamesType
DerivedParamterUnitMapType GetDerivedParameterUnits() const override
Base class for (dynamic) models. A model can be used to calculate its signal given the discrete time ...
Definition: mitkModelBase.h:47
ModelTraitsInterface::DerivedParamterUnitMapType DerivedParamterUnitMapType
ModelFactoryBase::ParameterNameType ParameterNameType
std::string GetModelType() const override
ParameterNamesType GetDerivedParameterNames() const override
ModellClassIDType GetClassID() const override
ParamterUnitMapType GetParameterUnits() const override
ModelFactoryBase::ParameterNamesType ParameterNamesType
ModelTraitsInterface::ParametersSizeType ParametersSizeType
DataCollection - Class to facilitate loading/accessing structured data.
ModelFactoryBase::DerivedParametersSizeType DerivedParametersSizeType
ModelFactoryBase::ModelBasePointer ModelBasePointer
ModelFactoryBase::ParametersSizeType ParametersSizeType
ModelTraitsInterface::DerivedParamterScaleMapType DerivedParamterScaleMapType
ModelTraitsInterface::DerivedParameterNamesType DerivedParameterNamesType
ConstraintCheckerBase::Pointer CreateDefaultConstraints() const override
ParametersSizeType GetNumberOfParameters() const override
std::string GetYAxisName() const override
std::string GetModelDisplayName() const override
ModelFactoryBase::ParamterScaleMapType ParamterScaleMapType
std::string GetXAxisUnit() const override
ModelFactoryBase::ModelBaseType ModelBaseType
DerivedParamterScaleMapType GetDerivedParameterScales() const override
ModelFactoryBase::FunctionStringType FunctionStringType
ModelTraitsInterface::FunctionStringType FunctionStringType
ModelTraitsInterface::ModellClassIDType ModellClassIDType
FunctionStringType GetFunctionString() const override
ParamterScaleMapType GetParameterScales() const override
ModelTraitsInterface::DerivedParametersSizeType DerivedParametersSizeType
mitkClassMacro(ConcreteModelFactoryBase, ModelFactoryBase)
ModelTraitsInterface::ParamterScaleMapType ParamterScaleMapType
ModelTraitsInterface::ParameterNamesType ParameterNamesType
std::string GetYAxisUnit() const override
ModelBasePointer CreateModel() const override
std::string GetXAxisName() const override
ModelTraitsInterface::ParameterNameType ParameterNameType
ParameterNamesType GetParameterNames() const override
ModelFactoryBase::DerivedParamterUnitMapType DerivedParamterUnitMapType
ParametersSizeType GetNumberOfDerivedParameters() const override
ModelTraitsInterface::ParamterUnitMapType ParamterUnitMapType
ModelFactoryBase::ModellClassIDType ModellClassIDType
ModelFactoryBase::DerivedParamterScaleMapType DerivedParamterScaleMapType
ModelFactoryBase::ParamterUnitMapType ParamterUnitMapType