Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDICOMGDCMTagCache.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 mitkDICOMGDCMTagCache_h
18 #define mitkDICOMGDCMTagCache_h
19 
20 #include "mitkDICOMTagCache.h"
21 
22 #include <set>
23 #include <memory>
24 
25 #include <gdcmScanner.h>
26 
27 namespace mitk
28 {
29 
35  {
36  public:
37 
39  itkFactorylessNewMacro( DICOMGDCMTagCache );
40  itkCloneMacro(Self);
41 
42  virtual DICOMDatasetFinding GetTagValue(DICOMImageFrameInfo* frame, const DICOMTag& tag) const override;
43 
44  virtual FindingsListType GetTagValue(DICOMImageFrameInfo* frame, const DICOMTagPath& path) const override;
45 
46  virtual DICOMDatasetAccessingImageFrameList GetFrameInfoList() const override;
47 
48  void InitCache(const std::set<DICOMTag>& scannedTags, const std::shared_ptr<gdcm::Scanner>& scanner, const StringList& inputFiles);
49 
50  const gdcm::Scanner& GetScanner() const;
51 
52  protected:
53 
55  virtual ~DICOMGDCMTagCache();
56 
57  std::set<DICOMTag> m_ScannedTags;
58 
59  std::shared_ptr<gdcm::Scanner> m_Scanner;
60 
62 
63  private:
65  };
66 }
67 
68 #endif
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
Tag cache implementation used by the DICOMGDCMTagScanner.
std::set< DICOMTag > m_ScannedTags
std::shared_ptr< gdcm::Scanner > m_Scanner
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:37
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Describes a frame within a DICOM file.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
std::vector< std::string > StringList
DICOMDatasetAccessingImageFrameList m_ScanResult
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
std::list< DICOMDatasetFinding > FindingsListType