Medical Imaging Interaction Toolkit  2018.4.99-eed36131
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 <vector>
18 #include <set>
20 
21 #include <itkFastMutexLock.h>
22 #include <itkMutexLockHolder.h>
23 
24 namespace mitk
25 {
36  {
37  public:
39  ~DICOMTagsOfInterestService() override;
40 
41  void AddTagOfInterest(const DICOMTagPath& tag, bool makePersistant = true) override;
42 
43  DICOMTagPathMapType GetTagsOfInterest() const override;
44 
45  bool HasTag(const DICOMTagPath& tag) const override;
46 
47  void RemoveTag(const DICOMTagPath& tag) override;
48 
49  void RemoveAllTags() override;
50 
51  private:
52 
53  typedef std::set<DICOMTagPath> InternalTagSetType;
55 
56  InternalTagSetType m_Tags;
57  mutable itk::SimpleFastMutexLock m_Lock;
58 
61  };
62 }
63 
64 #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.
DICOMTagPathMapType GetTagsOfInterest() const override
bool HasTag(const DICOMTagPath &tag) const override
std::map< DICOMTagPath, std::string > DICOMTagPathMapType