Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDICOMGenericImageFrameInfo.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 mitkDICOMGenericImageFrameInfo_h
14 #define mitkDICOMGenericImageFrameInfo_h
15 
17 
18 #include <map>
19 
20 namespace mitk
21 {
33  {
34  public:
35 
37  itkFactorylessNewMacro( DICOMGenericImageFrameInfo );
39  mitkNewMacro2Param( DICOMGenericImageFrameInfo, const std::string&, unsigned int );
40  mitkNewMacro1Param( DICOMGenericImageFrameInfo, const DICOMImageFrameInfo::Pointer& );
41 
43 
49  DICOMDatasetFinding GetTagValueAsString(const DICOMTag& tag) const override;
50 
56  FindingsListType GetTagValueAsString(const DICOMTagPath& path) const override;
57 
62  std::string GetFilenameIfAvailable() const override;
63 
74  void SetTagValue(const DICOMTagPath& path, const std::string& value);
75 
76  protected:
77  typedef std::map<DICOMTagPath, std::string> ValueMapType;
79 
80  explicit DICOMGenericImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo);
81  DICOMGenericImageFrameInfo(const std::string& filename = "", unsigned int frameNo = 0);
82 
83  private:
84  Self& operator = (const Self&);
85  DICOMGenericImageFrameInfo(const Self&);
86  };
87 
88 }
89 
90 #endif
#define MITKDICOM_EXPORT
std::list< DICOMDatasetFinding > FindingsListType
A list of DICOMDatasetFinding instances.
Defines an abstract base class for DICOM image frame infos with data access.
A generic storage class for image frame info with data access.
mitkNewMacro2Param(DICOMGenericImageFrameInfo, const std::string &, unsigned int)
DICOMGenericImageFrameInfo(const DICOMImageFrameInfo::Pointer &frameinfo)
void SetTagValue(const DICOMTagPath &path, const std::string &value)
Set the value for a given tag path.
std::map< DICOMTagPath, std::string > ValueMapType
DICOMGenericImageFrameInfo(const std::string &filename="", unsigned int frameNo=0)
mitkNewMacro1Param(DICOMGenericImageFrameInfo, const DICOMImageFrameInfo::Pointer &)
mitkClassMacro(DICOMGenericImageFrameInfo, DICOMDatasetAccessingImageFrameInfo)
FindingsListType GetTagValueAsString(const DICOMTagPath &path) const override
Retrieve tag values as strings for a DICOM tag path.
mitkNewMacro1Param(DICOMGenericImageFrameInfo, const std::string &)
DICOMDatasetFinding GetTagValueAsString(const DICOMTag &tag) const override
Retrieve a tag value as a string for a single DICOM tag.
std::string GetFilenameIfAvailable() const override
Return the filename of this frame if available.
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.
Result structure for DICOMDatasetAccess::GetTagValueAsString.