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