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