fw4spl
reader/tid/Fiducial.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "fwGdcmIO/container/sr/DicomSRNode.hpp"
10 #include "fwGdcmIO/reader/tid/TemplateID.hpp"
11 
12 #include <fwData/Image.hpp>
13 
14 #include <fwMedData/DicomSeries.hpp>
15 
16 namespace fwGdcmIO
17 {
18 namespace reader
19 {
20 namespace tid
21 {
22 
27 class FWGDCMIO_CLASS_API Fiducial : public ::fwGdcmIO::reader::tid::TemplateID< ::fwData::Image >
28 {
29 
30 public:
39  FWGDCMIO_API Fiducial(const CSPTR(::fwMedData::DicomSeries)& dicomSeries,
40  const SPTR(::gdcm::Reader)& reader,
41  const SPTR(::fwGdcmIO::container::DicomInstance)& instance,
42  const ::fwData::Image::sptr& image,
43  const ::fwLog::Logger::sptr& logger);
44 
46  FWGDCMIO_API virtual ~Fiducial();
47 
52  FWGDCMIO_API virtual void readNode(const SPTR(::fwGdcmIO::container::sr::DicomSRNode)& node);
53 
54 protected:
55 
63  void addLandmark(double x, double y, double z, const std::string& label);
64 
65 };
66 
67 } // namespace tid
68 } // namespace reader
69 } // namespace fwGdcmIO
#define SPTR(_cls_)
#define CSPTR(_cls_)
This class defines a DICOM SOP instance. It is useful during the whole writing process. This class allows to share data between module writers.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
TemplateID base class used to write templates.