Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkDICOMTagsOfInterestService.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 mitkDICOMTagsOfInterestService_h
14 #define mitkDICOMTagsOfInterestService_h
15 
16 #include <string>
17 #include <mutex>
18 #include <vector>
19 #include <set>
21 
22 namespace mitk
23 {
34  {
35  public:
37  ~DICOMTagsOfInterestService() override;
38 
39  void AddTagOfInterest(const DICOMTagPath& tag, bool makePersistant = true) override;
40 
41  DICOMTagPathMapType GetTagsOfInterest() const override;
42 
43  bool HasTag(const DICOMTagPath& tag) const override;
44 
45  void RemoveTag(const DICOMTagPath& tag) override;
46 
47  void RemoveAllTags() override;
48 
49  private:
50 
51  typedef std::set<DICOMTagPath> InternalTagSetType;
52  typedef std::lock_guard<std::mutex> MutexHolder;
53 
54  InternalTagSetType m_Tags;
55  mutable std::mutex m_Lock;
56 
59  };
60 }
61 
62 #endif
mitk::DICOMTagsOfInterestService::~DICOMTagsOfInterestService
~DICOMTagsOfInterestService() override
mitk::DICOMTagsOfInterestService::AddTagOfInterest
void AddTagOfInterest(const DICOMTagPath &tag, bool makePersistant=true) override
Add an tag to the TOI. If the tag was already added it will be overwritten with the passed values.
mitk::DICOMTagsOfInterestService::RemoveAllTags
void RemoveAllTags() override
Remove all tags.
mitk::DICOMTagsOfInterestService::DICOMTagsOfInterestService
DICOMTagsOfInterestService()
mitk::DICOMTagsOfInterestService
DICOM tags of interest service.
Definition: mitkDICOMTagsOfInterestService.h:33
mitk::DICOMTagsOfInterestService::GetTagsOfInterest
DICOMTagPathMapType GetTagsOfInterest() const override
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::DICOMTagsOfInterestService::HasTag
bool HasTag(const DICOMTagPath &tag) const override
mitk::IDICOMTagsOfInterest
Interface of DICOM tags of interest service.
Definition: mitkIDICOMTagsOfInterest.h:33
mitk::DICOMTagPathMapType
std::map< DICOMTagPath, std::string > DICOMTagPathMapType
Definition: mitkDICOMTagsOfInterestHelper.h:28
mitkIDICOMTagsOfInterest.h
mitk::DICOMTagsOfInterestService::RemoveTag
void RemoveTag(const DICOMTagPath &tag) override
Remove specific tag. If it not exists the function will do nothing.
mitk::DICOMTagPath
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...
Definition: mitkDICOMTagPath.h:34