Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
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
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
DataCollection - Class to facilitate loading/accessing structured data.
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...
Interface of DICOM tags of interest service.
void RemoveTag(const DICOMTagPath &tag) override
Remove specific tag. If it not exists the function will do nothing.
void RemoveAllTags() override
Remove all tags.
bool HasTag(const DICOMTagPath &tag) const override
std::map< DICOMTagPath, std::string > DICOMTagPathMapType
DICOMTagPathMapType GetTagsOfInterest() const override