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