Medical Imaging Interaction Toolkit  2025.12.02
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 {
27  {
28  public:
29 
31  itkFactorylessNewMacro( DICOMGenericImageFrameInfo );
33  mitkNewMacro2Param( DICOMGenericImageFrameInfo, const std::string&, unsigned int );
34  mitkNewMacro1Param( DICOMGenericImageFrameInfo, const DICOMImageFrameInfo::Pointer& );
35 
37 
39 
40  FindingsListType GetTagValueAsString(const DICOMTagPath& path) const override;
41 
42  std::string GetFilenameIfAvailable() const override;
43 
49  void SetTagValue(const DICOMTagPath& path, const std::string& value);
50 
51  protected:
52  typedef std::map<DICOMTagPath, std::string> ValueMapType;
54 
55  explicit DICOMGenericImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo);
56  DICOMGenericImageFrameInfo(const std::string& filename = "", unsigned int frameNo = 0);
57 
58  private:
59  Self& operator = (const Self&);
60  DICOMGenericImageFrameInfo(const Self&);
61  };
62 
63 }
64 
65 #endif
#define MITKDICOM_EXPORT
std::list< DICOMDatasetFinding > FindingsListType
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)
DICOMDatasetFinding GetTagValueAsString(const DICOMTag &) const override
Return a DICOMDatasetFinding instance of the tag. The return contains (if valid) the raw value of the...
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
Return a list of DICOMDatasetFindings of the passed tag path. The return contains (if valid) the raw ...
mitkNewMacro1Param(DICOMGenericImageFrameInfo, const std::string &)
std::string GetFilenameIfAvailable() const override
Return a filename if possible. If DICOM is not read from file but from somewhere else (network,...
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:33
Find image slices visible on a given plane.