Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 
22 
23 #include <usModuleContext.h>
24 
25 namespace mitk {
26 
27  void DICOMReaderServicesActivator::Load(us::ModuleContext* context)
28  {
29  m_AutoSelectingDICOMReader.reset(new AutoSelectingDICOMReaderService());
30  m_ClassicDICOMSeriesReader.reset(new ClassicDICOMSeriesReaderService());
31 
32  m_DICOMTagsOfInterestService.reset(new DICOMTagsOfInterestService());
33  context->RegisterService<mitk::IDICOMTagsOfInterest>(m_DICOMTagsOfInterestService.get());
34 
36  for (auto tag : tagmap)
37  {
38  m_DICOMTagsOfInterestService->AddTagOfInterest(tag.first);
39  }
40  }
41 
42  void DICOMReaderServicesActivator::Unload(us::ModuleContext*)
43  {
44  }
45 
46 }
47 
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()
std::map< DICOMTagPath, std::string > DICOMTagPathMapType
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)