Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef mitkDICOMTagsOfInterestService_h
18 #define mitkDICOMTagsOfInterestService_h
19 
20 #include <string>
21 #include <vector>
22 #include <set>
24 
25 #include <itkFastMutexLock.h>
26 #include <itkMutexLockHolder.h>
27 
28 namespace mitk
29 {
40  {
41  public:
44 
45  virtual void AddTagOfInterest(const DICOMTagPath& tag, bool makePersistant = true) override;
46 
47  virtual DICOMTagPathMapType GetTagsOfInterest() const override;
48 
49  virtual bool HasTag(const DICOMTagPath& tag) const override;
50 
51  virtual void RemoveTag(const DICOMTagPath& tag) override;
52 
53  virtual void RemoveAllTags() override;
54 
55  private:
56 
57  typedef std::set<DICOMTagPath> InternalTagSetType;
59 
60  InternalTagSetType m_Tags;
61  mutable itk::SimpleFastMutexLock m_Lock;
62 
65  };
66 }
67 
68 #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.
virtual 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.
virtual void RemoveTag(const DICOMTagPath &tag) override
Remove specific tag. If it not exists the function will do nothing.
virtual void RemoveAllTags() override
Remove all tags.
virtual DICOMTagPathMapType GetTagsOfInterest() const override
virtual bool HasTag(const DICOMTagPath &tag) const override
std::map< DICOMTagPath, std::string > DICOMTagPathMapType