fw4spl
DicomSRSCoordNode.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_DICOMSRSCOORDNODE_HPP__
8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRSCOORDNODE_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 DicomSRSCoordNode(const DicomCodedAttribute& codedAttribute, const std::string& relationship,
34  const std::string& graphicType, GraphicDataContainerType graphicDataContainer);
35 
37  FWGDCMIO_API virtual ~DicomSRSCoordNode();
38 
43  FWGDCMIO_API virtual void write(::gdcm::DataSet& dataset) const;
44 
46  const std::string& getGraphicType() const
47  {
48  return m_graphicType;
49  }
50 
52  void setGraphicType(const std::string& graphicType)
53  {
54  m_graphicType = graphicType;
55  }
56 
58  const GraphicDataContainerType& getGraphicDataContainer() const
59  {
60  return m_graphicDataContainer;
61  }
62 
64  void setGraphicDataContainer(const GraphicDataContainerType& graphicDataContainer)
65  {
66  m_graphicDataContainer = graphicDataContainer;
67  }
68 
69 protected:
70 
72  virtual void print(std::ostream& os) const;
73 
75  std::string m_graphicType;
76 
78  GraphicDataContainerType m_graphicDataContainer;
79 };
80 
81 } //namespace sr
82 } //namespace container
83 } //namespace fwGdcmIO
84 
85 #endif /* __FWGDCMIO_CONTAINER_SR_DICOMSRSCOORDNODE_HPP__ */
void setGraphicDataContainer(const GraphicDataContainerType &graphicDataContainer)
Set Graphic data container.
const GraphicDataContainerType & getGraphicDataContainer() const
Get Graphic data container.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
void setGraphicType(const std::string &graphicType)
Set Graphic type.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
const std::string & getGraphicType() const
Get Graphic type.
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
GraphicDataContainerType m_graphicDataContainer
Graphic Data.
This class defines a SCOORD node in a SR document.