fw4spl
DicomSRImageNode.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGDCMIO_CONTAINER_SR_DICOMSRIMAGENODE_HPP__
8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRIMAGENODE_HPP__
9 
10 #include "fwGdcmIO/config.hpp"
11 #include "fwGdcmIO/container/DicomCodedAttribute.hpp"
12 #include "fwGdcmIO/container/sr/DicomSRNode.hpp"
13 
14 #include <gdcmDataSet.h>
15 
16 namespace fwGdcmIO
17 {
18 namespace container
19 {
20 namespace sr
21 {
22 
27 {
28 public:
29 
31  FWGDCMIO_API DicomSRImageNode(const DicomCodedAttribute& codedAttribute, const std::string& relationship,
32  const std::string& sopClassUID, const std::string& sopInstanceUID, int frameNumber);
33 
35  FWGDCMIO_API virtual ~DicomSRImageNode();
36 
41  FWGDCMIO_API virtual void write(::gdcm::DataSet& dataset) const;
42 
44  const std::string& getSOPClassUID() const
45  {
46  return m_sopClassUID;
47  }
48 
50  void setSOPClassUID(const std::string& sopClassUID)
51  {
52  m_sopClassUID = sopClassUID;
53  }
54 
56  const std::string& getSOPInstanceUID() const
57  {
58  return m_sopInstanceUID;
59  }
60 
62  void setSOPInstanceUID(const std::string& sopInstanceUID)
63  {
64  m_sopInstanceUID = sopInstanceUID;
65  }
66 
68  const int& getFrameNumber() const
69  {
70  return m_frameNumber;
71  }
72 
74  void setFrameNumber(const int& frameNumber)
75  {
76  m_frameNumber = frameNumber;
77  }
78 
79 protected:
80 
82  virtual void print(std::ostream& os) const;
83 
89  void writeReferencedSOPSequence(::gdcm::DataSet& dataset) const;
90 
92  std::string m_sopClassUID;
93 
95  std::string m_sopInstanceUID;
96 
99 };
100 
101 } //namespace sr
102 } //namespace container
103 } //namespace fwGdcmIO
104 
105 #endif /* __FWGDCMIO_CONTAINER_SR_DICOMSRIMAGENODE_HPP__ */
const std::string & getSOPInstanceUID() const
Get SOP Instance UID.
This class defines an IMAGE node in a SR document.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
std::string m_sopClassUID
Referenced SOP Class UID (0008,1150)
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
int m_frameNumber
Referenced Frame Number (0008,1199)
std::string m_sopInstanceUID
Referenced SOP Instance UID (0008,1155)
void setSOPInstanceUID(const std::string &sopInstanceUID)
Set SOP Instance UID.
void setSOPClassUID(const std::string &sopClassUID)
Set SOP Class UID.
const int & getFrameNumber() const
Get Frame number.
const std::string & getSOPClassUID() const
Get SOP Class UID.
void setFrameNumber(const int &frameNumber)
Set Frame number.