Medical Imaging Interaction Toolkit  2024.06.00
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
mitk::DICOMTagPathList
std::vector< DICOMTagPath > DICOMTagPathList
Definition: mitkDICOMTagPath.h:155
mitk::DICOMGDCMTagScanner::m_Cache
DICOMGDCMTagCache::Pointer m_Cache
Definition: mitkDICOMGDCMTagScanner.h:111
mitk::DICOMGDCMTagScanner::m_InputFilenames
StringList m_InputFilenames
Definition: mitkDICOMGDCMTagScanner.h:110
mitk::DICOMTag
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:32
mitkDICOMEnums.h
mitkDICOMGDCMTagCache.h
mitk::DICOMDatasetFinding
Definition: mitkDICOMDatasetAccess.h:26
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::DICOMImageFrameInfo
Describes a frame within a DICOM file.
Definition: mitkDICOMImageFrameInfo.h:31
mitk::DICOMTagList
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:59
mitk::DICOMGDCMTagScanner::m_GDCMScanner
std::shared_ptr< gdcm::Scanner > m_GDCMScanner
Definition: mitkDICOMGDCMTagScanner.h:112
mitk::DICOMGDCMTagScanner
Encapsulates the tag scanning process for a set of DICOM files.
Definition: mitkDICOMGDCMTagScanner.h:48
mitk::DICOMDatasetAccessingImageFrameList
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
Definition: mitkDICOMDatasetAccessingImageFrameInfo.h:46
mitkDICOMTagScanner.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15
mitk::DICOMTagScanner
Abstracts the tag scanning process for a set of DICOM files.
Definition: mitkDICOMTagScanner.h:42
mitk::DICOMGDCMTagScanner::m_ScannedTags
std::set< DICOMTag > m_ScannedTags
Definition: mitkDICOMGDCMTagScanner.h:109
mitk::StringList
std::vector< std::string > StringList
Definition: mitkDICOMEnums.h:22
mitk::DICOMTagPath
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...
Definition: mitkDICOMTagPath.h:34