Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkDICOMGDCMTagScanner.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 mitkDICOMGDCMTagScanner_h
14 #define mitkDICOMGDCMTagScanner_h
15 
16 #include "mitkDICOMTagScanner.h"
17 #include "mitkDICOMEnums.h"
18 #include "mitkDICOMGDCMTagCache.h"
19 
20 namespace mitk
21 {
22 
49  {
50  public:
51 
53  itkFactorylessNewMacro( DICOMGDCMTagScanner );
54  itkCloneMacro(Self);
55 
59  void AddTag(const DICOMTag& tag) override;
63  void AddTags(const DICOMTagList& tags) override;
67  void AddTagPath(const DICOMTagPath& tag) override;
71  void AddTagPaths(const DICOMTagPathList& tags) override;
72 
78  void SetInputFiles(const StringList& filenames) override;
79 
86  void Scan() override;
87 
91  DICOMDatasetAccessingImageFrameList GetFrameInfoList() const override;
92 
96  DICOMTagCache::Pointer GetScanCache() const override;
97 
102  virtual DICOMDatasetFinding GetTagValue(DICOMImageFrameInfo* frame, const DICOMTag& tag) const;
103 
104  protected:
105 
107  ~DICOMGDCMTagScanner() override;
108 
109  std::set<DICOMTag> m_ScannedTags;
111  DICOMGDCMTagCache::Pointer m_Cache;
112  std::shared_ptr<gdcm::Scanner> m_GDCMScanner;
113 
114  private:
116  };
117 }
118 
119 #endif
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
std::shared_ptr< gdcm::Scanner > m_GDCMScanner
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:59
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.
DICOMGDCMTagCache::Pointer m_Cache
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
std::set< DICOMTag > m_ScannedTags
Encapsulates the tag scanning process for a set of DICOM files.
std::vector< std::string > StringList
std::vector< DICOMTagPath > DICOMTagPathList
Abstracts the tag scanning process for a set of DICOM files.
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList