fw4spl
DicomSRSCoord3DNode.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_DICOMSRSCOORD3DNODE_HPP__
8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRSCOORD3DNODE_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 
30  typedef std::vector<float> GraphicDataContainerType;
31 
33  FWGDCMIO_API DicomSRSCoord3DNode(const DicomCodedAttribute& codedAttribute,
34  const std::string& relationship,
35  const std::string& graphicType,
36  const GraphicDataContainerType graphicDataContainer,
37  const std::string& frameOfReferenceUID);
38 
40  FWGDCMIO_API virtual ~DicomSRSCoord3DNode();
41 
46  FWGDCMIO_API virtual void write(::gdcm::DataSet& dataset) const;
47 
49  const std::string& getFrameOfReferenceUID() const
50  {
51  return m_frameOfReferenceUID;
52  }
53 
55  void setFrameOfReferenceUID(const std::string& frameOfReferenceUID)
56  {
57  m_frameOfReferenceUID = frameOfReferenceUID;
58  }
59 
61  const std::string& getGraphicType() const
62  {
63  return m_graphicType;
64  }
65 
67  void setGraphicType(const std::string& graphicType)
68  {
69  m_graphicType = graphicType;
70  }
71 
73  const GraphicDataContainerType& getGraphicDataContainer() const
74  {
75  return m_graphicDataContainer;
76  }
77 
79  void setGraphicDataContainer(const GraphicDataContainerType& graphicDataContainer)
80  {
81  m_graphicDataContainer = graphicDataContainer;
82  }
83 
84 protected:
85 
87  virtual void print(std::ostream& os) const;
88 
90  std::string m_frameOfReferenceUID;
91 
93  std::string m_graphicType;
94 
96  GraphicDataContainerType m_graphicDataContainer;
97 };
98 
99 } //namespace sr
100 } //namespace container
101 } //namespace fwGdcmIO
102 
103 #endif /* __FWGDCMIO_CONTAINER_SR_DICOMSRSCOORD3DNODE_HPP__ */
std::string m_frameOfReferenceUID
Referenced Frame of Reference UID.
GraphicDataContainerType m_graphicDataContainer
Graphic Data.
void setGraphicType(const std::string &graphicType)
Set Graphic type.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
const GraphicDataContainerType & getGraphicDataContainer() const
Get Graphic data container.
const std::string & getFrameOfReferenceUID() const
Get Frame of reference UID.
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
void setFrameOfReferenceUID(const std::string &frameOfReferenceUID)
Set Frame of reference UID.
void setGraphicDataContainer(const GraphicDataContainerType &graphicDataContainer)
Set Graphic data container.
This class defines a SCOORD3D node in a SR document.
const std::string & getGraphicType() const
Get Graphic type.