Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
Medical Imaging Interaction Toolkit
mitkConcreteAIFBasedModelFactory.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 #ifndef MITK_CONCRETE_AIF_BASED_MODEL_FACTORY_H
13 #define MITK_CONCRETE_AIF_BASED_MODEL_FACTORY_H
14 
17 
18 namespace mitk
19 {
20 
21  template <class TModelParameterizer>
23  mitk::ConcreteModelFactoryBase<typename TModelParameterizer::ModelType>
24  {
25  public:
28 
29  typedef typename Superclass::ModelType ModelType;
30  typedef TModelParameterizer ModelParameterizerType;
31 
32  protected:
34  const override
35  {
37 
38  typename ModelParameterizerType::Pointer modelParameterizer =
39  ModelParameterizerType::New();
40 
42  ModelType::NAME_STATIC_PARAMETER_AIF);
43 
44  modelParameterizer->SetAIF(mitk::convertParameterToArray(aif));
45 
47  ModelType::NAME_STATIC_PARAMETER_AIFTimeGrid);
48  modelParameterizer->SetAIFTimeGrid(mitk::convertParameterToArray(aifGrid));
49 
50  result = modelParameterizer.GetPointer();
51 
52  return result;
53  };
54 
56  {
57  };
58 
60  {
61  };
62 
63  private:
64 
65  //No copy constructor allowed
66  ConcreteAIFBasedModelFactory(const Self& source);
67  void operator=(const Self&); //purposely not implemented
68 
69  };
70 
71 }
72 #endif // MITKTWOCOMPARTMENTEXCHANGEMODELFACTORY_H
ModelBase::StaticParameterValuesType ValueType
Type of the map value.
DataCollection - Class to facilitate loading/accessing structured data.
StaticParameterMap staticParamMap
ModelParameterizerBase::Pointer DoCreateParameterizer(const modelFit::ModelFitInfo *fit) const override
const ValueType & Get(const std::string &name) const
Returns the values of the given variable name.
MITKPHARMACOKINETICS_EXPORT itk::Array< double > convertParameterToArray(ModelBase::StaticParameterValuesType)
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
mitkClassMacro(ConcreteAIFBasedModelFactory, ConcreteModelFactoryBase< typename TModelParameterizer::ModelType >)