Medical Imaging Interaction Toolkit  2018.4.99-b585543d
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;
53  ValueMapType m_Values;
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
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
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:85
std::list< DICOMDatasetFinding > FindingsListType
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
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.