Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkDICOMGDCMImageFrameInfo.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 mitkDICOMGDCMImageFrameInfo_h
14 #define mitkDICOMGDCMImageFrameInfo_h
15 
17 
18 #include "gdcmScanner.h"
19 
20 namespace mitk
21 {
31  {
32  public:
33 
35  itkFactorylessNewMacro( DICOMGDCMImageFrameInfo );
36  mitkNewMacro1Param( DICOMGDCMImageFrameInfo, const std::string&);
37  mitkNewMacro2Param( DICOMGDCMImageFrameInfo, const std::string&, unsigned int );
38  mitkNewMacro1Param( DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer& );
39  mitkNewMacro2Param( DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer&, gdcm::Scanner::TagToValue const&);
40 
41  ~DICOMGDCMImageFrameInfo() override;
42 
43  DICOMDatasetFinding GetTagValueAsString(const DICOMTag&) const override;
44 
45  FindingsListType GetTagValueAsString(const DICOMTagPath& path) const override;
46 
47  std::string GetFilenameIfAvailable() const override;
48 
49  protected:
50  explicit DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo);
51  DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo, gdcm::Scanner::TagToValue const& tagToValueMapping);
52  DICOMGDCMImageFrameInfo(const std::string& filename = "", unsigned int frameNo = 0);
53 
54  const gdcm::Scanner::TagToValue m_TagForValue;
55  };
56 
57  typedef std::vector<DICOMGDCMImageFrameInfo::Pointer> DICOMGDCMImageFrameList;
58 }
59 
60 #endif
mitk::DICOMDatasetAccessingImageFrameInfo
Defines an abstract base class for DICOM image frame infos with data access.
Definition: mitkDICOMDatasetAccessingImageFrameInfo.h:31
mitk::DICOMGDCMImageFrameInfo
The dataset access implementation for DICOMITKSeriesGDCMReader, based on GDCM.
Definition: mitkDICOMGDCMImageFrameInfo.h:30
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::DICOMGDCMImageFrameList
std::vector< DICOMGDCMImageFrameInfo::Pointer > DICOMGDCMImageFrameList
Definition: mitkDICOMGDCMImageFrameInfo.h:57
mitk::DICOMDatasetAccess::FindingsListType
std::list< DICOMDatasetFinding > FindingsListType
Definition: mitkDICOMDatasetAccess.h:48
mitk::DICOMGDCMImageFrameInfo::m_TagForValue
const gdcm::Scanner::TagToValue m_TagForValue
Definition: mitkDICOMGDCMImageFrameInfo.h:54
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