Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDICOMTagCache.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 mitkDICOMTagCache_h
14 #define mitkDICOMTagCache_h
15 
16 #include <itkObjectFactory.h>
17 #include <mitkCommon.h>
18 
19 #include <mitkDICOMTag.h>
20 #include <mitkDICOMDatasetAccess.h>
21 #include <mitkDICOMEnums.h>
22 
24 #include <MitkDICOMExports.h>
25 
26 namespace mitk
27 {
28 
39  class MITKDICOM_EXPORT DICOMTagCache : public itk::Object
40  {
41  public:
43 
45  typedef std::list<DICOMDatasetFinding> FindingsListType;
46 
51  virtual void SetInputFiles(const StringList& filenames);
52 
59  virtual DICOMDatasetFinding GetTagValue(DICOMImageFrameInfo* frame, const DICOMTag& tag) const = 0;
60 
67  virtual FindingsListType GetTagValue(DICOMImageFrameInfo* frame, const DICOMTagPath& path) const = 0;
68 
74 
75  protected:
76 
80  ~DICOMTagCache() override;
81  };
82 }
83 
84 #endif
#define MITKDICOM_EXPORT
Describes a frame within a DICOM file.
Abstract base class for caching DICOM tag values scanned from files.
virtual void SetInputFiles(const StringList &filenames)
Define the list of files that were scanned to populate the cache.
std::list< DICOMDatasetFinding > FindingsListType
A list of DICOMDatasetFinding instances.
mitkClassMacroItkParent(DICOMTagCache, itk::Object)
virtual FindingsListType GetTagValue(DICOMImageFrameInfo *frame, const DICOMTagPath &path) const =0
Retrieve tag values for a specific frame and tag path.
virtual DICOMDatasetFinding GetTagValue(DICOMImageFrameInfo *frame, const DICOMTag &tag) const =0
Retrieve a tag value for a specific frame and tag.
virtual DICOMDatasetAccessingImageFrameList GetFrameInfoList() const =0
Retrieve a result list for file-by-file tag access.
DICOMTagCache(const DICOMTagCache &)
~DICOMTagCache() override
Class used to identify (nested) attributes in a DICOM dataset.
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:33
Find image slices visible on a given plane.
std::vector< std::string > StringList
A list of strings, used throughout the DICOM module to hold file paths and similar data.
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
A list of smart pointers to DICOMDatasetAccessingImageFrameInfo instances.
Result structure for DICOMDatasetAccess::GetTagValueAsString.