Medical Imaging Interaction Toolkit  2023.12.00
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
mitk::DICOMGDCMTagCache::m_ScannedTags
std::set< DICOMTag > m_ScannedTags
Definition: mitkDICOMGDCMTagCache.h:53
mitk::DICOMGDCMTagCache::m_Scanner
std::shared_ptr< gdcm::Scanner > m_Scanner
Definition: mitkDICOMGDCMTagCache.h:55
mitk::DICOMTag
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:32
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::DICOMGDCMTagCache::m_ScanResult
DICOMDatasetAccessingImageFrameList m_ScanResult
Definition: mitkDICOMGDCMTagCache.h:57
mitkDICOMTagCache.h
mitk::DICOMTagCache
...
Definition: mitkDICOMTagCache.h:33
mitk::DICOMDatasetAccessingImageFrameList
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
Definition: mitkDICOMDatasetAccessingImageFrameInfo.h:46
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15
mitk::DICOMGDCMTagCache
Tag cache implementation used by the DICOMGDCMTagScanner.
Definition: mitkDICOMGDCMTagCache.h:30
mitk::DICOMTagCache::FindingsListType
std::list< DICOMDatasetFinding > FindingsListType
Definition: mitkDICOMTagCache.h:38
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