Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
mitkModelFitProviderBase.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 __MODEL_FIT_PROVIDER_BASE_H
14 #define __MODEL_FIT_PROVIDER_BASE_H
15 
16 #include <memory>
17 
18 // MITK
19 #include <mitkIModelFitProvider.h>
20 
21 // Microservices
22 #include <usGetModuleContext.h>
23 #include <usServiceProperties.h>
24 #include <usServiceRegistration.h>
25 
26 namespace mitk
27 {
31  template<class TModelFactory>
33  {
34  public:
37 
43  ModelBase::TimeGridType GetVariableGrid(const modelFit::ModelFitInfo* fitInfo) const override;
44 
46  void UnregisterService();
47 
49  ~ModelFitProviderBase() override;
50 
51  protected:
52 
54 
56 
67  void SetRanking(int ranking);
68  int GetRanking() const;
69 
70  private:
71  ModelFitProviderBase &operator=(const ModelFitProviderBase &other);
72 
73  class Impl;
74  std::unique_ptr< Impl > d;
75  };
76 
77 } // namespace mitk
78 
79 
80 #ifndef ITK_MANUAL_INSTANTIATION
81 #include "mitkModelFitProviderBase.tpp"
82 #endif
83 
84 #endif /* __MODEL_FIT_PROVIDER_BASE_H */
void SetRanking(int ranking)
Set the service ranking for this file reader.
ModelBase::TimeGridType GetVariableGrid(const modelFit::ModelFitInfo *fitInfo) const override
DataCollection - Class to facilitate loading/accessing structured data.
itk::Array< double > TimeGridType
Definition: mitkModelBase.h:62
us::ServiceRegistration< IModelFitProvider > RegisterService(us::ModuleContext *context=us::GetModuleContext())
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
Base class for model fit provider.
The common interface for all model providers for model fitting.
itk::SmartPointer< ModelFactoryBase > GenerateFactory() const override
virtual us::ServiceProperties GetServiceProperties() const
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.