Medical Imaging Interaction Toolkit  2023.12.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 {
27  {
28  public:
29 
31  itkFactorylessNewMacro( DICOMGenericImageFrameInfo );
32  mitkNewMacro1Param( DICOMGenericImageFrameInfo, const std::string&);
33  mitkNewMacro2Param( DICOMGenericImageFrameInfo, const std::string&, unsigned int );
34  mitkNewMacro1Param( DICOMGenericImageFrameInfo, const DICOMImageFrameInfo::Pointer& );
35 
36  ~DICOMGenericImageFrameInfo() override;
37 
38  DICOMDatasetFinding GetTagValueAsString(const DICOMTag&) const override;
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
mitk::DICOMGenericImageFrameInfo::m_Values
ValueMapType m_Values
Definition: mitkDICOMGenericImageFrameInfo.h:53
mitk::DICOMDatasetAccessingImageFrameInfo
Defines an abstract base class for DICOM image frame infos with data access.
Definition: mitkDICOMDatasetAccessingImageFrameInfo.h:31
mitk::DICOMGenericImageFrameInfo
A generic storage class for image frame info with data access.
Definition: mitkDICOMGenericImageFrameInfo.h:26
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitkDICOMDatasetAccessingImageFrameInfo.h
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::DICOMGenericImageFrameInfo::ValueMapType
std::map< DICOMTagPath, std::string > ValueMapType
Definition: mitkDICOMGenericImageFrameInfo.h:52
mitk::DICOMDatasetAccess::FindingsListType
std::list< DICOMDatasetFinding > FindingsListType
Definition: mitkDICOMDatasetAccess.h:48
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKDICOM_EXPORT
#define MITKDICOM_EXPORT
Definition: MitkDICOMExports.h:15
mitk::DICOMTagPath
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag,...
Definition: mitkDICOMTagPath.h:34