Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkDICOMTagsOfInterestAddHelper.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 mitkDICOMTagsOfInterestAddHelper_h
14 #define mitkDICOMTagsOfInterestAddHelper_h
15 
16 #include <unordered_map>
17 
18 #include <mitkDICOMTagPath.h>
19 
20 #include <usServiceEvent.h>
21 
22 #include <memory>
23 #include <mutex>
24 
25 #include "MitkDICOMExports.h"
26 
27 namespace us
28 {
29  class ModuleContext;
30 }
31 
32 namespace mitk
33 {
34  class IDICOMTagsOfInterest;
35 
50  {
51  public:
52  using TagsOfInterestVector = std::vector<mitk::DICOMTagPath>;
54 
55  void Activate(us::ModuleContext* context, TagsOfInterestVector tags);
56  void Deactivate();
57 
58  private:
59  void RegisterTagsOfInterest(IDICOMTagsOfInterest* toiService) const;
60  void DICOMTagsOfInterestServiceChanged(const us::ServiceEvent event);
61 
62  TagsOfInterestVector m_TagsOfInterest;
63 
64  bool m_Active = false;
65  us::ModuleContext* m_Context = nullptr;
66 
68  std::mutex m_Mutex;
69  };
70 }
71 
72 #endif
mitk::DICOMTagsOfInterestAddHelper
Definition: mitkDICOMTagsOfInterestAddHelper.h:49
usServiceEvent.h
mitk::DICOMTagsOfInterestAddHelper::TagsOfInterestVector
std::vector< mitk::DICOMTagPath > TagsOfInterestVector
Definition: mitkDICOMTagsOfInterestAddHelper.h:52
ModuleContext
Definition: usModuleContext.h:91
us
Definition: mitkAbstractFileReader.h:29
MitkDICOMExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::IDICOMTagsOfInterest
Interface of DICOM tags of interest service.
Definition: mitkIDICOMTagsOfInterest.h:33
us::ServiceEvent
Definition: usServiceEvent.h:55
mitkDICOMTagPath.h
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15