Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDICOMRTIOActivator.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 
17 #include "mitkRTDoseReader.h"
18 
19 #include <usModuleActivator.h>
20 #include <usModuleContext.h>
21 
22 
23 namespace mitk {
24 
25 /*
26  * This is the module activator for the "VirtuosIO" module.
27  */
28 class DICOMRTIOActivator : public us::ModuleActivator
29 {
30 public:
31 
32  void Load(us::ModuleContext* context)
33  {
34  m_RTDoseReader = new RTDoseReader();
35  }
36 
37  void Unload(us::ModuleContext* )
38  {
39  delete m_RTDoseReader;
40  }
41 
42 private:
43  mitk::RTDoseReader* m_RTDoseReader;
44 };
45 }
46 
47 US_EXPORT_MODULE_ACTIVATOR(mitk::DICOMRTIOActivator)
RTDoseReader reads DICOM files of modality RTDOSE.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Unload(ModuleContext *context)=0
virtual void Load(ModuleContext *context)=0
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)