Medical Imaging Interaction Toolkit  2018.4.99-c7ee88da
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 (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 mitkDICOMGDCMTagCache_h
14 #define mitkDICOMGDCMTagCache_h
15 
16 #include "mitkDICOMTagCache.h"
17 
18 #include <set>
19 #include <memory>
20 
21 #include <gdcmScanner.h>
22 
23 namespace mitk
24 {
25 
31  {
32  public:
33 
35  itkFactorylessNewMacro( DICOMGDCMTagCache );
36  itkCloneMacro(Self);
37 
38  DICOMDatasetFinding GetTagValue(DICOMImageFrameInfo* frame, const DICOMTag& tag) const override;
39 
40  FindingsListType GetTagValue(DICOMImageFrameInfo* frame, const DICOMTagPath& path) const override;
41 
42  DICOMDatasetAccessingImageFrameList GetFrameInfoList() const override;
43 
44  void InitCache(const std::set<DICOMTag>& scannedTags, const std::shared_ptr<gdcm::Scanner>& scanner, const StringList& inputFiles);
45 
46  const gdcm::Scanner& GetScanner() const;
47 
48  protected:
49 
51  ~DICOMGDCMTagCache() override;
52 
53  std::set<DICOMTag> m_ScannedTags;
54 
55  std::shared_ptr<gdcm::Scanner> m_Scanner;
56 
58 
59  private:
61  };
62 }
63 
64 #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:32
#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:40
std::vector< std::string > StringList
DICOMDatasetAccessingImageFrameList m_ScanResult
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
std::list< DICOMDatasetFinding > FindingsListType