Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkDICOMReaderServicesActivator.cpp
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 
14 
19 
20 #include <usModuleContext.h>
21 
22 namespace mitk {
23 
24  void DICOMReaderServicesActivator::Load(us::ModuleContext* context)
25  {
26  m_AutoSelectingDICOMReader.reset(new AutoSelectingDICOMReaderService());
27  m_SimpleVolumeDICOMSeriesReader.reset(new SimpleVolumeDICOMSeriesReaderService());
28 
29  m_DICOMTagsOfInterestService.reset(new DICOMTagsOfInterestService());
30  context->RegisterService<mitk::IDICOMTagsOfInterest>(m_DICOMTagsOfInterestService.get());
31 
33  for (auto tag : tagmap)
34  {
35  m_DICOMTagsOfInterestService->AddTagOfInterest(tag.first);
36  }
37  }
38 
39  void DICOMReaderServicesActivator::Unload(us::ModuleContext*)
40  {
41  }
42 
43 }
44 
DataCollection - Class to facilitate loading/accessing structured data.
Interface of DICOM tags of interest service.
void Unload(us::ModuleContext *context) override
void Load(us::ModuleContext *context) override
DICOMTagPathMapType MITKDICOMREADER_EXPORT GetDefaultDICOMTagsOfInterest()
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.
std::map< DICOMTagPath, std::string > DICOMTagPathMapType