Medical Imaging Interaction Toolkit  2021.02.99-b9f34b51
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
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:32
DataCollection - Class to facilitate loading/accessing structured data.
const gdcm::Scanner::TagToValue m_TagForValue
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
std::list< DICOMDatasetFinding > FindingsListType
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
std::vector< DICOMGDCMImageFrameInfo::Pointer > DICOMGDCMImageFrameList
#define MITKDICOM_EXPORT
Defines an abstract base class for DICOM image frame infos with data access.
The dataset access implementation for DICOMITKSeriesGDCMReader, based on GDCM.