Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkCoreActivator.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 mitkCoreActivator_h
14 #define mitkCoreActivator_h
15 
16 // File IO
17 #include <mitkAbstractFileIO.h>
18 #include <mitkIFileReader.h>
19 #include <mitkIFileWriter.h>
20 
21 #include <mitkMimeTypeProvider.h>
23 #include <mitkPropertyAliases.h>
26 #include <mitkPropertyExtensions.h>
27 #include <mitkPropertyFilters.h>
29 #include <mitkPropertyRelations.h>
30 #include <mitkPreferencesService.h>
31 
32 // Micro Services
33 #include <usModuleActivator.h>
34 #include <usModuleEvent.h>
35 #include <usServiceRegistration.h>
36 #include <usServiceTracker.h>
37 
38 #include <memory>
39 
40 /*
41  * This is the module activator for the "Mitk" module. It registers core services
42  * like ...
43  */
45 {
46 public:
47  void Load(us::ModuleContext *context) override;
48  void Unload(us::ModuleContext *) override;
49 
50 private:
51  void HandleModuleEvent(const us::ModuleEvent moduleEvent);
52 
53  void RegisterDefaultMimeTypes();
54  void RegisterItkReaderWriter();
55  void RegisterVtkReaderWriter();
56 
57  void RegisterLegacyWriter();
58 
59  // mitk::RenderingManager::Pointer m_RenderingManager;
60  std::unique_ptr<mitk::PlanePositionManagerService> m_PlanePositionManager;
61  std::unique_ptr<mitk::PropertyAliases> m_PropertyAliases;
62  std::unique_ptr<mitk::PropertyDescriptions> m_PropertyDescriptions;
63  std::unique_ptr<mitk::PropertyDeserialization> m_PropertyDeserialization;
64  std::unique_ptr<mitk::PropertyExtensions> m_PropertyExtensions;
65  std::unique_ptr<mitk::PropertyFilters> m_PropertyFilters;
66  std::unique_ptr<mitk::PropertyPersistence> m_PropertyPersistence;
67  std::unique_ptr<mitk::PropertyRelations> m_PropertyRelations;
68  std::unique_ptr<mitk::MimeTypeProvider> m_MimeTypeProvider;
69  std::unique_ptr<mitk::PreferencesService> m_PreferencesService;
70 
71  // File IO
72  std::vector<mitk::IFileReader *> m_FileReaders;
73  std::vector<mitk::IFileWriter *> m_FileWriters;
74  std::vector<mitk::AbstractFileIO *> m_FileIOs;
75  std::vector<mitk::IFileWriter *> m_LegacyWriters;
76 
77  std::vector<mitk::CustomMimeType *> m_DefaultMimeTypes;
78 
80 
81  us::ModuleContext *m_Context;
82 };
83 
84 #endif
mitkPropertyExtensions.h
usModuleActivator.h
mitkPropertyAliases.h
usModuleEvent.h
MitkCoreActivator::Unload
void Unload(us::ModuleContext *) override
mitkPreferencesService.h
mitkPlanePositionManager.h
mitkPropertyDeserialization.h
mitkPropertyFilters.h
MitkCoreActivator
Definition: mitkCoreActivator.h:44
mitkPropertyDescriptions.h
mitkMimeTypeProvider.h
mitkIFileWriter.h
us::ModuleActivator
Definition: usModuleActivator.h:63
us::ModuleEvent
Definition: usModuleEvent.h:46
mitkIFileReader.h
mitkAbstractFileIO.h
usServiceRegistration.h
usServiceTracker.h
mitkPropertyRelations.h
us::ServiceRegistration< mitk::IMimeTypeProvider >
mitkPropertyPersistence.h
MitkCoreActivator::Load
void Load(us::ModuleContext *context) override