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
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 mitkModelFitProviderBase_h
14 #define mitkModelFitProviderBase_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
us::ServiceProperties
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
Definition: usServiceProperties.h:42
mitk::ModelFitProviderBase::~ModelFitProviderBase
~ModelFitProviderBase() override
usServiceProperties.h
mitk::ModelFitProviderBase::ModelFitProviderBase
ModelFitProviderBase()
mitk::ModelFitProviderBase::GetRanking
int GetRanking() const
mitk::ModelFitProviderBase::GetServiceProperties
virtual us::ServiceProperties GetServiceProperties() const
mitk::modelFit::ModelFitInfo
Data class that stores all information about a modelfit that is relevant to the visualization and sto...
Definition: mitkModelFitInfo.h:36
mitkIModelFitProvider.h
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition: usGetModuleContext.h:50
mitk::IModelFitProvider
The common interface for all model providers for model fitting.
Definition: mitkIModelFitProvider.h:52
itk::SmartPointer
Definition: mitkIFileReader.h:30
mitk::ModelFitProviderBase::SetRanking
void SetRanking(int ranking)
Set the service ranking for this file reader.
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ModelFitProviderBase::GetVariableGrid
ModelBase::TimeGridType GetVariableGrid(const modelFit::ModelFitInfo *fitInfo) const override
mitk::ModelFitProviderBase::UnregisterService
void UnregisterService()
mitk::ModelFitProviderBase
Base class for model fit provider.
Definition: mitkModelFitProviderBase.h:32
mitk::ModelFitProviderBase::RegisterService
us::ServiceRegistration< IModelFitProvider > RegisterService(us::ModuleContext *context=us::GetModuleContext())
usServiceRegistration.h
usGetModuleContext.h
mitk::ModelBase::TimeGridType
itk::Array< double > TimeGridType
Definition: mitkModelBase.h:62
us::ServiceRegistration
Definition: usServiceRegistration.h:48
mitk::ModelFitProviderBase::GenerateFactory
itk::SmartPointer< ModelFactoryBase > GenerateFactory() const override