Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkDICOMGDCMImageFrameInfo_h
18 #define mitkDICOMGDCMImageFrameInfo_h
19 
21 
22 #include "gdcmScanner.h"
23 
24 namespace mitk
25 {
35  {
36  public:
37 
39  itkFactorylessNewMacro( DICOMGDCMImageFrameInfo );
40  mitkNewMacro1Param( DICOMGDCMImageFrameInfo, const std::string&);
41  mitkNewMacro2Param( DICOMGDCMImageFrameInfo, const std::string&, unsigned int );
43  mitkNewMacro2Param( DICOMGDCMImageFrameInfo, const DICOMImageFrameInfo::Pointer&, gdcm::Scanner::TagToValue const&);
44 
45  virtual ~DICOMGDCMImageFrameInfo();
46 
47  virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag&) const override;
48 
49  virtual FindingsListType GetTagValueAsString(const DICOMTagPath& path) const override;
50 
51  std::string GetFilenameIfAvailable() const override;
52 
53  protected:
55  DICOMGDCMImageFrameInfo(const DICOMImageFrameInfo::Pointer& frameinfo, gdcm::Scanner::TagToValue const& tagToValueMapping);
56  DICOMGDCMImageFrameInfo(const std::string& filename = "", unsigned int frameNo = 0);
57 
58  const gdcm::Scanner::TagToValue m_TagForValue;
59  };
60 
61  typedef std::vector<DICOMGDCMImageFrameInfo::Pointer> DICOMGDCMImageFrameList;
62 }
63 
64 #endif
itk::SmartPointer< Self > Pointer
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:37
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
const gdcm::Scanner::TagToValue m_TagForValue
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:89
std::list< DICOMDatasetFinding > FindingsListType
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
std::vector< DICOMGDCMImageFrameInfo::Pointer > DICOMGDCMImageFrameList
Defines an abstract base class for DICOM image frame infos with data access.
The dataset access implementation for DICOMITKSeriesGDCMReader, based on GDCM.