Medical Imaging Interaction Toolkit  2016.11.0
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,
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 mitkDICOMGenericImageFrameInfo_h
18 #define mitkDICOMGenericImageFrameInfo_h
19 
21 
22 #include <map>
23 
24 namespace mitk
25 {
31  {
32  public:
33 
35  itkFactorylessNewMacro( DICOMGenericImageFrameInfo );
36  mitkNewMacro1Param( DICOMGenericImageFrameInfo, const std::string&);
37  mitkNewMacro2Param( DICOMGenericImageFrameInfo, const std::string&, unsigned int );
39 
40  virtual ~DICOMGenericImageFrameInfo();
41 
42  virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag&) const override;
43 
44  virtual FindingsListType GetTagValueAsString(const DICOMTagPath& path) const override;
45 
46  std::string GetFilenameIfAvailable() const override;
47 
53  void SetTagValue(const DICOMTagPath& path, const std::string& value);
54 
55  protected:
56  typedef std::map<DICOMTagPath, std::string> ValueMapType;
57  ValueMapType m_Values;
58 
60  DICOMGenericImageFrameInfo(const std::string& filename = "", unsigned int frameNo = 0);
61 
62  private:
63  Self& operator = (const Self&);
64  DICOMGenericImageFrameInfo(const Self&);
65  };
66 
67 }
68 
69 #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.
#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::map< DICOMTagPath, std::string > ValueMapType
Defines an abstract base class for DICOM image frame infos with data access.
A generic storage class for image frame info with data access.